Kiyoto,
Yes, the squid3 logs look something like this.
1419409823.123 USERNAME 200
https://www.google.com 456 TCP_ACCEPT 23
config would sorta look like this
<source>
type tail
path /var/log/squid3/access.log
pos_file /var/log/td-agent//squid3.log.pos
tag squid3
format /^[^ ]* (?<username>[^ ]*) (?<code>[^
]*) (?<url>[^ ]*) (?<size>[^ ]*) (?<tcp_code>[^ ]*)
(?<other>[^ ]*)$/
</source>
Since I can't get the time I am ignore it for now. But from what you are saying is that it should look like this now? From what I am see is that your actually calling ruby inside the config.
something like t = Time.at(1419409823.123).strftime
('%Y-%m-%d %H:%M:%S')
> t = Time.at(1419409823.123).strftime('%Y-%m-%d %H:%M:%S')
=> "2014-12-24 08:30:23"
<source>
type tail
path /var/log/squid3/access.log
pos_file /var/log/td-agent//squid3.log.pos
tag squid3
format /^(?<time>[^ ]*) (?<username>[^ ]*) (?<code>[^
]*) (?<url>[^ ]*) (?<size>[^ ]*) (?<tcp_code>[^ ]*)
(?<other>[^ ]*)$/
time_format
${Time.at(time_format).strftime('%Y-%m-%d %H:%M:%S')}
</source>