Ansible FluentD Callback Plugin¶
This repository provides a callback plugin that ships Ansible output via FluentD to an indexer as configured via FLuentD.
Ansible section¶
Install fluent-logger-python
1 |
|
Append the following to the [defaults]
section of your ansible.cfg
1 2 |
|
Put the fluentd
plugin from this git repository into the path_to_callback_plugins_folder as defined above.
This plugin makes use of the following environment variables:
FLUENTD_SERVER
(optional): defaults to localhostFLUENTD_PORT
(optional): defaults to 24224FLUENTD_TYPE
(optional): defaults to ansible
FluentD section¶
Basic fluentd testing config
1 2 3 4 |
|
Shipping logs to elasticsearch
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Elasticsearch¶
This repository contains a file titled ansible.json
. This template can be loaded into your elasticsearch cluster to provide a nice mapping for the ansible data.
List available templates
1 |
|
1 |
|