# Promtail / Loki push compatibility

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

Use grafana/promtail:3.4.2. The Loki push endpoint accepts Promtail's Snappy protobuf and JSON streams. Set EPOK\_INGEST\_KEY in the process environment and start Promtail with -config.expand- env=true and -config.file pointing to this file.

## Configuration

```
server:
  http_listen_port: 9080
  grpc_listen_port: 0
positions:
  filename: /tmp/p2-promtail-positions.yaml
clients:
  - url: https://ingest.epok.cloud/loki/api/v1/push
    headers:
      X-API-Key: ${EPOK_INGEST_KEY}
    batchwait: 1s
scrape_configs:
  - job_name: p2-promtail
    static_configs:
      - targets: [localhost]
        labels:
          service: p2-promtail
          __path__: /var/log/promtail.log
```

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 logs](https://epok.cloud/docs/install/vector) [All install guides](https://epok.cloud/docs)
