DriftlogDocsChangelogAPIv2.4.1

Quickstart

This guide ships Nginx access logs to a local Loki instance in under five minutes.

1. Create a config

inputs:
  - type: file
    paths: ["/var/log/nginx/access.log"]
filters:
  - type: grok
    pattern: "%{COMBINEDAPACHELOG}"
outputs:
  - type: loki
    url: http://localhost:3100
    labels: {job: nginx}

2. Validate and run

driftlog check -c driftlog.yaml
driftlog run -c driftlog.yaml

3. Verify

Open http://localhost:9420/metrics and watch driftlog_events_out_total increase.