lnav (The Log File Navigator) 0.11.2 keyboard shortcuts 

lnav (The Log File Navigator) 0.11.2  

Zeynel -
17 months ago
- Shortcuts
0
Space

Down a page

0
Esc

Drop focus on the breadcrumb bar

0
Tab

In the log/text views, focus on the configuration panel for editing filters and examining the list of loaded files. In the SQL result view, cycle through columns to display as bar graphs

0
E

Next/previous error

0
R

Forward/backward by the relative time that was last used with the go to command

0
S

Next/previous slow down in the log message rate

0
F

Next/previous file

0
C

Copy marked lines to the clipboard

0
A

Restore the view that was previously popped with ‘q/Q’

0
Q

Return to the previous view/quit

0
⤶ Enter

If the bar is currently focused, accept the selected value and drop focus

0
D

Forward/backward 24 hours

0
M

Mark/unmark the top line or focused line when in cursor mode

0
T

Switch to/from the text file view

0
W

Next/previous warning

0
X

Toggle the hiding of log message fields. The hidden fields will be replaced with three bullets and highlighted in yellow.

0
Ctrl + C

If the focused line is from a file connected to an open pipe (the “↻” icon will be next to the file name), a SIGINT will be sent to the child process. Otherwise, lnav will quickly exit. If lnav seems to be stuck in a loop, pressing Ctrl + C three times will trigger an abort exit.

0
1

(… to 6) Next/previous n’th ten minute of the hour

0
V

Switch to/from the SQL result view

0
Ctrl + A

Select the first crumb

0
P

Toggle the display of the log parser results

0
I

Switch to/from the histogram view

0
B

Up a page

0
G

Top of the view

0
H

Left half a page. In the log view, pressing left while at the start of the message text will reveal the shortened source file name for each line. Pressing again will reveal the full path.

0
L

Right half a page

0
Ctrl + F

Toggle the enabled/disabled state of all filters in the current view.

0
Ctrl + X

Toggle the cursor mode. Allows moving the focused line instead of keeping it fixed at the top of the current screen.

0

Up a line

0

Select the previous value in the crumb dropdown

0

Left half a page. In the log view, pressing left while at the start of the message text will reveal the shortened source file name for each line. Pressing again will reveal the full path.

0

Right half a page

0

Select the crumb to the left. If the first crumb is selected, the selection will wrap around to the last crumb

0

Accept the current value, which might mean navigating to the value in the view, then selecting the crumb to the right

0
Ctrl + D

Down by half a page

0

Down a line

0

Select the next value in the crumb dropdown

0
K

Up a line

0
O

Forward/backward through log messages with a matching “opid” field

0
Ctrl + P

Show/hide the data preview panel that may be opened when entering commands or SQL queries.

0
N

Next/previous search hit

0
Ctrl + R

Reset the current session state. The session state includes things like filters, bookmarks, and hidden fields.

0
J

Down a line

0
Ctrl + E

Select the last crumb

0
Ctrl + L

Switch to lo-fi mode. The displayed log lines will be dumped to the terminal without any decorations so they can be copied easily.

0
Home

Top of the view

0
Home

Select the first value in the crumb dropdown

0
Backspace

Up a page

0
U

Next/previous bookmark

0
Ctrl + U

Up by half a page

0
End

Top of the view

0
End

Select the last value in the crumb dropdown

0
Ctrl + W

Toggle word-wrap.

0
Page Down

Down a page

0
Page Up

Up a page

0
/

Search for lines matching a regular expression

0
7

Previous/next minute

0
0

Next/previous day

0
8

Previous/next minute

Advertisement

0
↑  Shift +

Left ten columns

0
↑  Shift +

Right ten columns

0
Ctrl + ]

Abort the prompt

0
↑  Shift + R

Forward/backward by the relative time that was last used with the go to command

0
=

Pause/unpause loading of new file data.

0
↑  Shift + S

Next/previous slow down in the log message rate

0
↑  Shift + A

Restore the view that was previously popped with ‘q/Q’ and match the top times of the views

0
↑  Shift + C

Clear marked lines

0
↑  Shift + P

Switch to/from the pretty-printed view of the displayed log or text files

0
↑  Shift + L

Right ten columns

0
?

View/leave builtin help

0
↑  Shift + T

Display the elapsed time from a bookmark to a given line. In the TEXT view, this only works for content that was captured from stdin or a :sh command.

0
↑  Shift + D

Forward/backward 24 hours

0
↑  Shift + M

Mark/unmark the range of lines from the last marked to the top

0
↑  Shift + F

Next/previous file

0
↑  Shift + V

Switch to/from the SQL result view and move to the corresponding in the log_line column

0
↑  Shift + I

Switch to/from the histogram view

0
;

Open the SQLite Interface to execute SQL statements/queries

0
↑  Shift + E

Next/previous error

0
`

Focus on the breadcrumb bar

0
↑  Shift + O

Forward/backward through log messages with a matching “opid” field

0
↑  Shift + W

Next/previous warning

0
↑  Shift + N

Next/previous search hit

0
↑  Shift + H

Left ten columns

0
>

Next/previous search hit (horizontal)

0
or <
0
↑  Shift + K

Mark/unmark the previous line

0
↑  Shift + Q

Return to the previous view/quit while matching the top times of the two views

0
↑  Shift + J

Mark/unmark the next line after the previously marked

0
↑  Shift + 1

(… to 6) Next/previous n’th ten minute of the hour

0
↑  Shift + U

Next/previous bookmark

0
:

Execute an internal command, see Commands for more information

0
↑  Shift + 0

Next/previous day

0
{

Previous/next location in history

0
or }
0
|

Execute an lnav script located in a format directory

Advertisement

Most of these hotkeys should be available in all views.
These hotkeys are only functional on views that are time-based, like the log view or the histogram view.
The following shortcuts are related to the breadcrumb bar that is below the top status bar.
While a crumb is selected, you can perform a fuzzy search on the possible values by typing in the value you are interested in

Share this page on:
Is this page helpful?
0 0

Program information

Program name: lnav (The Log File Navigator) 0.11.2 lnav (The Log File Navigator) 0.11.2 (System tools)

The Log File Navigator is an advanced log file viewer for the terminal. It can understand your log files and make it easy for you to find problems.

Web page: docs.lnav.org/en/v0.11.2/intro...

How easy to press shortcuts: 91%

More information >>

Updated: Updated program information. (2 updates.) 10/23/2023 5:51:57 PM New program added.
10/23/2023 5:53:34 PM Updated program information.

Shortcut count: 95

Platform detected: Windows or Linux

Similar programs



User operations

Add lnav (The Log File Navigator) 0.11.2 to your list of favorites

Advertisement


What is your favorite lnav (The Log File Navigator) 0.11.2 hotkey? Do you have any useful tips for it? Let other users know below.


Only registered users can post links.
Checking site status...
 
No comments yet. Ask, or type the first one!