Editing a Log

Update a log's configuration.

    1. Open the navigation menu and click Observability & Management. Under Logging, click Logs.
    2. Under List scope, select the compartment that contains the log that you want to edit.
    3. Click the name of the log that you want to edit.
    4. On the log details page, click Edit.

      For service logs, the Edit Log panel opens. This panel indicates the resource, and you can change the log name in the associated field under Configure Log. Avoid entering confidential information.

      You can also change Log Retention settings.

      For custom logs, the Edit custom log panel opens. You can change the custom log name in the associated field, and change the log group. Avoid entering confidential information.

      Click Show additional options to change log retention and tagging settings.
      Note

      For both service and custom logs, the Retention Period can be set in 30-day increments, up to a maximum of 180 days. Logs are no longer available or searchable after the retention period has passed.

      If you change the retention period from six months to one month, all the logs older than one month will no longer be accessible. For example, if changing from one month to six months, logs will not be available after one month, and six-month old logs will not be available.

      Furthermore, the future time and date that a log no longer becomes available is based on the exact time and date that you created the log. For example, if you created a log on July 21 at 15:05 UTC with a retention period of three months, then on October 19 at 15:05 the log will no longer be searchable.

    5. Click Save Changes.
  • Use the oci logging log update command and required parameters to edit a log:

    oci logging log update --log-group-id log-group_ocid --log-id log_ocid [OPTIONS]

    For a complete list of parameters and variable options for CLI commands, see the Command Line Reference.

  • Run the UpdateLog operation to edit a log.