You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/internals/cmd-ref.rst
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -222,7 +222,7 @@
222
222
:comment *text*
223
223
^^^^^^^^^^^^^^^
224
224
225
-
Attach a comment to the focused log line. The comment will be displayed right below the log message it is associated with. The comment can be formatted using markdown and you can add new-lines with '\n'.
225
+
Attach a comment to the focused log line. The comment will be displayed right below the log message it is associated with. The comment can contain Markdown directives for styling and linking.
[4m_This is the source repository for [0m[1m[4m**lnav**[0m[4m, visit [https://lnav.org](https://lnav.org) for a high level overview._[0m
11
+
[4m_This is the source repository for [0m[1m[4m**lnav**[0m[4m, visit [0m[4m[34m[[0m[4mhttps://lnav.org[0m[4m[34m]([0m[4mhttps://lnav.org[0m[4m[34m)[0m[4m for a high level overview._[0m
12
12
13
13
[1m[35m# LNAV -- The Logfile Navigator[0m
14
14
@@ -20,25 +20,25 @@ set of files/directories, [1m**lnav**[0m will:
20
20
[33m-[0m merge the files by time into a single view;
21
21
[33m-[0m tail the files, follow renames, find new files in directories;
[33m-[0m jump quickly to the previous/next error ([press [35m`e`[0m/[35m`E`[0m](https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation));
28
-
[33m-[0m search using regular expressions ([press [35m`/`[0m](https://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation));
29
-
[33m-[0m highlight text with a regular expression ([[35m`:highlight`[0m](https://docs.lnav.org/en/latest/commands.html#highlight-pattern) command);
30
-
[33m-[0m filter messages using [regular expressions](https://docs.lnav.org/en/latest/usage.html#regular-expression-match) or [SQLite expressions](https://docs.lnav.org/en/latest/usage.html#sqlite-expression);
31
-
[33m-[0m pretty-print structured text ([press [35m`P`[0m](https://docs.lnav.org/en/latest/ui.html#pretty));
32
-
[33m-[0m view a histogram of messages over time ([press [35m`i`[0m](https://docs.lnav.org/en/latest/ui.html#hist));
33
-
[33m-[0m analyze messages using SQLite ([press [35m`;`[0m](https://docs.lnav.org/en/latest/sqlext.html))
27
+
[33m-[0m jump quickly to the previous/next error ([34m[[0mpress [35m`e`[0m/[35m`E`[0m[34m]([0mhttps://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation[34m)[0m);
28
+
[33m-[0m search using regular expressions ([34m[[0mpress [35m`/`[0m[34m]([0mhttps://docs.lnav.org/en/latest/hotkeys.html#spatial-navigation[34m)[0m);
29
+
[33m-[0m highlight text with a regular expression ([34m[[0m[35m`:highlight`[0m[34m]([0mhttps://docs.lnav.org/en/latest/commands.html#highlight-pattern[34m)[0m command);
30
+
[33m-[0m filter messages using [34m[[0mregular expressions](https://docs.lnav.org/en/latest/usage.html#regular-expression-match) or [SQLite expressions[34m]([0mhttps://docs.lnav.org/en/latest/usage.html#sqlite-expression[34m)[0m;
31
+
[33m-[0m pretty-print structured text ([34m[[0mpress [35m`P`[0m[34m]([0mhttps://docs.lnav.org/en/latest/ui.html#pretty[34m)[0m);
32
+
[33m-[0m view a histogram of messages over time ([34m[[0mpress [35m`i`[0m[34m]([0mhttps://docs.lnav.org/en/latest/ui.html#hist[34m)[0m);
33
+
[33m-[0m analyze messages using SQLite ([34m[[0mpress [35m`;`[0m[34m]([0mhttps://docs.lnav.org/en/latest/sqlext.html[34m)[0m)
34
34
35
35
[1m## Screenshot[0m
36
36
37
37
The following screenshot shows a mix of syslog and web access log
38
38
files. Failed requests are shown in red. Identifiers, like IP
[Download a statically-linked binary for Linux/MacOS from the release page](https://github.com/tstack/lnav/releases/latest#release-artifacts)
69
+
[34m[[0mDownload a statically-linked binary for Linux/MacOS from the release page[34m]([0mhttps://github.com/tstack/lnav/releases/latest#release-artifacts[34m)[0m
70
70
71
71
[4m### Brew on MacOS[0m
72
72
@@ -90,7 +90,7 @@ the log messages that were recognized[^1]. You can then use the
90
90
usual hotkeys to move around the view (arrow keys or
91
91
[35m`j`[0m/[35m`k`[0m/[35m`h`[0m/[35m`l`[0m to move down/up/left/right).
92
92
93
-
See the [Usage section](https://docs.lnav.org/en/latest/usage.html)
93
+
See the [34m[[0mUsage section[34m]([0mhttps://docs.lnav.org/en/latest/usage.html[34m)[0m
94
94
of the online documentation for more information.
95
95
96
96
[^1]: Files that do not contain log messages can be seen in the
@@ -101,28 +101,28 @@ of the online documentation for more information.
101
101
On systems running [35m`systemd-journald`[0m, you can use [35m`lnav`[0m as the pager:
102
102
103
103
[35m```[0m
104
-
[35m$ journalctl | lnav[0m
104
+
[35m$ journalctl [0m[35m|[0m[35m lnav[0m
105
105
[35m```[0m
106
106
107
107
or in follow mode:
108
108
109
109
[35m```[0m
110
-
[35m$ journalctl -f | lnav[0m
110
+
[35m$ journalctl -f [0m[35m|[0m[35m lnav[0m
111
111
[35m```[0m
112
112
113
113
Since [35m`journalctl`[0m's default output format omits the year, if you are
114
114
viewing logs which span multiple years you will need to change the
115
115
output format to include the year, otherwise [35m`lnav`[0m gets confused:
0 commit comments