Free plan available. Set up in minutes with the collectors you already use. Start free
Logthread

Integration

Envoy

Requests by status class, request time, upstream errors, healthy hosts by cluster and every access log line with its response flags.

  • Category: Web servers
  • How data is sent: Logthread Agent
  • Runs on: Linux
  • Status: Beta

How it works#

  1. Answer a few questions. They only fill in the setup steps. Nothing on this page connects to your servers: Logthread never reaches into your network.
  2. Run one command on the Envoy machine. The next page shows the command with this connector's ingest key filled in. It downloads the Logthread Agent from downloads.logthread.com and installs it as a service (Linux, as root with sudo). No other download.
  3. Data arrives. Everything is collected inside your environment. It is sent over outbound HTTPS (port 443) to ingest.logthread.com. Nothing is opened to the internet: no inbound ports, VPN or public access to your servers. The connection page shows what has arrived and turns Active with the first record.

What you answer#

QuestionAnswerNotes
Metrics address (optional)TextDefault: 127.0.0.1:9901. The admin interface.
Log folder (optional)TextDefault: /var/log/envoy.
Labels (optional)TextTo find and group servers on the Agents page, for example env=prod.
Manage this agent from LogthreadYes or noChange what it sends later from the Agents page, without signing in to the server. Default: Yes.

Setup#

These are the steps for the default answers. In the app, they follow your answers, and the connector's ingest key replaces YOUR_INGEST_KEY.

Step 1. Turn on the access log and the admin statistics. The access log goes to a file in Envoy's default text format. Envoy buffers it and writes every few seconds. Make sure the folder is writable by the user Envoy runs as.

envoy.yaml:

# The admin interface serves the statistics (keep it on 127.0.0.1):
admin:
  address:
    socket_address: {address: 127.0.0.1, port_value: 9901}

# In each http_connection_manager, no "log_format": the default is what the parser reads:
access_log:
  - name: envoy.access_loggers.file
    typed_config:
      "@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
      path: /var/log/envoy/access.log
# then restart Envoy: sudo systemctl restart envoy

Step 2. Install the Logthread Agent. On the Envoy host: it installs the agent with the Envoy and Linux host profiles. It scrapes 127.0.0.1:9901/stats/prometheus and reads access.log from /var/log/envoy.

curl -sSL https://downloads.logthread.com/agent/install.sh | sudo sh -s -- \
  --key YOUR_INGEST_KEY --profiles linux-host,envoy --fleet

Step 3. Parse the access log. Once lines arrive, attach the Envoy parser (Then add, below) so status, response flags, bytes, duration_ms and the upstream host are fields. The default format has no client address: client_ip is the first x-forwarded-for address when the request has one, and a client can send any value, so trust it only behind a proxy or load balancer you control.

Step 4. If it runs in a container. The agent reads a log file and a metrics address on the host. Mount the log folder from the host into the container and publish the metrics port to the host on loopback only, "-p 127.0.0.1:PORT:PORT" (set the metrics address above to it). Never publish an admin or metrics port on a public interface. For Envoy, the admin address must be 0.0.0.0 inside the container; it is the host-side publish that you restrict, -p 127.0.0.1:9901:9901. The admin API has no authentication (it can quit, drain and dump the whole config), so never publish it more widely. For Envoy Gateway, Istio and Kubernetes, Envoy logs to standard output, which the Kubernetes connector reads. Instead of a file, the Docker connector reads the container output: the parser applies to those lines, but they arrive as service "docker", so this integration's dashboard and alert filters (service:<name>) do not see them until you edit those filters. Mounting the log folder is the recommended way.

Check that it works#

The connection page under Integrations counts what has arrived and turns Active with the first record. In Explore, search service:envoy.

Then add#

Each is one click on the connection page and opens with your data, so you can check it before saving.

  • Dashboard: Envoy: Downstream requests by status class and request time, upstream errors and healthy hosts by cluster from the admin statistics, and the access log (with the envoy-access parser). Logs read by the Docker connector arrive as service docker: mount the log folder instead, or edit the filters of the log panels.
  • Parser: envoy-access (Pipelines → Library)
  • Alert: Envoy 5xx responses: service:envoy status>=500, at least 20 in 10 minutes

Price#

The integration itself has no charge. What it sends is billed as data ingested, ₹85 ($0.90) per GB on every plan, like any other data; parsing, detections and the dashboard add nothing. See Prices.

Set it up under Integrations in the app, or from an AI agent with MCP (add_integration). All integrations: Integrations guide. Next: find what it sends in Explore and live tail.