I want to clean up my /var/log into sub-folders. I have modified my /etc/syslog.conf file as below but I am getting errors so I have done something wrong. I tried "*.filter" and "filter.*" but neither worked. My configuration and related error messages are below:
I would like to get all Xorg related files into the xorg folder. Maybe the best place to do this is /etc/X11/xorg.conf, but from what I have read that modification only works for root.
I also want to get all "jail_xyz_console.log" files into jails folder. The last setting does not give an error but it also does not place those logs in the "jails" sub-folder
Regards.
Code:
*.mount /var/log/sys/mount
utx.* /var/log/sys/utx
pf.* /var/log/net/
nfs.*;newnfs.* /var/log/net/nfs.log
!Xorg
*.* /var/log/xorg/
jail* /var/log/jails/
Code:
unknown priority named "mount
unknown facility named "utx"
unknown facility named "pf"
unknown facility named "nfs"
/var/log/xorg is a directory
I would like to get all Xorg related files into the xorg folder. Maybe the best place to do this is /etc/X11/xorg.conf, but from what I have read that modification only works for root.
I also want to get all "jail_xyz_console.log" files into jails folder. The last setting does not give an error but it also does not place those logs in the "jails" sub-folder
Regards.