Details zu Events
Loggingdetails für Ereignislogs.
Ressourcen
- Regeln
Logkategorien
API-Wert (ID): | Konsole (Anzeigename) | Beschreibung |
---|---|---|
ruleexecutionlog | Regelausführungslogs | Beschreibt, wie Regeln anhand von Ereignissen, die von Ressourcen ausgegeben wurden, ausgewertet wurden. |
Verfügbarkeit
Events-Logging ist in allen Regionen der Handels-Realms verfügbar. Events-Logging ist in Regionen innerhalb der Government Cloud-Realm nicht verfügbar.
Inhalt eines Events-Logs
Eigenschaft | Beschreibung |
---|---|
logTime |
Die Ereigniszeit, ausgedrückt im RFC 3339-Zeitstempelformat. |
ruleId |
Die Ereignisregel-ID. |
eventId |
Die UUID des Ereignisses. Diese ID ist keine OCID, sondern nur eine eindeutige ID für das Ereignis. |
message |
Die Ereignismeldung. |
target |
Die Regelaktion. Beispiel:
|
Beispiel für ein Events-Log
Es gibt zwei Arten von Meldungen für Ereignisse:{
"specversion": "1.0",
"type": "com.oraclecloud.eventsservice.eventrule.ruleexecutionlog",
"source": "Flowlogs",
"id": "6e6dbfd3-4bce-4484-848d-af53f19bd6c9",
"time": "2020-08-24T23:31:44Z",
"oracle": {
"logid": "ocid1.log.oc1.iad.<unique_ID>",
"loggroupid": "ocid1.loggroup.oc1.iad.<unique_ID>",
"compartmentid": "ocid1.compartment.oc1..<unique_ID>",
"tenantid": "ocid1.tenancy.oc1..<unique_ID>",
"ingestedtime": "2020-08-19T15:33:30.832Z"
},
"data": {
"ruleId": "ocid1.eventrule.oc1.iad.<unique_ID>",
"eventId": "24bc7219-efec-4ccd-350b-be2d833439d2",
"message": "Event failed to deliver to FAAS. Exception from FAAS endpoint
https://ptktjbkp22a.us-ashburn-1.functions.oci.oraclecloud.com, exception message:
(502, FunctionInvokeImageNotAvailable, false) Failed to pull function image (opc-request-id:
AA3D3CEE50107C103AA662B8646A0EEE/01EGHCZXNW1BT0750ZJ0058HCP/01EGHCZXNW1BT0750ZJ0058HCQ),
opc-request-id AA3D3CEE50107C103AA662B8646A0EEE/01EGHCZXNW1BT0750ZJ0058HCP/01EGHCZXNW1BT0750ZJ0058HCQ,
statuscode 502", "target": "ocid1.fnfunc.oc1.iad.<unique_ID>"
}
}
{
"specversion": "1.0",
"type": "com.oraclecloud.eventsservice.eventrule.ruleexecutionlog",
"source": "cmi-push-vcn-splunk-phoenix",
"id": "52007b4c-225e-4d6c-9dea-077b884a94e9",
"time": "2020-08-24T23:35:16Z",
"oracle": {
"logid": "ocid1.log.oc1.iad.<unique_ID>",
"loggroupid": "ocid1.loggroup.oc1.iad.<unique_ID>",
"compartmentid": "ocid1.compartment.oc1..<unique_ID>",
"tenantid": "ocid1.tenancy.oc1..<unique_ID>",
"ingestedtime": "2020-08-19T15:33:30.832Z"
},
"data": {
"ruleId": "ocid1.eventrule.oc1.phx.<unique_ID>",
"eventId": "30bde0fa-af8a-f50c-aa01-4fc42f28acb9",
"message": "Rule has matched event"
}
}
Name des Events-Logobjekts
Für Objekte, die Events-Logdaten speichern, wird das folgende Benennungsformat verwendet:
Rule_Execution_Log/<event_rule_OCID>/<YYYY-MM-DDTHH_MMZ>[_<seqNum>].log.gz
Beispiel:
Rule_Execution_Log/ocid1.eventrule.oc1.phx.<unique_ID>/2019-03-21T00_00Z.log.gz
Rule_Execution_Log/ocid1.eventrule.oc1.phx.<unique_ID>/2019-03-21T00_00Z_2.log.gz