fuel-ccp-stacklight/service/files/heka-elasticsearch.toml.j2

17 lines
611 B
Django/Jinja

[elasticsearch_json_encoder]
type = "ESJsonEncoder"
index = {% raw %}"%{Type}-%{%Y.%m.%d}"{% endraw %}
es_index_from_timestamp = true
fields = ["Timestamp", "Type", "Logger", "Severity", "Payload", "Pid", "Hostname", "DynamicFields"]
[elasticsearch_output]
type = "ElasticSearchOutput"
server = "http://elasticsearch:{{ elasticsearch.port }}"
message_matcher = "Type == 'log'"
encoder = "elasticsearch_json_encoder"
use_buffering = true
[elasticsearch_output.buffering]
max_buffer_size = 1073741824 # 1024 * 1024 * 1024
max_file_size = 134217728 # 128 * 1024 * 1024
full_action = "block"