nixos icon indicating copy to clipboard operation
nixos copied to clipboard

Collect Nginx logs with Promtail and Loki

Open pinpox opened this issue 4 years ago • 1 comments

pinpox avatar Feb 01 '22 08:02 pinpox

Not working yet:

Jan 31 11:15:26 porree promtail[53196]: level=error ts=2022-01-31T10:15:26.10829847Z caller=client.go:360 component=client host=localhost:3100 msg="final error sending batch" status=400 error="server returned HTTP status 400 Bad Request (400): entry with timestamp 2022-01-31 09:37:44.230285 +0000 UTC ignored, reason: 'entry too far behind' for stream: {host=\"porree\", job=\"systemd-journal\"},"

pinpox avatar Feb 01 '22 08:02 pinpox

Hello there, did you have any luck on this? I'm having a similar problem and even playing with Loki configs (reject old chunks and stuff) I couldn't make it work :/

forgondolin avatar Nov 04 '22 15:11 forgondolin

Hey! I havent finished this yet, but this branch was my last attempt. Not sure when I will have time for it currently :(

pinpox avatar Nov 09 '22 13:11 pinpox

No longer needed as I switched to caddy.

pinpox avatar Oct 05 '23 09:10 pinpox