Reputation: 57
Still wrapping my head around logging technology. I'm following the fluentd to graylog2 recipe but I don't understand this step:
Open /etc/rsyslog.conf and add the following line to the beginning of the file: *.* @127.0.0.1:5140 Then, restart rsyslogd by running sudo /etc/init.d/rsyslog restart.
What's supposed to listen on 127.0.0.1:5140? Is rsyslog a fluentd dependency?
Upvotes: 0
Views: 1937
Reputation: 57
According to Parse Syslog Messages Robustly:
The problem with syslog is that services have a wide range of log format, and no single parser can parse all syslog messages effectively.
Rsyslog seems the recommended way to forward logs to fluentd.
Upvotes: 1
Reputation: 1332
Fluentd listens on the port 5140 if you enable the Rsyslog input. Changing the line in
/etc/rsyslogd.conf
forwards the traffic from Rsyslog to Fluentd.
However, if you don't want to turn on Rsyslog you can just send the traffic straight to port 5140.
Upvotes: 0