@type tail
path /root/es-demo/testapp.log
pos_file /var/log/td-agent/testapp.log.pos
format /^\[(?[^ ]* [^ ]*)\] (?[^ ]*) *? (?[^ ]*) * (?[^ ]*) * (?.*) \[(?.*)\]$/
time_format %d/%b/%Y:%H:%M:%S %z
types size:integer, status:integer, reqtime:float, runtime:float, time:time
tag testappec2.log
type_name testappec2log
@type elasticsearch
include_tag_key true
tag_key @log_name
host eshost
port 443
scheme https
logstash_format true
logstash_prefix testappec2log
flush_interval 10s
retry_limit 5
buffer_type file
buffer_path /var/log/td-agent/buffer/testapp.log.buffer
reload_connections false