Difference between revisions of "Troubleshooting Promtail"
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
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 | ||
+ | cat /tmp/test.log | [[promtail --stdin]] --dry-run --client.url http://127.0.0.1:3100/loki/api/v1/push | ||
+ | (no output) | ||
− | {{Promtail}} | + | == See also == |
+ | * {{Promtail}} | ||
+ | * {{Loki}} | ||
+ | |||
+ | [[Category:Promtail]] |
Latest revision as of 16:25, 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)
See also[edit]
- Promtail,
/etc/promtail/config.yml, promtail [ -check-syntax, | -version | -help ]
- Loki, changelog, 3100, promtail, Loki receiver, loki --help
Advertising: