Skip to main content

Logs

With OmniCore, you can specify a log topic to send log events from devices connected. There are two types of logging: ERROR and INFO. ERROR logging captures device communication errors, while INFO logging captures general information about communication from devices. Both the log topic and type can be configured at the registry level.

For GCP PubSub log topic, the attribute field is used to send the various event attributes.EventAttributes includes,

  • deviceId
  • deviceRegistryId
  • subscriptionId
  • loglevel
  • timestamp
  • eventCode

Events From Logs

CategoryEventEventCode
INFODevice Authenticated And Connected101
INFODevice Disconnected102
INFODevice Attached To {GatewayName}103
INFODevice Detached From {GatewayName}104
INFOZero Touch Provisioning Completed105
ERRORDevice Not Authorized To Topic {TopicName}501
ERRORPolicy:Connection Blocked502
ERRORDevice Not Bound To Gateway {GatewayName}503
ERRORDevice Not Attached To Gateway {GatewayName}504
ERRORState Messages Blocked for 5 Seconds Due to Quota Overload505
ERRORDevice Blocked From Communication506
ERRORCertificate Not Attached To Device For Authentication507
ERRORDevice Authentication Failed508