Hi All,
I have td-agent which reads a log file and and copy it to a given port. But
the time in the log is on am/pm format. Is there a way to send the time in
24Hour format to the given port or get the am/pm in the time format.because
of this 1.00.00 *PM* and 1.00.00 *AM *is copy to the given port with the
same time stamp as 1.00.00 .
*Example log line*
127.0.0.1 12/31/2014 06:08:07 AM gate Info:
************************************
*td-agent.conf configuration*
<match *****.**>
type copy
<store>
type gelf
host **********
port ****
flush_interval 5s
</store>
</match>
####
## Source descriptions:
<source>
type tail
format /^(?<host>[^ ]*) (?<Date>[^ ]*) (?<time>[^ ]*.[^ ]*) (?<gate>[^
]*) (?<tag>[^ ]*) (?<Num>[0-9]*)(?<message>.*)/
path ************
pos_file /var/log/td-agent/payment.log.pos
tag *****
pos_file /var/log/td-agent/tmp/payment.log.pos
</source>
*Output of td-agent.log*
2015-06-17 10:24:36 +0000 graylog2.payment:
{"host":"127.0.0.1","Date":"06/17/2015", "gate":"********
"tag":"Debug:","Num":"","message":"**************"}
--
You received this message because you are subscribed to the Google Groups
"graylog2" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.