riju icon indicating copy to clipboard operation
riju copied to clipboard

Restore webserver logs via promtail

Open raxod502 opened this issue 3 years ago • 2 comments

For some reason I seem to have lost all logs with {source="server"}. Not sure what changed:

image

raxod502 avatar Aug 21 '21 07:08 raxod502

This is because apparently when Promtail starts, if any of your config file's filepath glob patterns fail to match, Promtail completely throws them away. This is despite the fact that it already dynamically checks for new files showing up that match the glob; apparently, there is a special case where if at startup specifically if there are zero files, it decides to give up entirely.

raxod502 avatar Sep 18 '21 18:09 raxod502

Migrating to https://grafana.com/docs/loki/latest/clients/docker-driver/.

raxod502 avatar Sep 18 '21 18:09 raxod502