community.general.syslog_json (8.5.0) — callback

sends JSON events to syslog

Authors: Unknown (!UNKNOWN)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

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


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

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