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

Integration

Vector (elasticsearch sink)

Vector's elasticsearch sink, pointed at Logthread.

  • Category: Moving from Elasticsearch
  • How data is sent: Settings in your app

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. Add a few lines to your Vector (elasticsearch sink) app. The next page shows the settings and code with this connector's ingest key filled in. There is no agent to install.
  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
Service nameTextAdded as service.name; documents that already carry service.name keep theirs. Default: app.

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. Set the key. In the environment Vector runs in.

export LOGTHREAD_INGEST_KEY=YOUR_INGEST_KEY

Step 2. Point the elasticsearch sink at Logthread. request_retry_partial resends only the documents that failed with a retryable status.

vector.yaml:

transforms:
  logthread_fields:
    type: remap
    inputs: [app_logs]
    source: |
      ."service"."name" = "app"

sinks:
  logthread:
    type: elasticsearch
    inputs: [logthread_fields]
    endpoints: ["https://ingest.logthread.com:443"]
    auth:
      strategy: basic
      user: logthread
      password: "${LOGTHREAD_INGEST_KEY}"
    bulk:
      index: logs
    request_retry_partial: true
    batch:
      max_bytes: 4000000
      max_events: 10000

Step 3. Check. Each batch answers 200 with one result per document, and the documents appear in Explore under the service within seconds, with their @timestamp, log.level and message. The index is kept as the elasticsearch.index field. Elasticsearch ingest pipelines are not run: parse with Logthread pipelines.

Check that it works#

The connection page under Integrations turns Active with the first trace. Open Traces and filter by your service.

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.