Skip to content

Instantly share code, notes, and snippets.

@visualjeff
Created October 4, 2017 22:07
Show Gist options
  • Save visualjeff/48e87da311c681c2cbfcaf9dd5e16910 to your computer and use it in GitHub Desktop.
Save visualjeff/48e87da311c681c2cbfcaf9dd5e16910 to your computer and use it in GitHub Desktop.
Enable remote syslog on Ubuntu
Edit /etc/rsyslog.conf
sudo vim /etc/rsyslog.conf
Uncomment as needed:
# provides UDP syslog reception
#module(load="imudp") <== Uncomment
#input(type="imudp" port="514") <== Uncomment
# provides TCP syslog reception
#module(load="imtcp")
#input(type="imtcp" port="514")
Restart the service:
sudo service rsyslog restart
@visualjeff
Copy link
Author

To view messages in syslog:

tail -f /var/log/syslog

@visualjeff
Copy link
Author

Note this also works for Debian.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment