Skip to content

Help with simple JSON format #1375

Answered by tstack
vdawg-git asked this question in Q&A
Jan 21, 2025 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

It's working for me on lnav v0.12.3:

I copied your format file and ran lnav -i to install it.

What version of lnav are you using?

You can run lnav with -d /tmp/lnav.dbg to have lnav write a debug log. There's some more details about what is going on there. In the "Files" panel in the TUI, you can press CTRL-] to focus on the details view to get some other details.

Some notes on the format:

  • You'll want to set timestamp-divisor to 1000 since it looks like the timestamp value is milliseconds since the epoch.
  • The sample lines are only used for plain text logs that use regexes.
  • There's no createdAt field in the sample logs, but it's mentioned in the format.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@vdawg-git
Comment options

Answer selected by vdawg-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants