I read all your lines. But I just didn't have time to test and answer yesterday. John, many thanks for pointing me the right hint. I could'nt find a /var/log/weewx.log yesterday.
I tried to edit /etc/weewx/rsyslog.d/weewx.conf with parameter from your link above on Github. And now it works as aspected. Thanks again and I hope I will be less annoying with my questions in the future. Regards, Andre Am Montag, 13. Juli 2020 02:41:08 UTC+2 schrieb John Kline: > > Did you catch the end of my reply? > > Have you looked to see if your log is being written to /var/log/weewx.log > (rather than /var/log/syslog)? > > On Jul 12, 2020, at 12:54 PM, Andre <agoet...@gmail.com <javascript:>> > wrote: > > > Thanks for your reply, John. > I'll compare and test it tomorrow. > Real life is calling... > > Am Sonntag, 12. Juli 2020 21:27:24 UTC+2 schrieb John Kline: >> >> These files haven’t changed in a long time. You can compare them to >> these: >> >> https://github.com/weewx/weewx/blob/master/util/rsyslog.d/weewx.conf >> >> https://github.com/weewx/weewx/blob/master/util/logrotate.d/weewx >> >> That said, if you have these files in place, they will cause WeeWX log >> output to go to /var/log/weewx.log, but you are showing tail output for >> /var/log/syslog! >> >> Are you sure the output isn’t being written to /var/log/weewx.log? >> >> On Jul 12, 2020, at 10:28 AM, Andre <agoet...@gmail.com> wrote: >> >> >> I screwed up. >> I tried to "Minimize writes on SD cards >> <https://github.com/weewx/weewx/wiki/Minimize-writes-on-SD-cards>" and >> had to undo it because I got problems. And now I can't create weewx log >> files anymore. And of course I did not make any backups before. Like a >> professional. ;) >> Can anyone help me to restore the original state? Step-by-step if >> possible. >> >> pi@weewx:/etc $ sudo tail -f /var/log/syslog >> Jul 12 18:39:59 weewx rngd[417]: stats: HRNG source speed: (min=129.625; >> avg=333.380; max=530.870)Kibits/s >> Jul 12 18:39:59 weewx rngd[417]: stats: FIPS tests speed: (min=11.847; >> avg=14.746; max=30.372)Mibits/s >> Jul 12 18:39:59 weewx rngd[417]: stats: Lowest ready-buffers level: 2 >> Jul 12 18:39:59 weewx rngd[417]: stats: Entropy starvations: 0 >> Jul 12 18:39:59 weewx rngd[417]: stats: Time spent starving for entropy: >> (min=0; avg=0.000; max=0)us >> Jul 12 18:41:31 weewx systemd[1]: Starting Daily apt download activities >> ... >> Jul 12 18:41:32 weewx systemd[1]: apt-daily.service: Succeeded. >> Jul 12 18:41:32 weewx systemd[1]: Started Daily apt download activities. >> Jul 12 18:51:09 weewx rngd[417]: block failed FIPS test: 0x02 >> Jul 12 19:17:01 weewx CRON[8598]: (root) CMD ( cd / && run-parts --report >> /etc/cron.hourly) >> >> /etc/weewx/rsyslog.d/weewx.conf >> :programname,isequal, "weewx" /var/log/weewx.log >> :programname, isequal, "weewx" >> :programname,startswith, "wee_" /var/log/weewx.log >> :programname,startswith, "wee_" >> >> >> #if $programname == 'weewx' then /var/log/weewx.log >> #if $programname == 'weewx' then >> >> >> # older versions of rsyslog use this syntax >> #:programname,isequal, "weewx" /var/log/weewx.log >> #:programname,isequal, "weewx" # >> #:programname,startswith, "wee_" /var/log/weewx.log >> #:programname,startswith, "wee_" # >> >> >> # some prefer this dialect of rsyslog >> #if $programname == 'weewx' then /var/log/weewx.log >> #if $programname == 'weewx' then >> >> >> /etc/weewx/logrotate.d/weewx >> /var/log/weewx.log { >> weekly >> missingok >> rotates 52 >> compress >> delaycompress >> notifempty >> >> >> # on some older systems the permissions do not propagate, so force them >> # debian uses root:adm >> # create 644 root adm >> # ubuntu uses syslog:adm >> # create 644 syslog adm >> >> >> # on some older systems rsyslog must be restarted to send output to right >> file >> # sharedscripts >> # postrotate >> # standard way of invoking rc scripts >> # /etc/init.d/rsyslog stop >> # /etc/init.d/rsyslog start >> # on some systems a reload will work >> # /etc/init.d/rsyslog reload > /dev/null >> # some ubuntu systems use upstart >> # service rsyslog restart > /dev/null >> # some redhat/fedora systems have their own way >> # reload rsyslog > /dev/null 2>&1 >> # some debian systems do it this way >> # invoke-rc.d rsyslog reload > /dev/null >> # endscript >> } >> >> >> >> >> -- >> 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 weewx...@googlegroups.com. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/weewx-user/ea7ab1f2-7e10-4865-a3cf-80db26e78266o%40googlegroups.com >> >> <https://groups.google.com/d/msgid/weewx-user/ea7ab1f2-7e10-4865-a3cf-80db26e78266o%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> >> -- > 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 weewx...@googlegroups.com <javascript:>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/weewx-user/5b10f7f4-ac8f-4672-b9a5-6a55186cbd73o%40googlegroups.com > > <https://groups.google.com/d/msgid/weewx-user/5b10f7f4-ac8f-4672-b9a5-6a55186cbd73o%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > -- 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 weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/98054a6e-072d-482d-9cca-92a2886df416o%40googlegroups.com.