1 {%- from "elasticsearch/map.jinja" import server with context -%}
3 {%- if server.curator is defined and server.curator.get('logfile', '') %}
4 {%- set log_dir = server.curator.logfile|replace(server.curator.logfile.split('/')[-1], "") %}
5 [logstreamer_elasticsearch_curator]
6 type = "LogstreamerInput"
7 log_directory = "{{ log_dir }}"
8 file_match = '{{ server.curator.logfile.split('/')[-1]|replace('.', '\.') }}\.?(?P<Index>\d+)?(\.gz)?'
10 decoder = "Sandbox_elasticsearch_curator"
12 [Sandbox_elasticsearch_curator]
13 type = "SandboxDecoder"
14 filename = "lua_decoders/json.lua"
16 [Sandbox_elasticsearch_curator.config]
17 type = "elasticsearch_curator"
20 timestamp = "@timestamp"