server: http_listen_port: 9080 grpc_listen_port: 0 positions: filename: /tmp/positions.yml clients: - url: http://loki:3100/loki/api/v1/push scrape_configs: - job_name: nginx static_configs: - targets: - localhost labels: job: nginx __path__: /var/log/nginx/*.log pipeline_stages: - json: expressions: request_id: request_id request_method: request_method uri: uri status: status request_time: request_time upstream_status: upstream_status - labels: job: request_method: status: - job_name: system static_configs: - targets: - localhost labels: job: varlogs __path__: /var/log/*log - job_name: docker static_configs: - targets: - localhost labels: job: docker __path__: /var/lib/docker/containers/*/*-json.log