Oracle-defined OS Command Scripts

Oracle Log Analytics provides the following Oracle-defined scripts for OS command log collection. These scripts are available in a dedicated folder under Oracle Log Analytics plug-in folder on your agent host. They're stored in this location when Oracle Log Analytics plug-in is deployed on the Management Agent.

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. You may duplicate and customize the Oracle-defined source, if required. See Set Up OS Command Collection.

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