Public bug reported: Ubuntu Release :: `lsb_release -rd`:
> Description: Ubuntu 22.04.5 LTS > Release: 22.04 Package version :: `apt-cache policy tomcat9`: > tomcat9: > Installed: 9.0.58-1ubuntu0.1 > Candidate: 9.0.58-1ubuntu0.1 > Version table: > *** 9.0.58-1ubuntu0.1 500 > 500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu > jammy-updates/universe amd64 Packages > 100 /var/lib/dpkg/status > 9.0.58-1 500 > 500 http://eu-west-1.ec2.archive.ubuntu.com/ubuntu jammy/universe > amd64 Packages What I expected to happen: The default `/etc/rsyslog.d/tomcat9.conf` (replicated below) _intends_ to send `tomcat9` logging to `/var/log/tomcat9/catalina.out` (according to the `action(...)` directive) and - nowhere else - (according to the `stop` directive): ``` # Send Tomcat messages to catalina.out when using systemd $template TomcatFormat,"[%timegenerated:::date-year%-%timegenerated:::date-month%-%timegenerated:::date-day% %timegenerated:::date-hour%:%timegenerated:::date-minute%:%timegenerated:::date-second%] [%syslogseverity-text%]%msg%\n" :programname, startswith, "tomcat9" { action(type="omfile" file="/var/log/tomcat9/catalina.out" Template="TomcatFormat" fileCreateMode="0640") stop } ``` What happened instead: However, because this file's name (`tomcat9.conf`) causes it to be processed _after_ `/etc/rsyslog.d/50-default.conf` tomcat9's logs are still being sent to `/var/log/syslog`. Why? Because the latter file has this directive: ``` +*.*;auth,authpriv.none -/var/log/syslog ``` Solution: If `tomcat9.conf` was renamed - say - to `30-tomcat9.conf` for instance, it would get processed _before_ `50-default.conf` and _then_ the `stop` directive would have the intended effect. ** Affects: tomcat9 (Ubuntu) Importance: Undecided Status: New ** Tags: syslog -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2081195 Title: logging to `/var/log/tomcat9/catalina.out` is duplicated to `/var/log/syslog` To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/tomcat9/+bug/2081195/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
