ansible.builtin.syslog_json (v2.9.27) — callback

sends JSON events to syslog

| "added in version" 1.9 of ansible.builtin"

Authors: unknown

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

This plugin logs ansible-playbook and ansible runs to a syslog server in JSON format

Before 2.9 only environment variables were available for configuration


Requirements

Inputs

    
port:
    default: 514
    description: port on which the syslog server is listening
    env:
    - name: SYSLOG_PORT
    ini:
    - key: syslog_port
      section: callback_syslog_json

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