Replies: 3 comments 3 replies
-
|
As an update I have noticed the I am wondering if it's possible to reuse the |
Beta Was this translation helpful? Give feedback.
-
Are you speaking of how column widths are limited and a long value will have an ellipsis is inserted in the middle when it's truncated? To see the full value you can press In this picture, the
I would use search tables for the example messages you gave.
I'm not sure what you mean by this.
A recent addition I made was to add an annotation to postgres error logs with a pointer to the location of the syntax error (see this issue)
I'd like to help, but it's kinda hard without some real log files to reference. It's possible we could write some scripts that do the things you want. And, I would like to make sure lnav is fleshed out enough to work with real-world scenarios.
As you mentioned, |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for looking into it after such a long time. I can ask whether I could make the code available somewhere (it's for work), but what I ended up doing is roughly:
The final result is extremely useful, but I expected to be able to do those things efficiently within
|
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am pretty new to
lnav(used briefly a few times last week, dug into featureset only today) and anything more complex thangrepfor local analysis. Looking for ways to quicken/augment the application logs analysis gathered from users (NetBird debug bundles), I will probably post on another thread with my general findings and what I want to achieve.PS: currently I'm on
0.13.0-rc6PS: Sorry for the chaotic description, I was about to turn off the computer and the question/writeup took a lot longer than I expected it to.
I did read all about extracting data using SQL, but the output table format is truncated for log messages and therefore not very useful for interactive use. Then I'm finding most of the log format features lacking for extracting data for known message patterns:
OnRemoteAnswer, priority: PriorityRelay, status ICE: Disconnected, status relay: Connected->ice_connected: false+relay_connected: trueopen peer connection via permanent server: g7/9/v5VahcyKx12345CNniceTAy+m4O+i+WR5/VBVU=I was wondering how I can use commands and SQL queries to augment my
LOGview experience? I think what I am effectively looking for is an interactive version of thevaluefeature of the log format schema:[a-zA-Z0-9+/=]{44}pattern (that can appear more than once in a line) into apeersfield containing a list of peers for the log line, each of those working asidentifierwith a separate colorsearch-tablefeature seems quite useful for those cases, but I'm unable to figure out how to integrate it into my logs browsing experienceIs there a way to turn a result of SQL query into a browsable
LOGview or otherwise modify it?I have tried preprocessing my logs with a script (turning those into JSON and augmenting with some metadata), but those:
line-formatand hide all the rest inside the "parser details" view underpshortcutline-formatcompared to raw text logs experience (eg:levelis not highlighted)Beta Was this translation helpful? Give feedback.
All reactions