[linux] opgelost (omgelost?) / Re: stotterend ELAN fingerprint usb device schrijft syslog vol
Joost van Baal-Ilić
joostvb-nllgg op mdcc.cx
Vr Mrt 28 09:46:16 CET 2025
Hoi,
On Thu, Mar 27, 2025 at 04:19:41PM +0100, Paul Slootman via Linux wrote:
> On Thu 27 Mar 2025, Joost van Baal-Ilić via Linux wrote:
> >
> > Sinds 2025-03-24T08:26 zie ik in mijn /var/log/syslog en /var/log/kern.log :
> > "USB disconnect" en "New USB device found". Dat gebeurt iedere 7 seconden. Ik
> > vind dit een beetje zonde van de schijfruimte en disk schrijf-operaties. Ik
> > gebruik die fingerprint lezer helemaal niet en ben dat ook niet van plan.
> >
> > Wat valt hiertegen te doen?
>
> Ergens bovenin /etc/rsyslog.conf (of in
> /etc/rsyslog.d/fingerprint.conf):
>
> if $msg contains "USB disconnect" then {
> stop
> }
> if $msg contains "New USB device found" then {
> stop
> }
>
> Symptoom bestrijding maar ja... soms moet je pragmatisch zijn
Het is geworden, in /etc/rsyslog.d/fingerprint.conf :
if $msg contains "New USB device found, idVendor=04f3, idProduct=0c02" then {
stop
}
if $msg contains "new full-speed USB device number" then {
stop
}
if $msg contains "New USB device strings: Mfr=1, Product=2" then {
stop
}
if $msg contains "Product: ELAN:Fingerprint" then {
stop
}
if $msg contains "Manufacturer: ELAN" then {
stop
}
if $msg contains "USB disconnect, device number" then {
stop
}
(Ik heb het zo maar gelaten en er niet voor gekozen om dat allemaal, met een
"or" ertussen korter op te schrijven:
https://www.rsyslog.com/doc/configuration/filters.html#expression-based-filters
Expression filters will evolve into a full configuration scripting language.
Unfortunately, their syntax will slightly change during that process. So if you
use them now, you need to be prepared to change your configuration files some
time later.
Beetje jammer. Je kunt niet alles hebben... )
En na een
sudo service rsyslog restart
werkt t als een zonnetje!
Bedankt Paul en Daniel voor het meedenken!
Groeten,
Joost
Meer informatie over de Linux
maillijst