Difference between revisions of "Troubleshooting Promtail"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
* https://grafana.com/docs/loki/latest/send-data/promtail/troubleshooting/ | * https://grafana.com/docs/loki/latest/send-data/promtail/troubleshooting/ | ||
− | + | 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 | ||
{{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
Promtail, /etc/promtail/config.yml, promtail [ -check-syntax, | -version | -help ]
Advertising: