It is required to print the logs of all ansible tasks in a playbook in RFC5424 format. How can I do this?
How to print the logs of all ansible tasks of a playbook in RFC5424 format?
35 views Asked by Aditya Siddarth At
1
It is required to print the logs of all ansible tasks in a playbook in RFC5424 format. How can I do this?
Ansible output is controlled by the callback plugins. There is a number of built-in ones, including
syslog_json,unixyor evendiythat might help.If none of the built-in plugins fits your requirements, you can always use a custom one (either found in some collection, or written by yourself).