grok_exporter icon indicating copy to clipboard operation
grok_exporter copied to clipboard

grok fails on insufficient permissions when fail_on_missing_logfile is false

Open wkhere opened this issue 3 years ago • 0 comments

Hi!

I have noticed that grok exporter fails, when files to analyze have insufficient permissions:

grok_exporter: error reading log lines: /XXXYYY/log20221121.log: open: open /XXXYYY/log20221121.log: operation not permitted

At the same time, in our setup the config option fail_on_missing_logfile is unset.

I was wondering if grok could proceed with other files, as if the file was just missing. Such interpretation of the fail_on_missing_logfile option seems consistent.

wkhere avatar Nov 28 '22 14:11 wkhere