On Thu, Nov 16, 2023 at 7:51 PM Tom Horsley horsley1953@gmail.com wrote:
# Log incoming message from remote systems here $template DynamicFile,"/var/log/loghost/%HOSTNAME%/%syslogfacility-text%.log" :hostname, contains, "nast" *.* -?DynamicFile
Most remote log message do indeed get redirected to the subdirectory as expected, but SMART messages like these still wind up in /var/log/messages on my main system rather than in the subdirectory.
Example:
Nov 16 16:16:51 nast 1 2023-11-16T16:16:51.564170-05:00 nast.my.lan smartd 1501 - - Device: /dev/ada0, SMART Usage Attribute: 194 Temperature_Celsius changed from 58 to 57
Most other messages wind up down in the subdirectory as expected, like this:
Nov 16 19:15:00 nast 1 2023-11-16T19:15:00.012359-05:00 nast.my.lan /usr/sbin/cron 16239 - - (root) CMD (/usr/libexec/atrun)
Any chance there is a rule for logging SMART messages that is taking precedence?