Viewing Custom Logs in a Compute Instance

Use the Custom logs resource on a Compute instance details page to view logging details for the instance in the selected compartment.

Logging Search APIs are called and any available logs are pulled for the instance. Instances can have a customer application running on them (for example, a gaming server), and they can configure logs from the gaming server to be collected by the Unified Monitoring Agent, and then be pushed into the Logging service and be indexed there. Logs are pulled and displayed on the Logs resource. As such, when a customer views their compute instance, they can see that their application is pushing logs to the Logging service. Logs, however, can't be enabled or created from this interface.

In a Compute instance's details page, in the Custom logs resource, you can sort log entries (Newest, the default, or Oldest), or filter by time (the default Past 5 minutes, Past 15 minutes, Past hour, Past 3 hours, Today, Custom).

Click Explore with Log Search to open the main Logging Search page, where you can add or remove filters and so on. The Search page loads with instanceid of the instance already set as a filter under Filters.

Open the Logs page to create custom logs for the instance. Custom logs are sent from Oracle Cloud Infrastructure compute VM instances.

For the Custom logs resource to be available on a Compute instance, the following is required:

  • The Custom Logs Monitoring plugin must be enabled, and all plugins must be running. For more information, see Oracle Cloud Agent.
  • The instance must have a supported OS:
    • Oracle Linux 7, Oracle Linux 8
    • CentOS 7, CentOS Stream 8
    • Windows Server 2012 R2, Windows Server 2016, Windows Server 2019
    • Ubuntu 16.04, Ubuntu 18.04, Ubuntu 20.04

If the OS isn't supported, then the Custom logs resource isn't displayed. If the OS is supported by the Oracle Cloud Agent and isn't enabled, a warning is displayed that you must enable the agent to create logs.