Features
Support
Purchase
Documentation
Download
Login
Register
Login
Register
Home
»
LogViewPlus Support
»
Configuration & Customization
»
Pattern for Parsing "2021-12-02T07:13:24.5072497Z"
Pattern for Parsing "2021-12-02T07:13:24.5072497Z"
Post Reply
Like
7
Pattern for Parsing "2021-12-02T07:13:24.5072497Z"
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
klacol
klacol
posted 4 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 3,
Visits: 4
Hi all, I am using LogViewPlus, and it is working very well.
Now I came over a log file, that has Json entries and the date and time is provided like this:
2021-12-02T07:13:24.5072497Z
I tried to use this pattern,
%d{yyyy-MM-ddTHH:mm:ss.fffffffzzz}
but it says "Timestamp not found for log entry".
Does anybody know, how which pattern would work?
Reply
Like
7
Replies
LogViewPlus Support
LogViewPlus Support
posted 4 Years Ago
ANSWER
Post Details
Share Post
Group: Moderators
Posts: 1.2K,
Visits: 4.3K
Hi Klacol,
'Z' in a timestamp is used to indicate Zero time - or UTC-0. It is not a standard timezone and cannot be understood with the standard timezone patterns. It is actually considered a literal rather than a timezone (similar to 'T').
The correct way to parse this is with a Z:
%d{yyyy-MM-ddTHH:mm:ss.fffffff
Z
}
%d on it's own will also work, but this is not recommended. %d tells LogViewPlus to 'just figure it out'. LogViewPlus is pretty good at figuring dates out, but this approach is a little slower. Also, it is always better to parse more accurately where possible.
Hope that helps,
Toby
Edited
4 Years Ago by
LogViewPlus Support
Reply
Like
8
klacol
klacol
posted 4 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 3,
Visits: 4
Thanks Toby, thats works; have changed it in the settings.
Reply
Like
7
LogViewPlus Support
LogViewPlus Support
posted 4 Years Ago
ANSWER
Post Details
Share Post
Group: Moderators
Posts: 1.2K,
Visits: 4.3K
Glad that helped - thanks for letting me know.
Toby
Reply
Like
7
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Pattern for Parsing "2021-12-02T07:13:24.5072497Z"
klacol
-
4 Years Ago
I is simpler, this works:
klacol
-
4 Years Ago
Hi Klacol, 'Z' in a timestamp is used to indicate Zero time - or...
LogViewPlus Support
-
4 Years Ago
Thanks Toby, thats works; have changed it in the settings.
klacol
-
4 Years Ago
Glad that helped - thanks for letting me know. Toby
LogViewPlus Support
-
4 Years Ago
Post Reply
Like
7
Similar Topics
Post Quoted Reply
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search