Hello,
I am enjoying my introduction to fluentd and td-agent.
Today I began to push syslog data from Dell N2048 networking gear into td-agent.
Unfortunately, the syslog entries from the Dell equipment seem to put one unit of whitespace between the <pri> and the timestamp, which fluentd seems to not like. Could it really be that the only way around this is to write an entire regex to parse this syslog format?
Here is the output from td-agent:
2017-02-08 22:26:19 +0000 [error]: "<189> Feb 9 06:26:00 switch8054-1 TRAPMGR[dot1s_task]: traputil.c(777) 796225 %% Spanning Tree Topology Change Received: MSTID: 0 Te1/0/1 \x00" error="invalid time format: value = Feb , error_class = ArgumentError, error = invalid strptime format - `%b %e %H:%M:%S'"
I have tried a number of ways to cope with this by changing time_format in td-agent.conf but no combination seems to work. I tried:
time_format %b %e %H:%M:%S
time_format ' %b %d %H:%M:%S'
time_format %4b %e %H:%M:%S
...etc., all using format suggestions from
http://ruby-doc.org/stdlib-1.9.3/libdoc/date/rdoc/DateTime.html#method-c-strptimeI also tried to use the 'newsyslog' package, but installing all of its many required packages would have needed me to upgrade the server to ruby 2.1 and I lost steam on that.
Any tips? I'd rather not just pass the messages in raw.
Thanks,
Tim