Setting up Logstash for OpenTelemetry Export

This guide covers how to configure Logstash to receive OpenTelemetry data from a Trustgrid HTTP exporter.

Part 1: Configure Logstash to Receive OTEL Data

Here is an example logstash.conf that matches the Trustgrid export format:

input {
  http {
    port => 5044
    codec => json
  }
}

output {
  stdout {
    codec => rubydebug
  }
}

Part 2: Configure Trustgrid to Send OTEL Data

Step 1: Navigate to Exporters

  1. In the Trustgrid Portal, go to Observability > Exporters.
  2. Click Add Exporter.

Step 2: Configure the Exporter

  • Type: Select http.
  • Exporter Name: Enter a descriptive name (e.g., logstash).
  • Description: Optional.
  • Instrumentation Types: Select one or more:
    • Metrics
    • Node Audits
    • Node Events
    • Changes
Add Exporter
  • Endpoint: Set this to your Logstash endpoint (e.g., http://logstash.internal:5044).

Trustgrid appends /v1/metrics or /v1/logs automatically depending on the instrumentation type. You can also explicitly set:

  • Metrics Endpoint: Overrides default for metrics
  • Logs Endpoint: Overrides default for logs (audits, events, changes)
Exporter Settings