I want to stream the contents of an error log (/log/spo.error) as it's written, but pipe the stream through sed before I see it. How can I do that?
Tell me more
×
Unix & Linux Stack Exchange is a question and answer site for
users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.
|
If you're using syslog (classical syslog), in your
where Restart your syslog service so that it reads your new configuration and now all logs will get dumped into the pipe. Then you can |
|||||||
|
tail? Liketail -f /log/spo.error | sed 's/whatever/you want/'. – manatwork Sep 12 '11 at 14:12fifo/named pipeand read from it? – MaxMackie Sep 12 '11 at 14:40