Oracle-defined OS Command Scripts

Oracle Log Analytics provides the following Oracle-defined scripts for OS command log collection.

The below Oracle-defined scripts are already included in the corresponding Oracle-defined source of the type OS Command. So, in the workflow defined for OS command based log collection, associate your entity with this Oracle-defined source to run this OS command script and collect the resulting output as logs. See Set Up OS Command Collection.

For steps to customize the Oracle-defined OS command script, see Customize Oracle-defined OS Command Scripts.

Script Name Description Oracle-defined Source

system/linux/linux_journalctl_msgs.sh

This is Linux platform based script to run journalctl. It runs journalctl command with options --no-pager, -o short-iso, --utc.

By default,

  • It gets kernel messages only.
  • Timestamp is in UTC.
  • It maintains a cursor to get only the new records.
  • It is run using passwordless sudo.
Linux Kernel Journald Logs

network/linux/linux_netstat_public_address.sh

This script retrieves network connections with public foreign IP addresses using netstat, excluding local and private IPs. The script runs netstat with passwordless sudo. Optional filters can be applied for process name or IP address.

Linux Netstat Active Connections Logs