You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: