The following is the GNU All-permissive License as recommended in https://www.gnu.org/licenses/license-recommendations.en.html

Copyright (C) 2024 Free Software Foundation sysadmin@fsf.org

Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.

Contributions are welcome. See https://savannah.gnu.org/maintenance/fsf/.

Count room use

We want to search 7 daily archived logs:

ls -lh syslog.*

The command to do the counting:

cat /var/log/syslog.1|grep room=|sed 's/.*room=//;s/ .*//'|sort -u |wc -l
for x in /var/log/syslog.*gz; do zcat $x|grep room=|sed 's/.*room=//;s/ .*//'|sort -u |wc -l ; done

python3
>>> (16 + 20 + 37 + 24 + 24 + 17 + 30) / 7
24.0