epok
View as Markdown

Fluentd

Status: not yet available on Epok's hosted service. Use OpenTelemetry (OTLP) for now.

Use fluent/fluentd:v1.16.5-debian-1.0 with the core out_http plugin. Replace YOUR_INGEST_KEY with your Epok ingest key and set the log path. Keep json_array true: this endpoint accepts a JSON array, rather than a batch of newline-delimited objects. The X-API-Key header selects your workspace and project. Make /tmp writable for the tail position file.

Configuration

text
<source>
  @type tail
  path /var/log/fluentd.log
  pos_file /tmp/p2-fluentd.pos
  tag p2-fluentd
  read_from_head true
  <parse>
    @type none
  </parse>
</source>
<filter p2-fluentd>
  @type record_transformer
  <record>
    service p2-fluentd
  </record>
</filter>
<match p2-fluentd>
  @type http
  endpoint https://ingest.epok.cloud/api/v1/fluentd
  headers {"X-API-Key":"YOUR_INGEST_KEY"}
  json_array true
  compress gzip
  <format>
    @type json
  </format>
  <buffer>
    @type memory
    flush_interval 1s
  </buffer>
</match>

Keep your ingest key private. Missing keys return 401; unknown keys return 403. A successful HTTP response alone is not proof of stored data.

Vector JSON logsAll install guides