community / community.general / 2.5.9 / callback / splunk Sends task result events to Splunk HTTP Event Collector Authors: Stuart Hirst (!UNKNOWN) <support@convergingdata.com>community.general.splunk (2.5.9) — callback
Install with ansible-galaxy collection install community.general:==2.5.9
collections: - name: community.general version: 2.5.9
This callback plugin will send task results as JSON formatted events to a Splunk HTTP collector.
The companion Splunk Monitoring & Diagnostics App is available here "https://splunkbase.splunk.com/app/4023/"
Credit to "Ryan Currah (@ryancurrah)" for original source upon which this is based.
url: description: URL to the Splunk HTTP collector source env: - name: SPLUNK_URL ini: - key: url section: callback_splunk authtoken: description: Token to authenticate the connection to the Splunk HTTP collector env: - name: SPLUNK_AUTHTOKEN ini: - key: authtoken section: callback_splunk validate_certs: default: true description: Whether to validate certificates for connections to HEC. It is not recommended to set to C(false) except when you are sure that nobody can intercept the connection between this plugin and HEC, as setting it to C(false) allows man-in-the-middle attacks! env: - name: SPLUNK_VALIDATE_CERTS ini: - key: validate_certs section: callback_splunk type: bool version_added: 1.0.0 version_added_collection: community.general include_milliseconds: default: false description: Whether to include milliseconds as part of the generated timestamp field in the event sent to the Splunk HTTP collector env: - name: SPLUNK_INCLUDE_MILLISECONDS ini: - key: include_milliseconds section: callback_splunk type: bool version_added: 2.0.0 version_added_collection: community.general