Closed casesolved-co-uk closed 2 months ago
Hey @casesolved-co-uk, thanks for reporting this. By the looks of it, it seems the format parser doesn't correctly recognise the }
character, for whatever reason (maybe because it's the last character in a string, and the parser fails to deal with that location correctly), and thus the creation of datetime string fails, resulting in an error. Clearly there are some (quite literally) edge case tests missing here. I'll look into this soon-ish.
The fix will be released in v2.5.2. Thanks for reporting this issue!
Checklist before starting to submit this bug report
I confirm that:
Bug description
Got the following file in
/var/log
when I enabled logging to file with the datetime format:snoopy.log-[ERROR: Closing data source tag ('}') not found.]
Bug reproduction steps
install-snoopy.sh
as root (version 2.5.1)output = file:/var/log/snoopy.log-%{datetime:%Y-%m-%d}
Expected result
Normal filename
Actual result
Strange filename above