Structured Logging to supercharge your Dashboards & Alerts
While most applications can default emit basic logs they are difficult to use and unlock their true power. Some tooling exists to handle this like logstash but why not start with the power and emit fully structured JSON logs instead?
application started 2022-07-15T10:02:55.746Z INFO received request for user mark 2022-07-15T10:02:55.846Z WARN processing data 2022-07-15T10:02:55.946Z INFO rendering response
log format of your application - Additional field extractions need to be implemented case-by-case - Or …. Regex the fields you need in Log system (or file system)
- Application engineer decides which metadata to add to the log message - Transport layer (ex: cloudwatch-2-splunk) does not modify the log message - Log System (splunk) only parses the JSON, does not modify the message
(v2.0.0) will be published next week - Introducing structured logging - better logger types - Minimal changes needed to your AWS-2-Splunk forwarder - ⚠ Upgrading will require updating your existing Splunk queries - (Note - For those not able to you can upgrade and retain existing log format)