Structured Logging

Starting with Kinetic Core v2.0.2 a new feature was implemented referred to as structured logging. Structured logging essentially is ensuring that a log file is a preset, consistent, and machine readable format. Structured logs are useful for enterprise log aggregation tools like Splunk, Graylog, or Elastic.

Here at Kinetic Data, we've leveraged this feature for our SaaS offering. If you're interested in integrating with Elasticsearch as well for log aggregation, see How to Use Elasticsearch and Filebeat integration with Kinetic Structured Logs. That article covers how to use Filebeat to read our log files and send them over to Elasticsearch.

The structured logs consist of the following files in the %DATA_DIR%/logs directory:

  • structured.access.log
    • Logs an entry for every time a resource is accessed through the kinetic application. Who, when, how long, what, etc. This can be used for troubleshooting, auditing, or analytics.
  • structured.application.log
    • Contains entries for application warnings, errors, debug, or trace level messages. Used for troubleshooting.
  • structured.authentication.log
    • Authentication attempts get logged to this file. Who, when, and authentication type. Used for troubleshooting and auditing.
  • structured.system.log
    • Heartbeat checks, application startups and shutdowns, and other non-frequent events like that are the purpose for this log file.