Skip to content

Instantly share code, notes, and snippets.

@SomeoneWeird
Last active October 15, 2015 01:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SomeoneWeird/5dd6ea648acec3b408b9 to your computer and use it in GitHub Desktop.
Save SomeoneWeird/5dd6ea648acec3b408b9 to your computer and use it in GitHub Desktop.
[nginxAccessInput]
type = "LogstreamerInput"
log_directory = "/var/log/nginx"
file_match = 'access\.log\.?(?P<Seq>\d*)'
priority = [ "^Seq" ]
[nginxErrorInput]
type = "LogstreamerInput"
log_directory = "/var/log/nginx"
file_match = 'error\.log\.?(?P<Seq>\d*)'
priority = [ "^Seq" ]
[ESJsonEncoder]
type = "ESJsonEncoder"
index = "dockerlog-%{%Y.%m.%d}"
es_index_from_timestamp = true
type_name = "%{Type}"
[DockerLogESJsonEncoder.field_mappings]
Timestamp = "@timestamp"
Severity = "level"
[ElasticSearchOutput]
type = "ElasticSearchOutput"
message_matcher = "TRUE"
server = "http://esserver"
flush_interval = 5000
flush_count = 10
encoder = "DockerLogESJsonEncoder"
[DockerLogElasticSearchOutput.buffering]
max_file_size = 65794
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment