Sample Header Ad - 728x90

How to record local3 with all severity levels to a file using system logger?

1 vote
1 answer
1884 views
I'm using a VM. Ubuntu Linux. What I'm trying to do is use System logger to record the local3 facility with all severity levels to a file /var/log/local3.log I'm confused as to what the process is. Am I just supposed to edit /etc/rsyslog.conf with something along the lines of: local3.* /var/log/local3.log or do I use the logger command? Or both? I also want to add a logrotate afterwards so that it rotates weekly, keeping 8 weeks worth of log files.
Asked by CawCawsca (11 rep)
Dec 8, 2020, 03:58 AM
Last activity: Jul 29, 2025, 10:02 PM