I have been facing warn: pattern not match in fluentd, and because of this my filter section was not working. And then I took this warning seriously and resolved this by creating a regex. So, my td-agent.conf is as follows:
Please note that, the apache2 logs may be different for you, because you have made a different configuration in apache2.conf. You can use rubular
for creating regex in ruby, because fluentd/td-agent has been written in ruby.
After that you can view buffer that has collected your logs in directory /var/log/td-agent/buffer/s3.xxx
It seems that tail plugin does not support the format for apache log format "vhost_combined" but "combined".
How about changing the apache configuration file as follows: