Skip to content

Instantly share code, notes, and snippets.

@tknv
Created July 15, 2022 15:14
Show Gist options
  • Save tknv/cfcd4d74712211cd2da4a5553f9e974d to your computer and use it in GitHub Desktop.
Save tknv/cfcd4d74712211cd2da4a5553f9e974d to your computer and use it in GitHub Desktop.
sudo apt install rsyslog
sudo vim /etc/rsyslog.conf
module(load="imtcp") # needs to be done just once
input(type="imtcp" port="514")
$template FILENAME,"/var/log/%HOSTNAME%/syslog.log"
*.* ?FILENAME
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment