-
Improvement
-
Resolution: Unresolved
-
Minor
-
Logstash-plugin 1.1.0 (June 12, 2015)
Jenkins ver. 1.583
I noticed the timestamp and @timestamp field are always same and set to build start timestamp. Is it possible to log line generation time ? I was very confused that we have 2 timestamp dates (already fixed in 1.1.1) with same value. I expected data['timestamp'] to be build timestamp and @timestamp to be line timestamp.
Is it by design imposible to get the current time into @timestamp ? Maybe if you do not want to implement it by yourself - reading from files generated by Timestamper could be the solution.
- is duplicated by
-
JENKINS-30889 Get the updated version of @timestamp with each new message field (while I'm using wrapper)
-
- Closed
-
It would be fairly easy to update the @timestamp field with each message sent by the build wrapper. Modifying the post-build action to add timestamps at the start of each log line might be challenging.
I think the best approach would be to piggyback on the Timestamper plugin; i.e. when Timestamper is installed and decorating the log, then the Logstash plugin recognizes this and adds the same to its payload. I'm not familiar with how the Timestamper plugin works, so some assistance would be appreciated.