rsyslog Deprecation in Debian 12
The release date of Debian 12 has been set to June 10, 2023
So Weewx V5 installs will be affected shortly. Seems wise to get ahead of
it in the Docs.
Please note I am trying not to rant about this change and simply start what
it is and how it affects WeeWx.

In Debian 12, since the persistent journal from Systemd's journald has been
activated and most log messages would end up being written twice on disk,
the rsyslog package has been demoted from the Important to the Optional
priority, which means it is no longer installed by default in a base Debian
system.It is still possible to install the rsyslog package and it will work
as usual.If you have upgraded from an older Debian release, and did not
explicitly remove rsyslog you will not be affected by the change.

Under Debian 12
sudo tail -f /var/log/syslog
results in:
tail: cannot open '/var/log/syslog' for reading: No such file or directory
tail: no files remaining

In Debian 12 you can use the journalctl command to read log messages, which
are stored in a binary format under /var/log/journal.
sudo journalctl -ef
-e --pager-end Immediately jump to the end in the pager
-f --follow Follow the journal
similar to running tail -f /var/log/syslog on previous versions of Debian.

Or a little cleaner, show only WeeWx data, assuming weewx running under
systemd with a weewx.service file.
sudo journalctl -u weewx -f
-u --unit=UNIT Show logs from the specified unit
-f --follow Follow the journal

This Debian change breaks
User Guide
 Running WeeWX
  Monitoring WeeWX
   "To watch the log as it is generated, use the tail command with the -f
option: tail -f /var/log/syslog"

And the Troubleshooting guide
 "Did you look at the log file?"
  "sudo tail -f /var/log/syslog"

So to read last hour of WeeWwx log, assuming weewx running under systemd
with a weewx.service file.

journalctl --since "1 hour ago" -u weewx
-u --unit=UNIT Show logs from the specified unit
Thanks,
Paul






On Sat, Jun 3, 2023 at 2:45 PM Tom Keffer <[email protected]> wrote:

> In anticipation of the upcoming release, V5 docs can now be found at
> https://weewx.com/docs/5.0
>
>
> On Tue, May 2, 2023 at 7:56 PM Vince Skahan <[email protected]> wrote:
>
>> Just updated a28 to a29 (no issues on debian) and noticed the upgrade
>> document is out of date for pip upgrades.  The command for updating skins
>> is different now it seems.....can you push the current docs when you get a
>> chance please ?
>>
>> https://www.weewx.com/v5-docs/
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "weewx-development" 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-development/e8237568-ff9d-4e50-88dc-8b9805e867b2n%40googlegroups.com
>> <https://groups.google.com/d/msgid/weewx-development/e8237568-ff9d-4e50-88dc-8b9805e867b2n%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
> --
> You received this message because you are subscribed to the Google Groups
> "weewx-development" 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-development/CAPq0zEDgbPZBZ6CY8fgdfRTXMFjR-90PhGpShCUzCQ3iZCB%3DsA%40mail.gmail.com
> <https://groups.google.com/d/msgid/weewx-development/CAPq0zEDgbPZBZ6CY8fgdfRTXMFjR-90PhGpShCUzCQ3iZCB%3DsA%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-development" 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-development/CAOAVAecUibMmTBknTxSL%2BsEyM5W_M1WVoMec8O4bF6S-h-%2BabQ%40mail.gmail.com.

Reply via email to