Skip to content
Snippets Groups Projects
Commit 3c9a6509 authored by jurgenhaas's avatar jurgenhaas
Browse files

ansible-playbooks/general#92 Add support for beats

parent a0bdd6b6
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,7 @@
- fluent-plugin-multi-format-parser
- fluent-plugin-record-modifier
- fluent-plugin-mail
- fluent-plugin-beats
- name: Ensure SSL Directory
file:
......
......@@ -2,6 +2,11 @@
@type forward
port 24224
</source>
<source>
@type beats
metadata_as_tag
</source>
{% if 'proxyserver' in groups and inventory_hostname in groups.proxyserver %}
<source>
......@@ -332,6 +337,27 @@
request_timeout 15s
</match>
<match *beat>
@type elasticsearch_dynamic
logstash_format true
logstash_prefix ${tag_parts[0]}
type_name ${record['type']}
host 127.0.0.1
port 9200
user elastic
password {{ elasticsearch.users.elastic|default("") }}
include_tag_key true
tag_key @log_name
reconnect_on_error true
<buffer>
@type file
path /var/log/td-agent/buffer/beats.*.buffer
flush_at_shutdown true
flush_thread_count 8
</buffer>
request_timeout 15s
</match>
<match **>
@type elasticsearch
logstash_format true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment