Commit Graph

233 Commits

Author SHA1 Message Date
Timothy Stack
e451c7c112 [docs] more usage notes
Defect Number:
    Reviewed By:
   Testing Done:
2020-08-24 22:50:48 -07:00
Timothy Stack
ae08c12aa0 [docs] some updates 2020-07-02 15:04:44 -07:00
Timothy Stack
d2b9d1cd1c [docs] fix overflow in log formats section 2020-05-22 21:32:49 -07:00
Timothy Stack
7a0cb4359c [docs] fix lexing of lnav commands 2020-05-18 22:21:24 -07:00
Timothy Stack
9c3f0eee89 [build] fix cmake build and lexing of sqlite in docs
Defect Number:
    Reviewed By:
   Testing Done:
2020-05-18 07:10:07 -07:00
Timothy Stack
e85fff0b88 [sql] add json_concat() function and misc fixes 2020-05-17 22:23:30 -07:00
Timothy Stack
468a5ea5d2 [docs] fix json-ptr ref 2020-05-15 11:02:46 -07:00
Timothy Stack
9cbe4d73a9 [docs] start to flesh out command and sql docs 2020-05-15 07:38:40 -07:00
Timothy Stack
defb00303f [docs] some changes 2020-05-13 09:38:41 -07:00
Timothy Stack
8413dd13d8 [config] add configs directory 2020-05-07 07:08:59 -07:00
Timothy Stack
3da3ec799a [session] allow the name 2020-04-25 07:32:05 -07:00
Timothy Stack
0744a9b6de [docs] mention the view tables
Defect Number:
    Reviewed By:
   Testing Done:
2020-04-21 21:04:03 -07:00
Timothy Stack
d5373abeb4 [sql] bind $LINES/$COLS variables to the size of the window
Fixes #698
2020-04-21 06:20:25 -07:00
Timothy Stack
441833ac23 [build] bump version numbers 2020-04-20 22:50:57 -07:00
Timothy Stack
cd3b9bbb71 [docs] start a CLI options page 2019-08-20 07:21:41 -07:00
Timothy Stack
e442f84e80 [textview] pause loading of files by pressing =
Fixes #670
2019-07-30 06:28:42 -07:00
Timothy Stack
06d1098211 [config] initial support for themes
For #422

Still more to do
2019-05-03 13:50:19 -07:00
Timothy Stack
c4b950e4d9 bump version to v0.8.5-rc1 2019-03-15 22:13:18 -07:00
Timothy Stack
469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
2019-03-12 07:06:31 -07:00
Timothy Stack
4a7d116f37 [docs] expand the collate format field a little more 2019-02-06 22:40:07 -08:00
Timothy Stack
153b59ea8a [status] some fixes for the bottom status bar
Fixes #603
Fixes #578
2019-02-05 07:30:57 -08:00
Timothy Stack
3d77fb2acf [cmds] change :write-raw-to to write all the lines in the view
Fixes #606
2019-01-29 07:30:37 -08:00
Timothy Stack
31c440777f [hotkeys] add ctrl+f to toggle filters
Fixes #604
2019-01-27 08:05:44 -08:00
Timothy Stack
0c2f84a3c0 [hotkeys] press 7/8 for previous/next minute
Fixes #382
2019-01-25 07:45:17 -08:00
Timothy Stack
814ad03ec9 [view] keep a history of view positions
Fixes #577
2018-12-14 06:18:56 -08:00
Timothy Stack
5c6cc5fe2a [readline] pressing escape should exit the command prompt
Fixes #316
2018-11-15 06:43:28 -08:00
Timothy Stack
aa0bfd6c62 [sql] add a spooky_hash() function
Fixes #567
2018-11-13 20:55:04 -08:00
Timothy Stack
ec82ecda62 [filter] display the number of filters 2018-11-10 22:55:08 -08:00
Timothy Stack
2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
2018-11-09 09:45:19 -08:00
Timothy Stack
ac7ae1275a [cmds] add :redirect-to command for redirecting the output of commands in scripts
Related to #551
2018-10-12 07:12:35 -07:00
Timothy Stack
db6c619e4e [keymap] support for /dev/clipboard in :write commands
The copy hotkey is now implemented in the keymap and the
':write-*' commands were enhanced to recognize /dev/clipboard
as a special file name for writing to the system clipboard.
2018-09-30 09:49:23 -07:00
Timothy Stack
def35d1ae7 [release] version bump to v0.8.4
Defect Number:
    Reviewed By:
   Testing Done:
2018-08-27 07:23:13 -07:00
Timothy Stack
b1ff6b3a3b [json-log] fix some inconsistencies with json logs
Fill some gaps brought up in #535
2018-08-21 11:10:03 -07:00
Timothy Stack
bc8e51914a [hotkey] the "P" hotkey was not toggling the view
Fixes #522
2018-06-07 06:26:07 -07:00
Timothy Stack
4ccae48aea [bookmarks] add support for tags and comments for log lines
Initial work for #446 and #447
  TODO: filtering on tags/comments

Also did a bunch of clang-tidy cleanups and improvements to
the online help.
2018-05-17 07:06:50 -07:00
Timothy Stack
ef34a6aaaf [search] display lines matching the search in preview instead of jumping to the first
Jumping around can be disruptive, instead show matches in
the preview window.
2018-03-28 07:25:10 -07:00
Timothy Stack
8257f188cb [hotkeys] change the filename hotkey to left/right arrow 2018-03-27 22:11:57 -07:00
Adam Spiers
9ffbc1ac46 make '.' toggle prefixing each log line with filename
Mostly addresses #277.  I won't claim it fully closes it, because there
are at least two ways it could be improved:

1. It doesn't draw a nice coloured divider in the column after the
   filename, and that would provide maximum visual clarity and
   consistency with the existing presentation.

2. It would be nice if the filenames weren't shown on every single line,
   but only on the first line of a contiguous chunk of log lines from a
   single file (or on the top line of the screen if the first line of
   the chunk was already scrolled off the top).

3. It doesn't yet include the filename in the text copied to the
   clipboard when the 'c' hotkey is pressed.
2018-03-27 16:07:56 -07:00
Timothy Stack
4694cabd05 update year 2018-03-23 06:45:09 -07:00
Timothy Stack
74f24fcf4c bump version numbers 2018-01-23 20:17:38 -08:00
Timothy Stack
74b58ed9fc [highlights] allow the highlight color to be specified in log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-12-29 06:51:09 -08:00
Suresh Sundriyal
150252e578 [command] Add a ':quit' command.
Add a ':quit' command and add ':q' as the alias for the
quit command.

Closes #470
2017-10-17 21:36:58 -07:00
Kevin Pham
91b1e96263 update document with default-colors config option 2017-09-15 11:06:21 -07:00
Timothy Stack
371e79ff3d [log_format] allow external logs to specify that they are not time-ordered 2017-04-25 05:58:10 -07:00
Timothy Stack
8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 07:11:21 -07:00
Timothy Stack
fea3cb83d9 [sql] preview table definition
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-09 01:57:19 -07:00
Timothy Stack
df399a36a4 [docs] some more docs, command-help, and tests for #428 2017-04-06 23:05:20 -07:00
Timothy Stack
2f44f1e861 [ptime] add %N time format for nanoseconds 2017-04-05 10:19:47 -07:00
Timothy Stack
78119dc9f1 fixing some minor issues
Fixes #255
2017-04-05 07:05:19 -07:00
Timothy Stack
6fcfd35395 [sql] add "search" column to the lnav_views table
Fixes #388
2017-03-26 07:28:08 -07:00
Timothy Stack
c0684a97cc [sql] add a regexp_capture tablue-valued function
Fixup the release makefile a bit.
2017-03-15 17:01:58 -07:00
Timothy Stack
c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
2017-03-04 15:22:19 -08:00
Timothy Stack
1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
2017-02-23 06:15:44 -08:00
Adam Spiers
d93178f879 fix 'conifg' typo 2016-12-19 16:01:37 +00:00
Timothy Stack
44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
2016-12-05 16:34:30 -08:00
Victor Hooi
ae42f97ba0 Add Ctrl-W display shortcut for word-wrap.
This is mentioned in the lnav 0.6.2 release notes:

http://lnav.org/blog/2013/11/10/word-wrap-support-in-v062

But doesn't appear to be mentioned elsewhere.
2016-11-07 17:39:02 +11:00
Timothy Stack
a59e0b290e [format] allow json log fields to be hidden
Fixes #303
2016-10-29 06:52:12 -07:00
Timothy Stack
876b37ade0 [log-format] add "truncate" overflow value 2016-08-22 23:28:14 -07:00
Timothy Stack
c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
2016-08-22 06:45:27 -07:00
Timothy Stack
9ee18c26d3 [log-format] add min-width and align options to line-format
Also some fixes for validating the format definitions.

Fixes #338
2016-08-21 21:34:52 -07:00
Timothy Stack
41854cf637 [json-log] custom date formats
Fixes #341
2016-08-18 22:15:35 -07:00
Timothy Stack
82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
2016-05-01 20:35:37 -07:00
Suresh Sundriyal
e4ef35e652 [commands] Remove eval from the list of sandboxed commands. 2016-04-23 11:18:01 -07:00
Suresh Sundriyal
88833c8035 [commands] Read and honor the 'LNAVSECURE' environment variable.
Read the value of the 'LNAVSECURE' environment variable upfront and
store it in the lnav_data structure. When this variable is set prior to
the binary execution, the following commands are disabled:

* 'open'
* 'pipe-to'
* 'pipe-line-to'
* 'write-*-to'

This is a proposed fix for tstack/lnav#305.
2016-04-23 10:34:17 -07:00
Timothy Stack
efc74a5a0e [docs] some minor doc updates 2016-04-05 06:22:25 -07:00
Timothy Stack
fdc2748e3e [spectro] add a spectrogram view that works with known message fields 2016-03-20 15:15:50 -07:00
Timothy Stack
2d04d047e4 [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 2016-03-10 06:03:32 -08:00
Timothy Stack
d4a69cbf22 no joy
Revert "[sql] change extract() to regexp_match() and make extract() an interface to the data_parser"

This reverts commit 85eee6514b.
2016-03-09 23:30:34 -08:00
Timothy Stack
85eee6514b [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 2016-03-09 23:14:54 -08:00
Timothy Stack
9feb53f02a [sql] add extract() function to extract values from a string using a regex
This function should be preferred over creating log search tables
for scripts.
2016-03-08 06:48:43 -08:00
Geoff Crompton
8e152fe4f0 Start a Sessions section in hotkeys documentation, mentioning Ctrl+R. 2016-02-25 09:54:01 +11:00
Timothy Stack
a2b381ca19 [config] initial impl with clock-format as the only option at the moment 2016-01-05 06:18:58 -08:00
Timothy Stack
e5f786bc2c [script] add metadata to script files 2015-12-28 20:30:04 -08:00
Timothy Stack
e07b4e448f [exec] add a prompt to execute lnav scripts 2015-12-18 22:39:27 -08:00
Timothy Stack
7386ea3864 update docs for json functions in sql 2015-12-11 02:27:46 -08:00
Timothy Stack
224a7196e4 [cmd] hide lines commands 2015-12-05 20:38:21 -08:00
Timothy Stack
47230920a1 update docs for opid 2015-12-04 19:33:23 -08:00
Timothy Stack
62075fb340 [sql] add json_group_object aggregate function 2015-11-29 19:56:10 -08:00
Timothy Stack
64cbab1281 [sql] exec .sql files in format dirs 2015-11-26 22:19:53 -08:00
Timothy Stack
91406be91e [nav] add "opid" support with a hotkey 2015-11-24 20:59:24 -08:00
Timothy Stack
f11cca2366 [sql] add a timeslice() function 2015-10-03 14:58:01 -07:00
Timothy Stack
bf73660747 bump version to 0.8.0 2015-09-25 06:40:17 -07:00
Timothy Stack
ec473edc85 [cmd] add support for times in goto 2015-09-14 08:56:42 -07:00
Timothy Stack
7407fd429d user alerter instead of flash() 2015-09-06 22:51:58 -07:00
Timothy Stack
e95bd90dfc [filter] check for too many filters being created 2015-08-24 22:09:33 -07:00
Timothy Stack
0d37a8c142 [text] pretty-printing should work in the text view 2015-08-18 20:58:20 -07:00
Timothy Stack
bedae8c8c2 [fmt] install/update formats from git repos
Fixes #244
2015-08-09 21:03:23 -07:00
Timothy Stack
2b5447f59c [sql] add a log_search table 2015-08-05 23:18:19 -07:00
Timothy Stack
d2d8c75135 [sql] add an lnav_views table 2015-07-22 07:09:51 -07:00
Timothy Stack
010131aaba [docs] update the docs for recent changes 2015-07-19 21:38:37 -07:00
Timothy Stack
3f4e11a693 [fmt] first pass at supporting sub-formats (called module formats) 2015-07-17 20:39:06 -07:00
Timothy Stack
e07f3f5b24 [docs] update docs for horizontal move change 2015-05-12 06:37:41 -07:00
Suresh Sundriyal
d6b32d60be [lo-fi shortcut] Change shortcut to 'Ctrl-l'.
* Change the 'lo-fi' shortcut to 'Ctrl-l'
* Remove the shortcut for 'redraw'
2015-05-08 22:31:56 -07:00
Timothy Stack
245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
2015-04-10 22:55:57 -07:00
Timothy Stack
ae64b599bd [format] add more log levels and fix some more pretty-printer glitches
Fixes #212
2015-04-10 19:50:05 -07:00
Timothy Stack
8a91c96bed [build] bump version to 0.7.3 since we will release soon 2015-04-08 02:26:25 -07:00
Timothy Stack
a300ce9977 [format] order the formats based on sample matches 2015-04-05 07:12:20 -07:00
Timothy Stack
38e56b63ea [hist] fix the histogram when filters change 2015-04-04 13:36:53 -07:00
Timothy Stack
033c861028 [cmd] next/prev-mark commands 2015-03-29 14:50:34 -07:00
Timothy Stack
282e70445e [pretty] reformat all displayed lines instead of just the top one
Fixes #150
2015-03-26 06:13:25 -07:00
Timothy Stack
8fb15e455a [cmd] add a relative-goto command 2015-03-24 23:07:47 -07:00
Timothy Stack
aea0bd54e0 [cmd] add a :redraw command to do a full redraw of the window
Fixes #18
2015-03-19 20:43:22 -07:00
Timothy Stack
c670a86d04 [pretty-print] first pass at a pretty-printer
Defect Number:
    Reviewed By:
   Testing Done:
2015-03-16 23:10:34 -07:00
Timothy Stack
1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 2015-03-16 09:16:49 -07:00
Timothy Stack
363547428c [version] some more version updates 2015-02-26 21:52:36 -08:00
Timothy Stack
7dd372e305 fix hotkey listing 2014-11-11 08:55:40 -08:00
Timothy Stack
17db6e38fe add a lo-fi mode
Fixes #113
2014-11-11 08:44:44 -08:00
Timothy Stack
deeac1a5db [formats] add a "-i" flag to make it easier to install formats 2014-11-05 09:01:09 -08:00
Timothy Stack
45f18bd89c bump version, add some logging, and minor stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-03 20:02:22 -08:00
Timothy Stack
0ab2400d2d [cmd] add a clear-highlight command
Defect Number: Fixes #109
    Reviewed By:
   Testing Done:
2014-10-29 20:53:23 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -07:00
Timothy Stack
ed296d46d7 [docs] update the on-line docs 2014-03-28 06:55:24 -07:00
Timothy Stack
174e1c855e [version] next release will be 0.7.0 instead of 0.6.3 2014-03-10 07:39:57 -07:00
Timothy Stack
e0643fcfc1 [sql] plumb env vars into queries 2014-02-28 21:27:14 -08:00
Timothy Stack
33fe23a325 [status] show the search hit index in the bottom status bar
I've removed the error/warning counts from the status bar since
they're a little redundant with the new scroll bar stuff.
Removing that stuff also made room to show the search hit
index.

Fixes #68
2014-02-24 16:41:12 -08:00
Timothy Stack
c29d756fd3 [sql] implement the sqlite3 .schema command 2014-02-24 11:43:50 -08:00
Suresh Sundriyal
13f5ad0dce Change the code to use Spookyhash.
* This change removes the external dependency on OpenSSL, which should
  allow the code to compile on Mac OS X without specifying the
  MAC_OS_X_VERSION_MIN_REQUIRED non-sense.
* Spookyhash should be faster than SHA-1's Merkle-Damgård construction.
* Spookyhash is only 128-bits as opposed to SHA-1's 160-bits so memory
  consumption should be less. I doubt it will lead to too many
  collisions.
* The docs are updated to reflect the fact that OpenSSL is not a
  dependency.
2014-02-03 22:36:33 -08:00
Timothy Stack
6d7e6bf66f [release] some last minute clean up 2013-11-09 17:34:06 -08:00
Timothy Stack
33584ed9f8 [docs] minor tweaks and version bump 2013-09-10 09:42:30 -07:00
Timothy Stack
a8c3a8c80b [docs] json format docs and some build fixes 2013-09-10 06:45:48 -07:00
Timothy Stack
7fea5565d2 [docs] mention dependencies 2013-08-27 08:38:28 -07:00
Timothy Stack
49368e1513 [docs] some more writing 2013-08-26 07:20:01 -07:00
Timothy Stack
94ce0ffd83 [docs] more docs and some simple bug fixes 2013-08-25 07:12:41 -07:00
Timothy Stack
f716d5a533 [docs] more sections 2013-08-06 23:14:24 -07:00
Timothy Stack
fb7d1f1dc9 [docs] some more docs 2013-08-01 08:56:00 -07:00
Timothy Stack
75dd7e2ad6 [docs] start some UI docs 2013-07-28 17:05:09 -07:00
Timothy Stack
255b91771c [version] bump the version to 0.6.0 2013-07-28 11:43:33 -07:00
Timothy Stack
25f02eca08 [docs] more docs 2013-07-27 11:04:43 -07:00
Timothy Stack
500f1da9f6 [docs] explicit shift keys 2013-07-26 08:23:45 -07:00
Timothy Stack
f6b2345184 [docs] use a different theme 2013-07-25 20:41:42 -07:00
Timothy Stack
e8672e825a [docs] hotkey reference 2013-07-14 11:25:04 -07:00
Timothy Stack
a4a0d20ccd [docs] start the hotkey reference 2013-07-14 11:19:50 -07:00
Timothy Stack
2573e356e2 [docs] start docs dir for readthedocs.org 2013-07-12 21:14:01 -07:00