I have a bunch of logs which are not created using syslog. I would like to export them to another host. If possible using syslog or rsyslog. A pipe?
how can I do that?
The documentation and the use of these modules differs depending on which version of rsyslog you are using (v7 or v8+). Since log forwarding isn't working in v8 yet (according to the docs), here is some example v7 syntax:
NB: each file needs its own unique state file. By default, messages are severity notice and facility local0. If you wanted to change these, look up the
Two possible ways:
I'm not sure if syslog or rsyslog could do this directly. Maybe they could, but you'd have to read the docs to find out.