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)?

1 Answers1

2

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.