Skip to content

Logging

Logging is an important part that allows debugging when necessary. Effective logging ensures transparency of connector operations and facilitates problem identification and resolution.

Logging Requirements:

  • JSON Log Format: Logs should be written in JSON format. This enables easier integration with centralized logging and search systems (e.g., ELK Stack, Splunk, Loki).
  • The header x-b3-traceid (trace ID) should be logged to the request_id field. This allows tracking the full path of a request through different services (distributed tracing).
  • The header x-request-id should be logged to the unique_id field. This provides a unique identifier for each specific request entering the connector.

Logging these headers allows you to track all events that occur with the event from its very beginning – entrance into NSPS, through the connector, and to the ES.

For more information, refer to the NSPS request headers.