rsyslog forwarding new messages only
hello
Configuring rsyslog on Centos 7 to forward logs to a centralized syslog server. rsyslog forwards new log lines fine as expected. But the old existing lines in /var/log/messages are not forwarded. I see this is the normal behavior, only new lines will be forwarded. Any way I can forward all existing lines from /var/log/messages ? |
Quote:
Alternatively, you can use either the logger command, or even something like: Code:
cat <FILE NAME> | nc -4u -w1 <SYSLOG HOST> <SYSLOG PORT> |
yes, forwarding all content of /var/log/messages to rsyslog server is required.
cat file | nc .. before start forwarding logs solved this requirement. thanks TB0ne |
Quote:
|
All times are GMT -5. The time now is 06:20 PM. |