- Create a new file in /etc/rsyslog.d/ and call it udp_server as example:
- vim /etc/rsyslog.d/udp_server
- Add these 2 lines:
- $ModLoad imudp
- $UDPServerRun 514
- Restart rsyslog: sudo service rsyslog restart
- Check that it's working:
- echo "FreeBSD rocks!" | nc -w0 -u 127.0.0.1 514
- sudo tail /var/log/messages
Don't modify the file /etc/rsyslog.conf, it's not used at all !
Aucun commentaire:
Enregistrer un commentaire