<source>
@type tail
path /var/log/apache2/access.log
pos_file /var/log/td-agent/apache2.access_log.pos
tag graylog2.apache
format apache2
</source>
<match graylog2.**>
@type copy
<store>
type gelf
host 10.2.62.12
port 12201
flush_interval 5s
</store>
<store>
@type stdout
</store>
</match>
10.2.12.153 - - [18/Jan/2017:15:37:39 +0000] "GET / HTTP/1.1" 200 304 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.2.12.153 - - [18/Jan/2017:15:37:39 +0000] "GET / HTTP/1.1" 200 303 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
10.2.12.153 - - [18/Jan/2017:15:37:40 +0000] "GET /favicon.ico HTTP/1.1" 404 503 "http://syso-prod-01/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36"
--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
2017-01-19 13:12:04 +0000 [warn]: emit transaction failed: error_class=NoMethodError error="undefined method `bytesize' for nil:NilClass" tag="graylog2.apache"
2017-01-19 13:12:04 +0000 [warn]: /etc/td-agent/plugin/out_gelf.rb:60:in `block in format'
2017-01-19 13:12:04 +0000 [warn]: /etc/td-agent/plugin/out_gelf.rb:58:in `each_pair'
2017-01-19 13:12:04 +0000 [warn]: /etc/td-agent/plugin/out_gelf.rb:58:in `format'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:284:in `block in format_stream'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/event.rb:130:in `call'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/event.rb:130:in `block in each'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/event.rb:129:in `each'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/event.rb:129:in `each'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:283:in `format_stream'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:269:in `emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:42:in `next'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/buffer.rb:199:in `block in emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/2.1.0/monitor.rb:211:in `mon_synchronize'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/buffer.rb:193:in `emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:593:in `block in emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:592:in `each'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:592:in `emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/output.rb:42:in `next'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/out_copy.rb:78:in `emit'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/event_router.rb:90:in `emit_stream'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:291:in `receive_lines'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:401:in `call'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:401:in `wrap_receive_lines'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:596:in `call'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:596:in `on_notify'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:427:in `on_notify'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:528:in `call'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:528:in `on_change'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.4.5/lib/cool.io/loop.rb:88:in `run_once'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/cool.io-1.4.5/lib/cool.io/loop.rb:88:in `run'
2017-01-19 13:12:04 +0000 [warn]: /opt/td-agent/embedded/lib/ruby/gems/2.1.0/gems/fluentd-0.12.31/lib/fluent/plugin/in_tail.rb:275:in `run'
--
<source>
@type tail
path /var/log/apache2/access.log
pos_file /var/log/td-agent/apache2.access_log.pos
tag graylog2.apache
format apache2
</source>
<source>
type tail
path /var/log/apache2/access.log
pos_file /var/log/td-agent/apache2.access_log.pos
tag graylog2.apache
format apache2
</source>
type
,id
andlog_level
are supported for backward compatibility.