This is how I solved the problem in rsyslog.conf:

if $pri-text == 'user.notice' and $msg contains 'ansible' then {
    /var/log/ansible.log
    stop
}


I put this pretty close to the top of the rsyslog.conf, above GLOBAL 
DIRECTIVES.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/597a4b2c-d53c-4ded-8e09-20455ab4ad0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to