Thank you for your feedback sorry for low info message I was being rushed for other issues. I think the problem might be due to queue limit. Digging deeper I found this:
2014-05-28 18:00:57 -0700 [warn]: temporarily failed to flush the buffer. next_retry=2014-05-28 17:59:54 -0700 error_class="Errno::ETIMEDOUT" error="Connection timed out - connect(2)" instance=70185829420620
Followed by a bunch of ruby warns.
Here is my config.
<source>
type syslog
port 5140
tag apache
format /[^ ]* {1,2}[^ ]* [^ ]* (?<host>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*)(?:\[(?<pid>[0-9]+)\])?[^\:]*\: (?<client_ip>[^ ]*) [^ ]* (?<user>[^ ]*) \[(?<time>[^\]]*)\] (?<code>[^ ]*) (?<size>[^ ]*) (?<method>\S+) (?<url>[^ ]*)?/
time_format %d/%b/%Y:%H:%M:%S %z
</source>
# log files in syslog format
<source>
type tail
path /var/local/fluent/auth.log,/var/local/fluent/cron.log,/var/local/fluent/daemon.log,/var/local/fluent/lpr.log,/var/local/fluent/kern.log,/var/local/fluent/mail.log,/var/local/fluent/netdevices.log,/var/local/fluent/sudo.log,/var/local/fluent/user.log,/var/local/fluent/syslog
pos_file /var/log/td-agent/tail-syslog.pos
tag system.local
format syslog
</source>
<source>
type tail
path /var/log/auth.log,/var/log/cron.log,/var/log/daemon.log,/var/log/lpr.log,/var/log/kern.log,/var/logs/mail.log,/var/log/netdevices.log,/var/log/sudo.log,/var/log/user.log,/var/log/syslog
pos_file /var/log/td-agent/local-syslog.pos
tag system.local
format syslog
</source>
# log files with no date
<source>
type tail
path /var/local/fluent/bootstrap.log,/var/local/fluent/fontconfig.log
pos_file /var/log/td-agent/tail-none.pos
tag system.local
format none
</source>
# alternatives.log custom format
<source>
type tail
path /var/local/fluent/alternatives.log
pos_file /var/log/td-agent/tail-alternatives.pos
tag system.local
format /^(?<time>[^ ]*) (?<ident>[a-zA-Z0-9_\/\.\-]*): (?<message>.*)$/
time_format %Y-%m-%d %H:%M:%S
</source>
# dpkg.log custom log format
<source>
type tail
path /var/local/fluent/dpkg.log
pos_file /var/log/td-agent/tail-dpkg.pos
tag system.local
format /^(?<time>[^ ]*) (?<message>.*)$/
time_format %Y-%m-%d %H:%M:%S
</source>
# geo lookup the apache logs
<match apache.**>
type geoip
geoip_lookup_key client_ip
# Set adding field with placeholder (more than one settings are required.)
<record>
city ${city['host']}
latitude ${latitude['host']}
longitude ${longitude['host']}
country_code3 ${country_code3['host']}
country ${country_code['host']}
country_name ${country_name['host']}
dma ${dma_code['host']}
area ${area_code['host']}
region ${region['host']}
</record>
# Settings for tag
remove_tag_prefix apache.
tag geoip.${tag}
</match>
# send everything to elasticsearch
<match **>
type elasticsearch
logstash_format true
flush_interval 5s
</match>