timestamps in floating point format


Author
Message
danielf82
danielf82
Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)
Group: Forum Members
Posts: 15, Visits: 30
I just tried it, and it failed:


LogViewPlus Support
LogViewPlus Support
Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)Supreme Being (12K reputation)
Group: Moderators
Posts: 1.2K, Visits: 4.3K
Hi Daniel,

I am able to get a good parse using ElapsedDecimal with the pattern:
[%d{ElapsedDecimal}] [%p] [%S] [%S{Source}] [%c] %m%n 



ElapsedDecimal is actually recognized by the Parser Wizard, so you can just highlight the field and select the Mark as Date Time command.



Hope that helps,

Toby
danielf82
danielf82
Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)Gaining Respect (153 reputation)
Group: Forum Members
Posts: 15, Visits: 30
Hi,
I tried and failed to parse the timestamps in log files where the format looks like this:

[1706782845.436764] [INFO ] [139899789445120] [Class.cpp@method:548] [Class] Running test class

The first part ([1706782845.436764]) represents a timestamp in seconds and fractions of seconds.
I was able to parse the seconds part and drop the rest, but failed to parse the full timestamp.

Best Regards,
Daniel

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Login

Explore
Messages
Mentions
Search