Skip to contentSkip to conversation

ausearch message types

DISCUSSION LC Bruzenak 1 participant 2 messages Oct 31, 2016

lore
Share & tools
lore
#0 lore raw

I'm on the 2.4.5 version of the audit code.
Has anyone thought about or implemented a exclusionary message list, such as:

ausearch -m ALL-avc,user_avc -ts today

I'd like to be able to search in this manner, where I exclude certain message types.
I could write a patch, but if anyone has already done this I'd happily use theirs.
The message type list is so long that it would be painful to have the comma-delimited list of all but a couple.

Thx,
LCB

Signature · 2 lines
LC Bruzenak
magitekltd.com
#1 lore raw
Quoted 4 lines · LC Bruzenak

I'm on the 2.4.5 version of the audit code.
Has anyone thought about or implemented a exclusionary message list, such as:

ausearch -m ALL-avc,user_avc -ts today

Actually in this case I'm running the search from a script so I can easily take the stderr results from "ausearch -i -m help", pipe them into a sed substitution which removes the preceding text, removes the ones I don't want, and replaces the spaces with commas. So for now I am set; still I think it would perhaps be helpful to have at some point.

Signature · 2 lines
LC Bruzenak
magitekltd.com