@type forward port 24224 @type syslog port 5140 tag system @type tail path /var/log/httpd/access_log pos_file /var/log/td-agent/access_log.pos tag httpd.access @type none @type parser key_name message reserve_data true @type apache2 @type copy @type file path /var/log/containers/${tag} append true timekey 5s flush_mode immediate @type rewrite_tag_filter key container_name pattern /\/(.+)/ tag ${tag}.$1 @type gelf protocol tcp host localhost port 12201 flush_interval 5s