1

From the manpage of the dbus-monitor command, I know that I can use some command line arguments like dbus-monitor "type=..., sender=..., interface=..." to specify the type/sender/interface etc I am interested in.

However, for the situation that there is a few program that has heavy dbus traffic that I am not interested in, is there an option to filter out the output of that interface/program?

THX

yuyichao
  • 768
  • 6
  • 28
  • you could always filter in the syslog config. i can't remember the details, but i *think* you can match for arbitrary strings. – andrew cooke May 17 '12 at 01:24
  • ?? I don't think it has anything to do with `syslog` though. I am just talking about the `dbus-monitor` command. – yuyichao May 17 '12 at 01:40
  • oh, sorry - i thought you were trying to reduce the amount of data appearing in a log somewhere. – andrew cooke May 17 '12 at 01:41

1 Answers1

2

The dbus-daemon routes messages using message matching rules. You cannot have something like "message unmatching" rules, the specification does not support something like this. See here for more information.

To get the desired filtering behavior I would suggest using grep on the output of dbus-monitor. Check this discussion for more information.

Community
  • 1
  • 1
Alexandru C.
  • 3,337
  • 1
  • 25
  • 27