The asl.conf
man page states that it may contain query-action rules in the form
? query action …
and that query
has the format
[operator key value]
Example
? [= Sender foobar] [<= Level error] notify com.apple.foobar
op key value op key value
-----query 1----- -----query 2---- ---------action--------
From that same source (bold is mine)
ignore Causes a matching message to be ignored in all **subsequent** matching rules.
Configurations that used to be in syslog.conf
are now in asl.conf
below the comment
# Flat file configurations formerly in syslog.conf
It is my understanding that, in order to ignore messages in both system.log
and in Console.app
, you should put rules to ignore messages before the comment above.
Example with modifier S
, which ignores messages matching that substring from SIMBL Agent
.
? [= Sender SIMBL Agent] [S= Message warning: failed to get scripting definition from] ignore
op -key-- ---value--- mod --key-- --------------------value-----------------------
--------query 1------- -----------------------query 2------------------------------- action
After adding a rule restart the daemon with sudo killall HUP syslogd
.
Tested successfully in OS X 10.8.5.
UPDATE
Modules seem to have appeared on 10.9, see here.
If the /etc/asl directory exists, then syslogd and aslmanager will
read each file it contains. These files must have the same format as
asl.conf. Each file configures an independent module, identified by
the file name. Modules may be enabled or disabled independently.
Each module may specify its own set of rules for acting on received
messages. See the ASL MODULES section for details.
Thus filters could be configured in a separate file. I haven't tested it though.