-
-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Define anchors/sections from config regex #1431
Comments
You can set the partition name for a log message using the SQL interface. Here's an example: https://github.com/tstack/lnav/blob/master/src/scripts/partition-by-boot.lnav
You should be able to use |
Ah, I totally forgot about that. You need to add another object level, here is an example: Lines 244 to 254 in e47c367
Here's the schema, for reference: |
Wow figured it out, user error. For future reference and example partition configuration:
|
Note that this regex will be applied to all lines, so it can affect performance. If the scale you're working at isn't too big and you don't notice, then it's probably fine. Otherwise, let me know. |
Thanks for the hint. Scale is a tens of gb easily per file, <100gb. Is there a good way to measure "time to interactable"? Then I will try to give some values. |
Alternative for me would be to use a column: Each row has one column which contains the cycle number, thousand or so lines will have the same value in it and the value always ever only remains the same or increases. Using this as the |
The OPID should show up in the breadcrumb bar up top. You can navigate to the crumb (press backquote to focus and then right arrow over to it; or click on it with the mouse) and enter the desired OPID in there. The opid is indexed, so it should have reasonable performance. I've made some additional improvements to opid scanning on the top of tree. |
Hm that generally works, thank! But navigate the ui feels less quick than typing a command, although that could probably also become muscle memory-- I will probably stick with :goto for now but will see if I run into performance issues. |
You can also write a script to go to a particular OPID. Put something like the following into a script named "goto-opid.lnav":
Then, you can call it with |
Is your feature request related to a problem? Please describe.
Navigating large log files which have clear sections over time.
Describe the solution you'd like
:goto #400
allows one to go to a specific anchor or section (?
uses both terms).Thing is, there appears to be no way to define sections or anchors using the configuration.
Describe alternatives you've considered
Tried using partitions which can be defined in the configuration, but was unable to find a way for jumping to specific partitions.
The text was updated successfully, but these errors were encountered: