2

I have a process running that writes it's output to a file, like this.

processx > /var/log/processx.log 2>&1

How would I write/pipe/forward this to rsyslog instead (including the 2>&1 redirect)?

3

Either pipe it to logger processx | logger (and the options you want) or use the Text File Input Module for rsyslog to read your existing file.

2
  • Updated my question slightly (2>&1).
    – Era
    Dec 6 '13 at 20:08
  • 1
    processx 2>&1 | logger ...
    – user143703
    Dec 6 '13 at 20:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.