Maybe there are some more clever trigger to set instead of what I did, suggestions welcomes :)
Le jeudi 27 mai 2021 à 12:42:10 UTC+2, wysiwyg a écrit : > Hi there! > > I recently installed weewx on a CentOS stream fresh install. > I wanted to move weewx logs in a separate file, using what's provided in > /etc/weewx/rsyslog.d > > I think this file may need some updates (or I missed something ?) > > in the logs (/var/log/messages on my distro), weewx does not show directly > as a program but as sub something of "journal", like this: > > May 27 12:31:57 myserver journal[794]: weewx[794] INFO user.sftp: > sftpgenerator: transferred 19 files in 13.40 seconds > > so I modified the rsyslog settings this way: > > # use this syntax for rsyslog in most modern distributions > :programname,contains,"weewx" /var/log/weewx/weewx.log > :programname,contains,"weewx" stop > :msg,startswith,"weewx" /var/log/weewx/weewx.log > :msg,startswith,"weewx" stop > :programname,startswith,"wee_" /var/log/weewx/weewx.log > :programname,startswith,"wee_" stop > :msg,startswith,"wee_" /var/log/weewx/weewx.log > :msg,startswith,"wee_" stop > > > it works more or less, except with the logs from my custom driver that > still show up in /var/log/messages this way: > > May 27 12:36:21 myserver /weewxd[794]: wxMesh: packet content: outHumidity > = 51.86 > > > Is there something I shall try for those "/weewxd" message? > > > > > > > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/6a402a4f-f062-4b0f-b0df-f59261c374e4n%40googlegroups.com.
