Hello list, I use a KVM switch to connect my mouse and keyboard to any of three boxes on the LAN. Every time I switch to, say, the LAN server, I get spammed with a bunch of messages like this (trimming out the first few fields):
kernel: usb 1-1: new high-speed USB device number 14 using ehci-pci kernel: usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 kernel: usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 kernel: usb 1-1: Product: USB2.0 Hub kernel: hub 1-1:1.0: USB hub found kernel: hub 1-1:1.0: 4 ports detected kernel: usb 1-1.1: new low-speed USB device number 15 using ehci-pci kernel: usb 1-1.1: New USB device found, idVendor=046a, idProduct=0011 kernel: usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0 kernel: input: HID 046a:0011 as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.1/1-1.1:1.0/0003:046A:0011.0009/input/input14 kernel: hid-generic 0003:046A:0011.0009: input,hidraw0: USB HID v1.10 Keyboard [HID 046a:0011] on usb-0000:00:1d.7-1.1/input0 kernel: usb 1-1.2: new low-speed USB device number 16 using ehci-pci kernel: usb 1-1.2: New USB device found, idVendor=046d, idProduct=c050 kernel: usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0 kernel: usb 1-1.2: Product: USB-PS/2 Optical Mouse kernel: usb 1-1.2: Manufacturer: Logitech kernel: input: Logitech USB-PS/2 Optical Mouse as /devices/pci0000:00/0000:00:1d.7/usb1/1-1/1-1.2/1-1.2:1.0/0003:046D:C050.000A/input/input15 kernel: hid-generic 0003:046D:C050.000A: input,hidraw1: USB HID v1.10 Mouse [Logitech USB-PS/2 Optical Mouse] on usb-0000:00:1d.7-1.2/input0 Also, every time I connect an external disk I get this lot: kernel: usb 1-4: new high-speed USB device number 17 using ehci-pci kernel: usb 1-4: New USB device found, idVendor=0bc2, idProduct=331a kernel: usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=3 kernel: usb 1-4: Product: Expansion Desk kernel: usb 1-4: Manufacturer: Seagate kernel: usb 1-4: SerialNumber: NA8EAGTY kernel: usb-storage 1-4:1.0: USB Mass Storage device detected kernel: scsi host6: usb-storage 1-4:1.0 kernel: usbcore: registered new interface driver usb-storage kernel: scsi 6:0:0:0: Direct-Access Seagate Expansion Desk 0909 PQ: 0 ANSI: 6 kernel: sd 6:0:0:0: [sdb] 3907029167 512-byte logical blocks: (2.00 TB/1.82 TiB) kernel: sd 6:0:0:0: [sdb] Write Protect is off kernel: sd 6:0:0:0: [sdb] Mode Sense: 47 00 00 08 kernel: sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA kernel: sdb: sdb1 sdb2 < sdb5 > kernel: sd 6:0:0:0: [sdb] Attached SCSI disk kernel: EXT4-fs (sdb5): mounted filesystem with ordered data mode. Opts: (null) In each case I'd like to omit the inessential lines from the VT-12 display; I really don't need all that detail of the USB setup and it gets in the way of what I do want to see, which is just the lines telling me which /dev/sdX has been allocated to the disk, and probably nothing at all about the mouse and keyboard. I'm using syslog-ng. I've already modified syslog-ng.conf thus, to log cron separately for the same reason: [...] source src { system(); internal(); }; filter f_cron { facility (cron); }; filter f_ncron { not facility (cron); }; destination d_cron { file("/var/log/cron"); }; destination messages { file("/var/log/messages"); }; destination console_all { file("/dev/tty12"); }; log { source(src); destination(messages); }; log { source(src); filter(f_cron); destination(d_cron); }; log { source(src); filter(f_ncron); destination(console_all); }; Is there a USB "facility" I can treat similarly? I haven't been able to find where the facilities are defined. -- Regards Peter