Menu

#42 read-pipe option works inconsistently

v1.0 (example)
open
read-pipe (1)
7
2017-07-05
2017-07-05
No

I have been using swatch for log monitoring for some time now, and although it works very well it seems that the --read-pipe option has some sort of bug. I have been using a .sh for filtering a log that i pipe into the swatch process.
The .sh script is this: tail -n 10 -F /var/log/ldap | grep -v "SEARCH RESULT"
When i use the script outside the swatch process it works fine, tails the log correctly.
However. when it is used in the swatch process the actions are inconsistent, sometimes swatch does its work with a delay of 1 sec, sometimes 10 min and sometimes 8 hours.
When using --tail-file on the log /var/log/ldap swatch works correctly, it immediately sees a pattern in it and responds accordingly.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.