Difference between revisions of "Troubleshooting Promtail"

From wikieduonline
Jump to navigation Jump to search
 
Line 26: Line 26:
 
== See also ==
 
== See also ==
 
* {{Promtail}}
 
* {{Promtail}}
 +
* {{Loki}}
  
 
[[Category:Promtail]]
 
[[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]

Advertising: