Created
July 15, 2022 15:14
-
-
Save tknv/cfcd4d74712211cd2da4a5553f9e974d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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