Answer the question
In order to leave comments, you need to log in
How to parse /var/log/syslog in realtime in python?
It is necessary to process each new line from /var/log/syslog in a loop. How to do it correctly?
One more thing about log rotation is of interest: every day the syslog file is transferred to syslog.1, and new logs are written to a clean syslog. How to make the script "not broken" at this moment
Answer the question
In order to leave comments, you need to log in
for bash use tail but just add the --follow switch with the name parameter which will bind to the name and not the file descriptor:tail --follow=name TestFile | обработчик
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question