Skip to main content

logs

Latest Versionv1.0.0
Input Content Typeapplication/json
Incurs Usage

Sending data to Golioth Logs incurs usage costs after exceeding the free tier. See Golioth pricing for more information.

The Logs destination sends data to Golioth Logs. Data must have arrived as or been transformed into JSON in order to be delivered successfully.

The data message timestamp will be used as the time for the entry in Golioth Logs, and the following JSON fields are supported.

AttributeDescription
levelString indicating the log level (debug, info, warn, error).
moduleString indicating the module from which the log message was generated.
msgString with log message contents.

Any additional JSON fields will be stored as metadata with the entry in Golioth Logs.

Example Usage

Because Golioth Logs is hosted by Golioth, no configuration or credentials are required to deliver data to the service.

    destination:
type: logs
version: v1

Example Input

{
"level": "warn",
"module": "net_sockets",
"msg": "failed to send"
}

Example Output

{
"level": "warn",
"module": "net_sockets",
"msg": "failed to send"
}