#740203 logcheck-databse: proposed ignore rules for hostapd

Package:
logcheck-database
Source:
logcheck
Submitter:
Gabriel Niebler
Date:
2024-06-01 11:57:03 UTC
Severity:
wishlist
Tags:
#740203#5
Date:
2014-02-26 21:21:18 UTC
From:
To:
Dear Maintainers,

I have logcheck running on a centralised loghost for my small home network,
running Debian wheezy (stable). My wireless router, running OpenWRT, also
logs to this host, to separate logfiles, and when I added these to
logcheck.logfiles, I started getting emails from logcheck complaining about
messages like these...

<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 IEEE 802.11: authenticated
<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 IEEE 802.11: associated (aid 2)
<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 IEEE 802.11: associated (aid 3)
<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 IEEE 802.11: deauthenticated due to local deauth request

... and...

<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 WPA: pairwise key handshake completed (RSN)
<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 WPA: group key handshake completed (RSN)
<date> <hostname> hostapd: wlan0: STA 88:88:88:88:88:88 WPA: received EAPOL-Key 2/2 Group with unexpected replay counter

... all of which are harmless.
(To see this for the last line cf.:
http://lists.shmoo.com/pipermail/hostap/2011-May/023166.html )

So I created "local-hostapd" in /etc/logcheck/ignore.d.server,
which contains these lines:

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: authenticated$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: associated \(aid [[:digit:]]\)$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: deauthenticated due to local deauth request$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} WPA: pairwise key handshake completed \(RSN\)$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} WPA: group key handshake completed \(RSN\)$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA ([0-9a-f]{2}:){5}[0-9a-f]{2} WPA: received EAPOL-Key 2/2 Group with unexpected replay counter$

I tested them and they work for me.
Since 'hostapd' exists on Debian, too, and AFAIK logs the same
messages, I propose creating "/etc/logcheck/ignore.d.server/hostapd"
using these same ignore-filtering rules.

Cheers
- gabe

#740203#10
Date:
2014-03-04 20:56:41 UTC
From:
To:
I have since added a few more filtering rules for harmless messages to
my local-hostapd:

^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA
([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: disassociated$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA
([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: disassociated due to inactivity$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA
([0-9a-f]{2}:){5}[0-9a-f]{2} IEEE 802\.11: deauthenticated due to
inactivity$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ hostapd: [[:alnum:]]+: STA
([0-9a-f]{2}:){5}[0-9a-f]{2} WPA: received EAPOL-Key 2/4 Pairwise with
unexpected replay counter$

These might also come in handy for "/etc/logcheck/ignore.d.server/hostapd".

Cheers
- gabe

#740203#21
Date:
2024-06-01 11:54:54 UTC
From:
To:
control: tags -1 + moreinfo
thanks


It's a shame no-one replied to this bug from 2014,

Is there still interest in adding these to logcheck-database? I think
they need an update eg to add a PID after 'hostapd', and i wonder if
they are sill produced or if other changes are needed in 2024?