Closed excalq closed 8 years ago
Interestingly this microsecond format comes from the Ruby 2.1 StdLib logger, as a default: See https://github.com/ruby/ruby/blob/ruby_2_1/lib/logger.rb#L514
Hmm, this was my fault. Apparently some log entries of our app have a format of {"status":"finished","time":0.343048734}
, which shows runtime, not a timestamp. Sorry for the false alarm (if this does prove to be the cause of said issue).
I'm attempting to ingest logs into our ELK stack, and these logs, coming from an in-house Ruby app have the time in this format:
2016-09-28T15:38:57.302000-0700
. Even though I've tried to add a custom filter using the date plugin to handleISO8601
,ss.SSSSSS
,ss.SSS???
, orss.SSS000
, they all fail with the same exception, as follows:Also, I have no problem with simply dropping the microsecond portion of the timestamp. Millisecond precision is plenty. I'm using Logstash 2.4.0, and this entry is forwarded by Filebeat 1.2.3