Difference between revisions of "Troubleshooting Promtail"
Jump to navigation
Jump to search
Line 19: | Line 19: | ||
2024-01-02T17:19:07.045211+0100{hostname="MacBook.local", job="stdin"} your context from your file | 2024-01-02T17:19:07.045211+0100{hostname="MacBook.local", job="stdin"} your context from your file | ||
+ | |||
+ | |||
+ | cat /tmp/test.log | [[promtail --stdin]] --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push | ||
+ | (no output) | ||
{{Promtail}} | {{Promtail}} |
Revision as of 16:23, 2 January 2024
cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push Clients configured: ---------------------- url: http://127.0.0.1:3100/loki/api/v1/push batchwait: 1s batchsize: 1048576 follow_redirects: false enable_http2: false backoff_config: min_period: 500ms max_period: 5m0s max_retries: 10 timeout: 10s tenant_id: "" drop_rate_limited_batches: false stream_lag_labels: "" 2024-01-02T17:19:07.045211+0100{hostname="MacBook.local", job="stdin"} your context from your file
cat /tmp/test.log | promtail --stdin --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push (no output)
Promtail, /etc/promtail/config.yml, promtail [ -check-syntax, | -version | -help ]
Advertising: