community / community.general / 6.6.8 / callback / syslog_json sends JSON events to syslog Authors: Unknown (!UNKNOWN)community.general.syslog_json (6.6.8) — callback
Install with ansible-galaxy collection install community.general:==6.6.8
collections: - name: community.general version: 6.6.8
This plugin logs ansible-playbook and ansible runs to a syslog server in JSON format.
Before Ansible 2.9 only environment variables were available for configuration.
port: default: 514 description: Port on which the syslog server is listening. env: - name: SYSLOG_PORT ini: - key: syslog_port section: callback_syslog_json setup: default: true description: Log setup tasks. env: - name: ANSIBLE_SYSLOG_SETUP ini: - key: syslog_setup section: callback_syslog_json type: bool version_added: 4.5.0 version_added_collection: community.general server: default: localhost description: Syslog server that will receive the event. env: - name: SYSLOG_SERVER ini: - key: syslog_server section: callback_syslog_json facility: default: user description: Syslog facility to log as. env: - name: SYSLOG_FACILITY ini: - key: syslog_facility section: callback_syslog_json