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 @@ ...@@ -42,6 +42,7 @@
- fluent-plugin-multi-format-parser - fluent-plugin-multi-format-parser
- fluent-plugin-record-modifier - fluent-plugin-record-modifier
- fluent-plugin-mail - fluent-plugin-mail
- fluent-plugin-beats
- name: Ensure SSL Directory - name: Ensure SSL Directory
file: file:
......
...@@ -2,6 +2,11 @@ ...@@ -2,6 +2,11 @@
@type forward @type forward
port 24224 port 24224
</source> </source>
<source>
@type beats
metadata_as_tag
</source>
{% if 'proxyserver' in groups and inventory_hostname in groups.proxyserver %} {% if 'proxyserver' in groups and inventory_hostname in groups.proxyserver %}
<source> <source>
...@@ -332,6 +337,27 @@ ...@@ -332,6 +337,27 @@
request_timeout 15s request_timeout 15s
</match> </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 **> <match **>
@type elasticsearch @type elasticsearch
logstash_format true logstash_format true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment