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
Category | Event | EventCode |
---|---|---|
INFO | Device Authenticated And Connected | 101 |
INFO | Device Disconnected | 102 |
INFO | Device Attached To {GatewayName} | 103 |
INFO | Device Detached From {GatewayName} | 104 |
INFO | Zero Touch Provisioning Completed | 105 |
ERROR | Device Not Authorized To Topic {TopicName} | 501 |
ERROR | Policy:Connection Blocked | 502 |
ERROR | Device Not Bound To Gateway {GatewayName} | 503 |
ERROR | Device Not Attached To Gateway {GatewayName} | 504 |
ERROR | State Messages Blocked for 5 Seconds Due to Quota Overload | 505 |
ERROR | Device Blocked From Communication | 506 |
ERROR | Certificate Not Attached To Device For Authentication | 507 |
ERROR | Device Authentication Failed | 508 |