Details for OCI Cache

Logging details for OCI Cache logs.

Resources

  • OCI Cache Cluster

Log Categories

API value (ID): Console (Display Name) Description
oci-cache-engine-logs OCI Cache Engine Logs Includes logs from the underlying cache engine (Redis OSS engine logs).

Availability

OCI Cache logging is available in all the regions of the commercial realms.

Contents of an OCI Cache Engine Log Entry

Property Description
Cluster OCID The cache cluster ID.
CacheNodeId The cache node ID.
Log level Can be NOTICE("*") or WARNING("#"). The OCI Cache service doesn't allow changing the log level, so this is set at the NOTICE("*") level.
Time The logged message UTC time in following format: DD MMM YYYY hh:mm:ss.ms UTC.
Role The node role from where the log is emitted. Can be one of the following:
  • M for primary
  • S for replica
  • C for writer child process working on RDB/AOF
  • X for sentinel
Message Redis OSS Engine log message. Redis notice level logs typically provide information that's useful for understanding the general operational status of the Redis server, without including the verbose details of lower log levels, such as verbose or debug.

Example Notice Level Log

The following is a sample notice level log generated by the Redis OSS Engine:

111:M 07 Aug 2024 04:49:07.332 * Ready to accept connections
111:M 07 Aug 2024 04:49:07.331 # Server initialized
111:M 07 Aug 2024 04:49:07.331 # WARNING: The TCP backlog setting of 511 cannot be enforced because <path> is set to the lower value of 128.
111:M 07 Aug 2024 04:49:07.331 * Running mode=cluster, port=<port>.
111:M 07 Aug 2024 04:49:07.327 * No cluster configuration found, I'm <unique_ID>
111:M 07 Aug 2024 04:49:07.326 * monotonic clock: POSIX clock_gettime
111:C 07 Aug 2024 04:49:07.320 # Configuration loaded
111:C 07 Aug 2024 04:49:07.320 # Redis version=7.0.15, bits=64, commit=00000000, modified=0, pid=111, just started
111:C 07 Aug 2024 04:49:07.320 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo

Example OCI Cache Engine Log

{
  "datetime": 1726476361574,
  "logContent": {
    "data": {
      "level": "WARNING",
      "message": "Cluster state changed: fail",
      "node": "<unique_ID>",
      "role": "M"
    },
    "id": "<unique_ID>",
    "oracle": {
      "compartmentid": "ocid1.compartment.oc1..<unique_ID>",
      "ingestedtime": "2024-09-16T08:46:07.963Z",
      "loggroupid": "ocid1.loggroup.oc1.ap-mumbai-1.<unique_ID>",
      "logid": "ocid1.log.oc1.ap-mumbai-1.<unique_ID>",
      "tenantid": "ocid1.tenancy.oc1..<unique_ID>"
    },
    "source": "ocid1.rediscluster.oc1.ap-mumbai-1.<unique_ID>",
    "specversion": "1.0",
    "time": "2024-09-16T08:46:01.574Z",
    "type": "com.oraclecloud.oci-cache.cluster.engine-logs"
  },
  "regionId": "ap-mumbai-1"
}