Parser file name
-
-
Hi,
yes, in log file name you can use format specifiers from strftime. Parser will switch to new file when resulting name changes. For complicated cases you can also use `command` in file name - parser will execute external command and insert it's output.
Best regards,
Victor -
-
no, you can specify multiple <file> tags in parser, but wildcards are not allowed.
Best regards,
Victor -
Ok so if for example backup program like robocopy creating log file like dd-mm-yy.txt how to monitoring this file then? some backups program generating files with hours in name. Is very hard to predict when backups will finish so i don't know how looks like the log file name? any help?
-
You can use strftime patterns in file name. For example, to match dd-mm-yy.txt you can use %d-%m-%y.txt as file name. If hour is included, for example yymmddhh.txt - %y%m%d%H.txt. As time changes system will check different file names. If you need something even more complicated you can call external script to determine part of file name, like this: log-`script.cmd`.txt - it will call script.cmd and use it's output as part of file name.
Best regards,
Victor
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login