Comments (14)
A solid example is lnav -r /var/log which will also load /var/log/journal logs but those are undesired to be loaded first because journal is better piped to lnav and secondly because it will significantly slow down loading of log files.
Can you attach an lnav debug log (run lnav with -d /tmp/lnav.dbg
) when you're doing this.
I did a quick test with a system I had on hand and since the files in journal
are binary, lnav will ignore them. So, it doesn't really slow down loading.
from lnav.
Ah, I was testing with the v0.12+, lnav v0.11.1 is slow for me as well. Are you able to upgrade to either v0.12.1 or there is a beta for the v0.12.2 release:
https://github.com/tstack/lnav/releases/tag/v0.12.2-beta1
from lnav.
The backquote character is now used to focus on the breadcrumb bar
Sorry, but I'm not in love with this. On a Swedish keyboard that means pressing shift-' space, which is anything but intuitive and fast.
from lnav.
There's currently no command to focus on the breadcrumb bar, which is a gap. I think I'll add it as an option to the existing :prompt
command, then folks can bind it to whatever they want. Thanks for letting me know about the issues.
from lnav.
@tstack
Thank you for response!
Can you attach an lnav debug log (run lnav with -d /tmp/lnav.dbg) when you're doing this.
I have run the command sudo lnav -d /tmp/lnav.dbg -r /var/log
and here is the compressed file as requested:
I did a quick test with a system I had on hand and since the files in journal are binary, lnav will ignore them. So, it doesn't really slow down loading.
In my case the above command took some 3 minutes to finish loading files, and it is visible from the Configuration Panel
that the journal files are processed most of the time, I can't tell if they're being loaded but it surely takes a lot of time to process them.
Additional info:
System: Debian 12.5 bookworm
lnav -V
lnav 0.11.1
from lnav.
I have tested v0.12.2-beta1
in my VM
and can confirm loading is as fast as it should be, so that problem is solved.
The only problem I spotted is ENTER
key moves focus line instead of invoking breadcrumb bar menu, I guess the default keymap was changed?
Are you able to upgrade
Sadly I don't practice installing software that is not from Debian's repo on my main machine but it's not a big deal, I wish newer version to be available in Debian's backports, is that possible?
While the issue with loading speed is solved, I think the option to exclude files and directories with -r
option would be nice addition to lnav
regardless, what do you think?
from lnav.
The only problem I spotted is ENTER key moves focus line instead of invoking breadcrumb bar menu, I guess the default keymap was changed?
The backquote character is now used to focus on the breadcrumb bar. The change was mentioned in the NEWS.md file and is shown in the top-right after startup.
I wish newer version to be available in Debian's backports, is that possible?
I don't maintain OS packages. You could try using the snap version, which I do maintain.
I think the option to exclude files and directories with -r option would be nice addition to lnav regardless, what do you think?
I think some other tools support more sophisticated glob patterns that allow you to write exclusions, I'll look into doing something like that.
from lnav.
I'll look into doing something like that.
OK, you close this issue if no decision to implement option to exclude, for me this is solved.
Thank you for support, and thank you for great software!
from lnav.
@FaffeF can you recommend an alternative? I found ENTER to be too easy to press and was activating the bar when I didn’t want to.
from lnav.
@FaffeF
On my keyboard which is also not English I have to press Alt Gr + 7
however there is straight key for backtick which is the one left of 1
or ~
(don't know how that one is called).
I didn't know this for a very long time until recently, you might as well find the key on your keyboard by trying out.
@tstack
I think a more appropriate and cross--language-keyboard friendly would be SHIFT + TAB
because since TAB
is used for file filtering which is Configuration panel
then it logically makes sense because Breadcrumb Bar
is same thing except at the top of UI.
And beside that pressing SHIFT + TAB
is easy because you can use both hand fingers to press and the keys are easy to access on blind typing.
Or if it has to be single key, then Ins
(insert) key, is also not hard to type and is cross-language friendly.
Both of these are not assigned from what I see on docs
from lnav.
@FaffeF can you recommend an alternative?
I'm guessing the whole point of this is to use the "quake" key, i.e. the key to the left of 1. Checking different keyboard layouts, I see there are quite a few different symbols located there, where we in the Nordics seem to have settled on the section mark §, sorry @metablaster.
A thought that occurred to me is that there may be some key people expect the menu bar to be available at, rather than backtick? F10 seems to be more or less standard in Windows applications. Alt+space also comes to mind.
This is quite a similar issue to my old one #1066, and I could try to author another pull request. Mabye I could check the other available keymaps as well.
And sorry for kidnapping the thread, this should be a separate issue.
from lnav.
I've pushed a change that adds a breadcrumb
option to the :prompt
command. I've kept the backtick binding in the default keymap for now:
lnav/src/keymaps/default-keymap.json
Lines 174 to 177 in 99c6aab
I bound it to §
in the sv
keymap:
lnav/src/keymaps/sv-keymap.json
Lines 27 to 30 in 99c6aab
I think a more appropriate and cross--language-keyboard friendly would be SHIFT + TAB because since TAB is used for file filtering which is Configuration panel
At the moment, Shift + TAB
will also activate the configuration panel and it cycles forward/backward through the panels.
Note that in v0.12.2, you can also focus on the breadcrumbs using the mouse. That might help the situation a bit.
Do you folks actually use the breadcrumb bar? I'm amazed that anyone actually cared enough to notice/speak up. If so, that's great!
from lnav.
I've kept the backtick binding in the default keymap for now
That's fine with me, it's quake key on my keyboard which is easy to press.
Do you folks actually use the breadcrumb bar? I'm amazed that anyone actually cared enough to notice/speak up. If so, that's great!
Certainly, it's very useful to set time how fast to scroll, to select different log formats etc.
Overall no objections, but I'm new user so might me missing what ever gotchas.
I use lnav
primarily to debug firewall and find it the best for the purpose and overall as well, and I've tried other programs as well but nowhere near as much functionalities as in lnav
which I like the most.
from lnav.
I've pushed a change that adds a
breadcrumb
option to the:prompt
command. I've kept the backtick binding in the default keymap for now:
Seems to work with the Swedish keymap, though now lnav exits on backtick, not sure if that was intended?
debug.txt
(10s to test, 15 min to figure out where to download the ci artifact... yeah, I'm a bit slow)
from lnav.
Related Issues (20)
- Latest version crashes on Arch Linux HOT 22
- $schema attribute in format file not recognized by provided jsonschema HOT 2
- Temporary folder not recreated if gone for some reason HOT 1
- When printing timestamp the last 3 microsecond digits are always "0". HOT 2
- request a release for the static init issue fix HOT 3
- Wrap text along word boundaries with the command :enable-word-wrap
- Add the ability to add multiple :filter-expr HOT 2
- Add to HIST the ability to display the number of matches based on arbitrary patterns HOT 1
- Add support for 7z archives HOT 3
- Can't open files in /tmp HOT 2
- Hangs/freezes and uses 100% CPU with small log files. HOT 1
- Pretty print regression for json logs HOT 4
- stdin and adb logcat -v time issues HOT 3
- 0.12.2 "top" mode navigation is broken HOT 1
- Custom theme location does not seem to work? HOT 4
- Enable native Caddy JSON log file format HOT 1
- Can it be built without Rust, disabling related module? HOT 2
- Cursor mode selection does not select expected lines HOT 1
- Feature request: hide/show "discovered fields"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lnav.