Commit Graph

1951 Commits

Author SHA1 Message Date
Timothy Stack
107199cb7c [remote] clean up the cache 2021-09-10 21:01:25 -07:00
Timothy Stack
f6e245c04a [sql] jget() is not returning values with the right sqlite type 2021-09-09 22:22:52 -07:00
Timothy Stack
7252e5fc0f [views] fix an issue with the log view not updating when switching back from text 2021-09-09 13:03:43 -07:00
Timothy Stack
b3a4eadbe2 [cmds] add :show-only-this-file command 2021-09-08 14:56:18 -07:00
Timothy Stack
c308a3b17a [build] fix a build issue 2021-09-08 08:46:29 -07:00
Timothy Stack
b6b0578027 [file_collection] check for file closure in same_file
Fixes #908
2021-09-07 23:07:34 -07:00
Timothy Stack
86e84e1dab [distclean] more files to remove 2021-09-07 22:39:39 -07:00
Timothy Stack
db7173caec [views] fix some issues with empty views
Related to #908
2021-09-07 21:08:01 -07:00
Timothy Stack
312a97bca7 [logfile] tweak overwrite detection to ignore remote files
The mtime of a remote file is not adjusted in an atomic fashion,
so it can cause a spurious overwrite signal
2021-09-07 14:23:12 -07:00
Timothy Stack
0de76b29c8 [files] fix refreshing files with errors and auto-switching to text view
Fixes #909
2021-09-03 12:33:11 -07:00
Timothy Stack
804056c1c3 remove unused var 2021-08-28 21:39:10 -07:00
Timothy Stack
7eb1d17bef [files] highlight issues with opening files
Fixes #904
2021-08-27 22:37:10 -07:00
Timothy Stack
1df74411c2 [field-overlay] fix out-of-time-order message overlay
Related to #902
2021-08-26 09:29:40 -07:00
Timothy Stack
03ce38b09f [bottom-status] make sure the search term is updated
Fixes #907
2021-08-26 09:11:30 -07:00
Timothy Stack
426e70b99f [field-overlay] use log_time instead of the name from the format
Related to #902
2021-08-26 09:11:30 -07:00
Timothy Stack
87ae18238b [build] try to fix tailer test 2021-08-25 10:28:00 -07:00
a1346054
285e171b54 Add final linux LF newline 2021-08-25 10:12:38 +00:00
Timothy Stack
211f10535c [cmds] add --view flag 2021-08-23 22:25:38 -07:00
Timothy Stack
97530070c9 [cmds] add /dev/clipboard support to :redirect-to 2021-08-22 13:50:53 -07:00
Timothy Stack
c9d22e7941 [db-view] fix scrolling performance 2021-08-17 10:43:58 -07:00
Timothy Stack
383bf71f26 [filters-view] key capture fix
Fixes #898
2021-08-16 10:29:59 -07:00
Timothy Stack
e33fe1a85b [config] include values from the configs dir in the default config 2021-08-15 22:58:58 -07:00
Timothy Stack
ce8397b5cf [view_curses] only write OSC;send-input in the test env
Fixes #895
2021-08-15 14:47:55 -07:00
Timothy Stack
7a66283bf2 [readline] fix TAB-completion for tilde paths 2021-07-14 11:16:51 -07:00
Timothy Stack
65a7bd7bd6 [time-fmt] add a time format 2021-07-13 10:40:24 -07:00
Timothy Stack
ea34d7cd5f [cmds] change umask
Fixes #540
2021-07-04 13:51:31 -07:00
Timothy Stack
b184272edb [file_collection] fix recursion
Fixes #877
2021-07-03 21:57:50 -07:00
Timothy Stack
23cb718d65 [overlay] remove "Last message:"
Fixes #876
2021-06-24 20:53:40 -07:00
Timothy Stack
4445a54847 [tailer] always update the remote description 2021-06-23 10:09:14 -07:00
Timothy Stack
d42006d0a9 [build] minor fixes 2021-06-21 14:34:13 -07:00
Timothy Stack
c13e78358e [blog] add a post about xpath() TVF 2021-06-21 02:44:48 -07:00
Timothy Stack
04c4f8a779 [help] fix the example width when space is constrained 2021-06-20 21:58:45 -07:00
Timothy Stack
dbcfdda363 [reltime] some more relative time fixes 2021-06-18 21:58:30 -07:00
Timothy Stack
aa7ac37cdc [log_source] try to report sql filter errors 2021-06-18 09:04:53 -07:00
Timothy Stack
b77367a3d3 [logs] some minor fixes
hide files on remote like with archives
fix vmw_log pattern
fix an NPE
2021-06-16 11:19:11 -07:00
tstack
9a8703ae7c Update tailer 2021-06-15 05:04:04 +00:00
Timothy Stack
9138251355 [tailer] set the mtime on the synced file 2021-06-14 16:20:38 -07:00
Timothy Stack
4b6fb5ff18 [release] change version to v0.10.0 since there's a lot of stuff and some nits 2021-06-10 23:01:05 -07:00
tstack
0c5dc3840f Update tailer 2021-06-10 20:12:00 +00:00
Timothy Stack
131edc2823 [tailer] call out to uname utility 2021-06-10 13:11:24 -07:00
tstack
5cb6d5ea1b Update tailer 2021-06-10 19:55:30 +00:00
Timothy Stack
b4e9384ac5 [tailer] backout sysctl attempt, sigh 2021-06-10 12:54:46 -07:00
Timothy Stack
1dcf92e982 [tailer] fallback to sysctl() if uname fails 2021-06-10 12:49:41 -07:00
tstack
e4868d5ae2 Update tailer 2021-06-10 05:45:08 +00:00
Timothy Stack
b38bd6e2fe [tailer] send the uname of the remote host back 2021-06-09 22:43:55 -07:00
tstack
796a02aa15 Update tailer 2021-06-09 22:06:06 +00:00
Timothy Stack
528f7be9d2 [tailer] don't ignore links 2021-06-09 15:05:27 -07:00
Timothy Stack
9c6715fa18 [command_executor] avoid rebuilding on interactive use 2021-06-09 09:03:35 -07:00
Timothy Stack
a760a4240f [file_collection] handle dirs with colons
Fixes #863
2021-06-08 10:57:11 -07:00
Timothy Stack
ace63947df [looper] increase rescan/rebuild delay when a prompt is open 2021-06-07 23:24:43 -07:00
Timothy Stack
b2d296b5d3 [open] handle file names with colons
Fixes #863
2021-06-07 16:04:41 -07:00
Timothy Stack
3cc22dc88c remove leftover debug msg 2021-06-06 23:03:06 -07:00
Timothy Stack
75ead0eb60 [ui] update status on keypress and delay rescan/rebuild 2021-06-06 22:58:51 -07:00
Timothy Stack
71d1ab1a96 [statusview] fix leak in set_stitch_value() 2021-06-04 22:42:57 -07:00
Timothy Stack
516d13d772 [log_format] use DOTALL for format patterns 2021-06-03 15:59:01 -07:00
Timothy Stack
27bc9cf117 [vmw_log] format fix 2021-06-03 10:42:03 -07:00
Timothy Stack
76ce111d48 [test] fix a leak 2021-06-03 05:54:13 +00:00
Timothy Stack
d3d527d290 [tests] adding some more coverage 2021-06-02 21:09:50 -07:00
Timothy Stack
ed93eb71c0 [remote] add some docs and allow ssh command customization 2021-06-01 22:57:32 -07:00
Timothy Stack
f5ee4306db [tests] more testing of tailer 2021-05-30 22:23:45 -07:00
Timothy Stack
a87c420070 [logfile] some more notes stuff 2021-05-30 15:07:09 -07:00
Timothy Stack
8f7b08c9c5 [logfile] add notes for automatic decisions and fix compile errors
Fixes #864
2021-05-30 13:33:05 -07:00
Timothy Stack
a6a411834e [lint] use enum class for logfile::rebuild_result 2021-05-29 21:46:48 -07:00
Timothy Stack
912f7939d0 [looper] minor refactor and reduce rescans 2021-05-29 14:30:20 -07:00
Timothy Stack
9c417afb2d [logfile] remove error exception and some optimizations 2021-05-28 22:53:50 -07:00
Timothy Stack
326fbae163 [vmw_log] some pattern fixes 2021-05-27 23:01:07 -07:00
Timothy Stack
46bafa1dea [remote] show progress during startup 2021-05-27 22:02:26 -07:00
Timothy Stack
c0ea709dd4 [build] oops 2021-05-27 13:19:13 -07:00
Timothy Stack
8589dd253a [archive] hardening 2021-05-27 13:01:11 -07:00
Timothy Stack
0dca44f487 [rebuild] add a deadline to make the UI more responsive 2021-05-26 22:09:47 -07:00
tstack
4638370f7c Update tailer 2021-05-26 17:02:16 +00:00
Timothy Stack
bce7192bee [test] fix exec 2021-05-25 22:59:57 -07:00
tstack
d4fc61cbe8 Update tailer 2021-05-26 05:28:08 +00:00
Timothy Stack
1737964df6 [remote] add some tailer tests 2021-05-25 22:27:09 -07:00
tstack
5ab5d9a4f4 Update tailer 2021-05-25 05:38:18 +00:00
Timothy Stack
a8e7a69c49 [build] fix for backward 2021-05-24 21:58:21 -07:00
Timothy Stack
108dc1b77a [build] more stacktrace 2021-05-24 21:06:14 -07:00
Timothy Stack
db5fd8e0ec [build] some more stacktrace stuff 2021-05-24 20:39:38 -07:00
Timothy Stack
8f03a441d3 [build] fix a couple of build issues 2021-05-24 11:54:27 -07:00
Timothy Stack
9231e812d7 [build] disable backward 2021-05-23 22:49:26 -07:00
Timothy Stack
399cf83fc5 [ras] add backward-cpp 2021-05-23 21:54:12 -07:00
Timothy Stack
edfd835866 [remote] use the APE version of the tailer 2021-05-21 21:39:36 -07:00
tstack
529088f911 Update tailer 2021-05-22 01:16:26 +00:00
Timothy Stack
d09cffd9b4 [remote] commit the tailer 2021-05-21 18:15:35 -07:00
Timothy Stack
857ba5c8e1 [remote] try again 2021-05-21 16:25:55 -07:00
Timothy Stack
33bfc873b1 [remote] fix an issue with empty files 2021-05-21 16:16:31 -07:00
Timothy Stack
5607b1b08e [formats] handle some more vmw logs 2021-05-21 16:03:40 -07:00
Timothy Stack
db1fac9def [build] missed some includes 2021-05-21 08:10:45 -07:00
Timothy Stack
93b33929a3 [build] try to fix cosmo build 2021-05-21 07:54:12 -07:00
Timothy Stack
b78c914d6f [remote] a path is synced on an error 2021-05-20 15:48:05 -07:00
Timothy Stack
c3dc668b69 [remote] add some config options and remove the copied tailer binary
Also fix time offset issue
2021-05-19 22:05:21 -07:00
Timothy Stack
be51a4e3de [arc/remote] use a single work directory for archive/remote files 2021-05-15 22:39:18 -07:00
Timothy Stack
e13816a8e3 [cmds] change :write-raw-to to copy the original log content and add :write-view-to command
Also added log_raw_text column to the log tables.

Fixes #859
2021-05-14 13:31:19 -07:00
Timothy Stack
b64342ca47 [log_format] display log_body for the body field instead of the format name and add :mark-expr command 2021-05-13 22:00:26 -07:00
Timothy Stack
d2b5690e0c [readline] improve filename completion 2021-05-13 19:50:04 -07:00
Timothy Stack
98677eb09a [remote] some more tweaks and add tab-completion 2021-05-11 22:37:21 -07:00
Timothy Stack
1849609e07 [remote] try to enforce protocol state 2021-05-09 21:44:31 -07:00
Timothy Stack
681f771bb7 [remote] add preview for remote :open 2021-05-09 15:01:21 -07:00
Timothy Stack
0dbe5f0f94 [logfile] increase format detection limit 2021-05-06 10:42:05 -07:00
Timothy Stack
ab671d5834 [lnav_log] add a thread-local prefix for messages 2021-05-04 22:28:49 -07:00
Timothy Stack
0a0e355696 [remote] do not automatically descend into sub directories on the remote 2021-05-04 15:57:24 -07:00
Timothy Stack
224eb6fe55 [remote] handle closure 2021-05-03 22:50:24 -07:00
Timothy Stack
a37a859c11 [tailer] can't use realpath with some libcs 2021-05-03 12:02:04 -07:00
Timothy Stack
65dd0bfeb8 [ghc/fs] upgrade to v1.5.4 2021-05-03 09:12:56 -07:00
Timothy Stack
e88e37184f [remote] add support for glob patterns 2021-05-02 22:39:18 -07:00
Timothy Stack
ca5ec33241 [remote] support for links 2021-05-02 15:08:35 -07:00
Tim Stack
5aaea49b4b
Merge pull request #858 from nicolasbock/keystone_format
Add format for OpenStack Keystone log files
2021-05-01 14:20:14 -07:00
Timothy Stack
c2f0919ed3 [build] fix bin2c rule 2021-05-01 08:59:47 -07:00
Timothy Stack
ad6f469378 [build] add BUILT_SOURCES 2021-05-01 08:44:44 -07:00
Timothy Stack
04676d75b7 [build] missing include 2021-05-01 08:42:12 -07:00
Timothy Stack
f050c7b0a7 [remote] start to wire up remote support 2021-05-01 08:33:54 -07:00
Nicolas Bock
125c872849
Add format for OpenStack Keystone log files
Keystone logs are formatted differently than the other OpenStack
service logs.

Signed-off-by: Nicolas Bock <nicolasbock@gmail.com>
2021-04-29 10:17:06 -06:00
Timothy Stack
94498878c8 [logfile_sub_source] try to avoid a full rebuild in some cases 2021-04-24 14:38:26 -07:00
Timothy Stack
2748171d2c [tailer] add an offset to the tail block 2021-04-22 12:19:49 -07:00
Timothy Stack
26751a7e2e [tailer] add option to ssh to a host 2021-04-22 19:03:42 +00:00
Timothy Stack
380969ee8d fix lib order in tailer build 2021-04-22 18:10:01 +00:00
Timothy Stack
444e7e3289 [remote] draft of the tailer 2021-04-22 09:02:24 -07:00
Timothy Stack
cc1e79d1cc [init] fix order of init for views so they can be manipulated by SQL files in format dirs
Fixes #853
2021-04-17 13:58:53 -07:00
Timothy Stack
3741985ee3 [format] allow leading slash in field names
Fixes #852
2021-04-16 14:47:47 -07:00
Timothy Stack
70c07da5c5 [sql] fix help for sparkline() 2021-04-04 21:54:54 -07:00
Timothy Stack
d31aa845f5 [base] refactor duration2str 2021-04-03 14:24:24 -07:00
Timothy Stack
d15c1103cf [build] bump deps and add a missing include 2021-04-02 09:28:07 -07:00
Timothy Stack
73a4df61e3 [lss] fix format string for time offset 2021-04-02 09:05:03 -07:00
Timothy Stack
0658b9ef57 [tests] move some test code around 2021-04-01 21:11:20 -07:00
Timothy Stack
d183247a31 [tests] add some tests for time-ago stuff 2021-04-01 16:22:04 -07:00
Timothy Stack
32ddc76624 [time] use a 64-bit time_t in some places 2021-03-31 10:03:00 -07:00
Timothy Stack
30b4067e43 [build] unused var 2021-03-30 22:56:50 -07:00
Timothy Stack
e593bde875 [build] fix some issues on xenial32 2021-03-30 22:50:10 -07:00
Timothy Stack
32bfd76cdb [logfile] allow max unrecognized lines to be tuned 2021-03-29 22:40:22 -07:00
Timothy Stack
66eb3c76e6 [build] fixy 2021-03-28 22:10:42 -07:00
Timothy Stack
94b3c0d467 [dbdump] remove keyword_check for now 2021-03-28 14:06:54 -07:00
Timothy Stack
c0ed59e61e [sqlite] implement .dump SQL command 2021-03-28 13:50:26 -07:00
Timothy Stack
6f4791ec35 [sqlite] include generate_series() extension 2021-03-23 22:23:08 -07:00
Timothy Stack
dd9465cd10 [readline] some fixes for match display 2021-03-23 09:35:02 -07:00
Timothy Stack
92e20ffd51 [reltime] add support for weekdays and having timeslice() return NULL when a time is out-of-range 2021-03-21 08:53:21 -07:00
Timothy Stack
0b3819d16a [config] check if XDG_CONFIG_HOME exists before using it 2021-03-20 13:54:18 -07:00
Timothy Stack
4f4d90a65d [tests] include more information in error message 2021-03-20 13:39:35 -07:00
Timothy Stack
749fdacfa8 [build] fixes 2021-03-19 15:43:03 -07:00
Timothy Stack
7b0e1c4f54 [filters] fix previews when created in the editor 2021-03-18 15:59:39 -07:00
Timothy Stack
6749d6b53c [pretty-print] fix issue with rewrite
Fixes #845
2021-03-17 22:57:00 -07:00
Timothy Stack
72275aa968 [cli] require '-' to read from stdin if there are other file arguments 2021-03-07 22:09:25 -08:00
Timothy Stack
f6128240ab [sql] add lnav_top_file() SQL function 2021-03-07 14:29:22 -08:00
Timothy Stack
68759ada2d [data_scanner] fix quoted string regex
Fixes #842
2021-03-02 15:19:08 -08:00
Timothy Stack
5af3664bc1 [leak] fix leak in sparkline() 2021-02-25 21:59:19 -08:00
Timothy Stack
d45d7d6c58 [docs] add report generation to cookbook 2021-02-25 15:47:36 -08:00
Timothy Stack
9575f9c7d7 [view_curses] fix color pair allocation
fixes #839
2021-02-16 22:15:14 -08:00
Timothy Stack
f5c72736cb [docs] some more doc text 2021-02-14 22:44:14 -08:00
Timothy Stack
0f238f7972 [docs] add some more text to arch docs and other tweaks 2021-02-13 23:08:40 -08:00
Timothy Stack
43bb384199 fix color var lookup issue 2021-02-13 15:21:57 -08:00
Timothy Stack
f5e88b7158 [docs] add ARCHITECTURE.md and various other things 2021-02-13 12:41:48 -08:00
Timothy Stack
fd40b55e0a [docs] some more README.md files 2021-02-07 21:30:02 -08:00
Timothy Stack
a4368223ea some docs and test fixup 2021-02-06 23:08:01 -08:00
Timothy Stack
351ad7a8fc [xml/xpath] suggest xpath() calls for xml fields 2021-02-06 22:13:08 -08:00
Timothy Stack
6deb7032a6 [tests] add more CSIs to scripty 2021-02-05 16:04:34 -08:00
Timothy Stack
2750d23b07 [tests] add more TUI tests 2021-02-04 23:10:44 -08:00
Timothy Stack
58f1c9df1c [tests] fix tui test 2021-02-02 22:12:06 -08:00
Timothy Stack
0a701394fe [tests] add an initial TUI test 2021-02-02 21:58:42 -08:00
Timothy Stack
b847ae7164 [tests] more coverage 2021-02-01 15:56:37 -08:00
Timothy Stack
f35c0c397e [tests] increasing coverage a bit 2021-01-31 21:59:48 -08:00
Timothy Stack
c5ab97352d [cover] add some tests for :unix-time 2021-01-30 22:24:11 -08:00
Timothy Stack
83345f85c1 [build] missing coverage include 2021-01-29 22:38:09 -08:00
Timothy Stack
a120bf2c0c [build] missing coverage flags 2021-01-29 22:29:06 -08:00
Timothy Stack
efea67e61c [tests] move test_pcrepp 2021-01-29 22:20:42 -08:00
Timothy Stack
49ebde5953 [build] remove pcrecpp and other stuff
Linking against a binary c++ lib suuuucckkkkkssss...
2021-01-29 11:12:02 -08:00
Timothy Stack
2b9f4c6d3a [docs] start a cookbook 2021-01-24 21:49:06 -08:00
Timothy Stack
f17d838be1 [build] missing file in header list 2021-01-23 14:26:02 -08:00
Timothy Stack
215c08f632 [build] missed curl_looper subclassing isc::service 2021-01-23 14:18:22 -08:00
Timothy Stack
50b63559ce [build] need a cast... 2021-01-23 13:54:07 -08:00
Timothy Stack
775d2443a6 [injector] fix some init issues 2021-01-23 13:36:22 -08:00
Timothy Stack
310c67c53e [build] missing include 2021-01-23 13:14:47 -08:00
Timothy Stack
bc48911e42 [build] missing include 2021-01-23 13:11:47 -08:00
Timothy Stack
eea5220191 [build] missing include 2021-01-23 13:04:48 -08:00
Timothy Stack
cac1175973 [services] initial pass at injecting services and a bunch of other stuff 2021-01-23 13:00:51 -08:00
Timothy Stack
8633afdff3 [ptime] fix handling of too large number for seconds 2021-01-19 22:54:43 -08:00
Timothy Stack
92a31534cf [vt52] deal with bracketed paste mode from readline 2021-01-19 21:49:43 -08:00
Timothy Stack
e5f37ee3ff [perf]
Defect Number:
    Reviewed By:
   Testing Done:
2021-01-19 10:05:56 -08:00
Timothy Stack
a871ad5dbc [cleanup] some curl-related fixes 2021-01-18 15:04:24 -08:00
Timothy Stack
076d730fa2 [cleanup] some minor fixes 2021-01-17 23:29:08 -08:00
Timothy Stack
56bee6f4c9 [archive] remove old unpacked archives and a bunch of other stuff 2021-01-16 22:23:20 -08:00
Timothy Stack
a768f0146f add CPPFLAGS/LDFLAGS to bin2c build 2021-01-11 20:40:11 -08:00
Timothy Stack
678be94d75 [files] use libarchive to decompress files
Fixes #87
2021-01-10 13:33:20 -08:00
Timothy Stack
be71834733 [files-view] close the files view when jumping to a file 2021-01-09 22:00:37 -08:00
Timothy Stack
5599c9cc80 [files] fix hiding of duplicate files 2021-01-08 22:42:28 -08:00
Timothy Stack
8235f9af5d [tests] try to make scripty output readable 2021-01-08 14:08:52 -08:00
Timothy Stack
853ef11435 [debt] another leak fix 2020-12-31 23:58:23 -08:00
Timothy Stack
7f80d47ae4 [debt] fix some cleanup 2020-12-31 23:39:33 -08:00
Timothy Stack
1cefe583fa [debt] fix a leak in lnav_view_filters 2020-12-31 22:55:34 -08:00
Timothy Stack
2de57d242d [leak] fix leak of yajl error msgs 2020-12-31 15:24:28 -08:00
Timothy Stack
6d8a9f2121 [debt] try to fix leak 2020-12-31 14:58:37 -08:00
Timothy Stack
2996a90afa [format] use the module level for a message 2020-12-31 13:55:53 -08:00
Tim Stack
787b33f45c
[build] missing include 2020-12-30 15:04:32 -08:00
Timothy Stack
1d17ac7f29 [build] compress data files embedded in the binary to save some space
Fixes #763
2020-12-30 13:49:29 -08:00
Timothy Stack
63c31838eb [debt] fixing some more debt 2020-12-28 22:31:11 -08:00
Timothy Stack
9a073e80e7 [result] fix Result.map() issue with copying the value when the result was in error 2020-12-26 23:00:44 -08:00
Timothy Stack
7476dd5bb9 [misc] misc bugs 2020-12-24 22:29:38 -08:00
Timothy Stack
bfa2c7f38c [lnav] fix handling of closed files 2020-12-24 00:07:53 -08:00
Timothy Stack
4ca6fd7bfd [sqlite] add an xml/xpath extension 2020-12-23 15:01:21 -08:00
Timothy Stack
9ed3a80326 [build] minor fixes 2020-12-18 22:46:16 -08:00
Timothy Stack
4ff2b710d5 [log_format] change w3c_log to put extra columns into a JSON column 2020-12-18 22:35:23 -08:00
Tim Stack
a9a08d3315
Merge pull request #812 from phord/gz-stream-continuation
gzip stream continuation
2020-12-14 12:04:52 -08:00
Timothy Stack
941504a4cb [help] fix word wrap for example desc 2020-12-13 21:11:07 -08:00
Phil Hord
7ad40f7263 Improved fix for multi-stream gz files
Instead of throwing an error when we unexpectedly reach a stream EOS, treat it as regular
stream end. This allows for streams that might different encodings for different sections.
Even though we don't recognize the encoding and continue on with the data, at least we
don't fail when we reach this situation.  This allows us safely to try and continue
parsing the next catted gz stream, knowing that if it fails, we will handle it gracefully.
2020-12-13 13:37:12 -08:00
Phil Hord
f10a303f54 Revert "Don't try to read concatenated gzip streams"
This reverts commit 1d127053e9.
2020-12-13 13:17:21 -08:00
Timothy Stack
3a11140b27 [humanize] handle a zero value explicitly since log() doesn't like it (doh...) 2020-12-12 23:02:24 -08:00
Timothy Stack
e6df0fba0a [humanize] something seems wrong 2020-12-12 22:33:58 -08:00
Timothy Stack
6b0b3a65dd [build] fix static init issue 2020-12-10 22:32:01 -08:00
Timothy Stack
04da95eb95 [installer] fix file type check for formats
Fixes #801
2020-12-10 21:18:56 -08:00
Timothy Stack
9c1f2ca4fa [view_curses] use VC_ROLE instead of VC_STYLE where possible and fix segv in mvwattrline
Fixes #806
2020-12-09 15:35:06 -08:00
Timothy Stack
159608cdcc [debt] some more leaks 2020-12-08 23:02:10 -08:00
Timothy Stack
730233e356 [debt] some more leak plugging
Defect Number:
    Reviewed By:
   Testing Done:
2020-12-08 15:56:01 -08:00
Timothy Stack
9d6941c89d [readline] show help for SQL in :filter-expr 2020-12-08 13:24:29 -08:00
Timothy Stack
e3f28eaa43 [logfile] a captured file cannot be overwritten
Fixes #741
2020-12-07 15:21:33 -08:00
Timothy Stack
030c73e76b [build] missing include 2020-12-07 09:12:45 -08:00
Timothy Stack
642fce3548 [build] minor fixes 2020-12-07 09:04:14 -08:00
Timothy Stack
836fc83203 [pretty-print] pay attention to hidden fields
Fixes #653
2020-12-06 23:52:09 -08:00
Timothy Stack
a0986bf271 [log_formats] ignore empty lines in non-multiline formats 2020-12-06 13:09:06 -08:00
Timothy Stack
5f1ffb24a8 [build] name clash 2020-12-05 23:17:15 -08:00
Timothy Stack
32f112b8de [formats] add w3c extended log format impl
Fiexes #798
2020-12-05 21:51:46 -08:00
Timothy Stack
8494aefd50 fix leak in pcrepp copy cons 2020-12-01 14:00:28 -08:00
Timothy Stack
86d515b4bc clear db_label_source 2020-12-01 13:48:13 -08:00
Timothy Stack
d773fe0b9a make sure destructors are run for vtab 2020-12-01 13:33:04 -08:00
Timothy Stack
6b630f55dd unregister vtabs 2020-12-01 12:58:37 -08:00
Timothy Stack
19e0624ab6 [debt] even more mem leaks
Defect Number:
    Reviewed By:
   Testing Done:
2020-12-01 11:27:03 -08:00
Timothy Stack
21f127cb56 [debt] some more mem leaks
Defect Number:
    Reviewed By:
   Testing Done:
2020-12-01 10:28:20 -08:00
Timothy Stack
b924395ed2 [debt] fix some mem leaks 2020-11-30 23:42:37 -08:00
Timothy Stack
0d31323a18 [build] missing sqlite func 2020-11-30 23:07:02 -08:00
Timothy Stack
33621e1936 [filters] more space for hit count in the UI 2020-11-30 23:06:05 -08:00
Timothy Stack
3a2a1e0dda [sqlite] fallback to prepare_v2 2020-11-29 20:44:20 -08:00
Timothy Stack
08739e4235 [sql_filter] fix statement finalization 2020-11-29 20:35:13 -08:00
Timothy Stack
927aecc437 [sqlite] fix mprintf free funcs 2020-11-29 13:58:53 -08:00
Timothy Stack
3c0dbf3324 [rl-poss] fix free of sqlite3_mprintf 2020-11-29 13:46:47 -08:00
Timothy Stack
900834f7c8 [build] missing algo inc 2020-11-29 13:37:01 -08:00
Timothy Stack
49a6f6df11 [build] missing algo inc 2020-11-29 13:35:15 -08:00
Timothy Stack
22a7e4deeb [build] missing capture 2020-11-29 13:33:32 -08:00
Timothy Stack
22c2e95df0 [filters] sql filter
Related to #568
2020-11-29 13:20:07 -08:00
Timothy Stack
6d0054d3b6 [logfile] refactor visibility 2020-11-25 14:47:39 -08:00
Timothy Stack
2aad7985a6 [build] opt build
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-25 14:46:39 -08:00
Timothy Stack
d3fa76e8e9 [lnav_util] fix ok/error msg rendering 2020-11-20 08:55:30 -08:00
Timothy Stack
a29d3bc745 [build] missing algo 2020-11-19 22:35:40 -08:00
Timothy Stack
0e9962f187 [build] missing math 2020-11-19 22:31:26 -08:00
Tim Stack
8dbb60215e
Update data_parser.cc 2020-11-19 22:12:04 -08:00
Timothy Stack
9a431f5354 [build] missing vec 2020-11-19 21:50:54 -08:00
Timothy Stack
1e1d12bd0b [build] missing <algorithm> 2020-11-19 21:46:25 -08:00
Timothy Stack
fa9a66152f [build] missing include 2020-11-19 21:43:58 -08:00
Timothy Stack
8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-19 21:36:51 -08:00
Timothy Stack
6fe2f552d5 [build] missing header files for distcheck 2020-11-17 10:54:56 -08:00
Timothy Stack
d6055d178b [build] move method from .hh file into .cc 2020-11-17 10:46:12 -08:00
Timothy Stack
5bffcb4c3e [build] missing include again... 2020-11-17 10:31:26 -08:00
Timothy Stack
d1a84b3606 [build] missing include 2020-11-17 10:28:35 -08:00
Timothy Stack
51d1204a96 [arc] add content hash to archive temp dir and tech debt 2020-11-17 10:04:23 -08:00
Timothy Stack
0765c07010 [view] migrate view_action stuff to function objects 2020-11-14 21:39:12 -08:00
Timothy Stack
b1a0227cbd [build] try to fix travis build 2020-11-12 22:45:51 -08:00
Timothy Stack
9d87cfa2f0 [debt] more tech debt 2020-11-12 21:58:40 -08:00
Timothy Stack
cb7a8904c1 [build] missed header in the makefile 2020-11-09 23:11:49 -08:00
Timothy Stack
9eee6b2b64 [build] missing header 2020-11-09 23:02:08 -08:00
Timothy Stack
f192cb7c3e [input_dispatcher] fix handling of unicode input
Fixes #791
2020-11-09 22:18:17 -08:00
Timothy Stack
db8a3c4d38 [debt] doing some cleanup
Defect Number:
    Reviewed By:
   Testing Done:
2020-11-09 22:17:17 -08:00
Timothy Stack
21e78670e2 [highlighter] fix a mistake in the offset used for semantic highlights 2020-11-05 16:07:35 -08:00
Timothy Stack
00dcd86f79 [view_curses] always apply utf adjustments in mvwattrline
doh

Fixes #786
2020-11-04 10:50:37 -08:00
Timothy Stack
78d5954fd7 [build] fix conversion 2020-11-01 06:23:57 -08:00
Timothy Stack
5c73ce0a85 [build] fix noarchive build 2020-10-31 23:12:40 -07:00
Timothy Stack
e4ea9ca584 [arc] report errors when opening archives 2020-10-31 22:19:41 -07:00
Timothy Stack
563fa94d39 [log] fix fill character for file name prefix 2020-10-29 15:33:15 -07:00
Timothy Stack
9bfe1f8319 [cmds] include filename in copied log lines when shown
Fixes #789
2020-10-28 22:56:58 -07:00
Timothy Stack
df3df8369c [session] stages 2020-10-28 21:24:23 -07:00
Timothy Stack
5e42b4cb8a [debt] include cleanup 2020-10-28 21:23:46 -07:00
Timothy Stack
0dff822ade [debt] remove pthreadpp.hh 2020-10-28 21:23:41 -07:00
Timothy Stack
56866d8a33 [config-ui] support for searching 2020-10-28 21:23:34 -07:00
Timothy Stack
8b38bb0970 [session] store file visibility 2020-10-28 21:23:25 -07:00
Timothy Stack
c22c78220c [text] hide text files 2020-10-28 21:23:16 -07:00
Timothy Stack
7b77a612c2 [files] make file scanning async 2020-10-28 21:22:56 -07:00
Timothy Stack
dfd18a4be5 [view] add files view 2020-10-28 21:21:57 -07:00
Timothy Stack
4b7244d06c [archive] add locking 2020-10-28 21:20:57 -07:00
Timothy Stack
a63cf003a0 [themes] move highlights to theme definitions
Fixes #783
2020-10-28 21:19:57 -07:00
Timothy Stack
3b0168025d [cmds] add support for hiding files 2020-10-28 21:18:57 -07:00
Timothy Stack
579e4274f9 [files] initial impl for opening archives 2020-10-28 21:17:57 -07:00
Timothy Stack
9f524136bd [fs] remove old filesystem impl 2020-10-20 22:55:46 -07:00
Timothy Stack
e7f5bf3a6a [3rd-party] import ghc/filesystem 2020-10-20 22:54:59 -07:00
Phil Hord
1d127053e9 Don't try to read concatenated gzip streams
Don't try to continue reading the next stream of a concatenated
gzip file.  The next stream may be CRC noise or other garbage.

Maybe in the future we should look for a gzip header in the
following bytes of the stream and try to decode from there.
But it's not clear that anyone ever uses this supposed gzip
feature anyway.

Let's just end the stream when we reach EOS. Also, if the
stream fails to init, let's leave it closed instead of throwing
an error no one is likely to catch.  Log the error msg from
zlib if one is provided.
2020-10-19 20:49:36 -07:00
Timothy Stack
2a7db9b257 [root-config] default /ui/default-colors to true 2020-10-07 21:32:29 -07:00
Timothy Stack
d8a083f0fe [filters] add :toggle-filtering command 2020-10-02 21:17:52 -07:00
Timothy Stack
b44b6d24cf [themes] use an empty string to get the terminal default background instead of specifying black
Defect Number:
    Reviewed By:
   Testing Done:
2020-10-02 14:05:27 -07:00
Timothy Stack
276f71423e [readline] add alternate enter command 2020-09-30 21:55:37 -07:00
Tim Stack
cc6ae5ee2e
Update format2csv.py 2020-09-29 14:14:43 -07:00
Suresh Sundriyal
3a9967cbf5 [build] Get rid of BUILT_SOURCES 2020-09-24 19:17:36 -07:00
Suresh Sundriyal
cc6f0a06dd [build] Add some explicit dependencies.
This should fix the individual make targets.
2020-09-24 19:17:36 -07:00
Timothy Stack
65c991919b [loader] fix format loader and add $schema refs to formats 2020-09-24 13:12:43 -07:00
Timothy Stack
7763d2db7a [cross] try to fix armhf
Defect Number:
    Reviewed By:
   Testing Done:
2020-09-24 09:40:56 -07:00
Timothy Stack
6ec90c521b [build] dump crash log during build 2020-09-24 08:58:20 -07:00
Timothy Stack
e04d49bc98 fix a memory error in extension-functions.cc 2020-09-24 06:49:38 -07:00
Timothy Stack
c3646be987 [build] fix some issues on 32-bit arch 2020-09-23 22:36:47 -07:00
Suresh Sundriyal
f8e990cf76 [dist] Some more distribution related cleanup.
Remove init-sql.h from the distributed package and remove the redundant
files from DISTCLEAN.
2020-09-23 16:20:11 -07:00
Suresh Sundriyal
8b2bcca752 [dist] Stop packaging builtin-scripts.h 2020-09-23 14:57:17 -07:00
Timothy Stack
f39a208472 [cmake] ptimec doesn't belong in libdiag 2020-09-22 14:38:24 -07:00
Timothy Stack
f43d05a49a [build] more dist fixes 2020-09-22 14:31:27 -07:00
Suresh Sundriyal
63ed3ee677 [dist] Prevent distributing built sources 2020-09-22 13:50:37 -07:00
Timothy Stack
a5171058c7 [build] some built files were being included in the dist 2020-09-22 12:01:13 -07:00
Timothy Stack
8ff80ceff0 [lnav_log] shorten file name to the base name 2020-09-21 07:25:40 -07:00
Tim Stack
d58ce0cc90
Merge pull request #769 from sureshsundriyal/freebsd
[freebsd] Remove basename from log_msg.cc and update the FreeBSD image in the VagrantFile.
2020-09-21 07:10:16 -07:00
Timothy Stack
48d4b51fd7 [view_curses] fix mvwattrline for utf chars
Fixes #675
2020-09-21 06:53:05 -07:00
Suresh Sundriyal
70847429fa [freebsd] Remove the use of basename from log_msg.
Fix
2020-09-20 23:27:22 -07:00
Suresh Sundriyal
2062a0c740 [cross-compile] Use 'BUILD_EXEEXT' as the suffix for build binaries.
Some compilers automatically append the system binary suffix. If lnav is
cross compiled on such systems; then we should be using this suffix for
the binaries that are built and run as part of the build process.
2020-09-20 20:50:47 -07:00
Suresh Sundriyal
bc0dc337ef [cross-compiling] Disable document generation during cross-compilation
Document generation requires exec'ing lnav which might not be possible
while cross-compiling.
2020-09-19 14:39:24 -07:00
Timothy Stack
37b9b346a9 [logger] fix for queue.h removal change 2020-09-19 14:17:22 -07:00
Timothy Stack
99805c61bb [build] missing include 2020-09-19 13:04:21 -07:00
Timothy Stack
e8e89ad0fd [build] remove queue.h refs 2020-09-19 12:34:44 -07:00
Suresh Sundriyal
bc09aad96c Undo changes to cmd-ref.rst 2020-09-18 12:32:36 -07:00
Suresh Sundriyal
4946f79ec1 [ptimec] Rename ptimec.cc -> ptimec.c 2020-09-18 12:20:40 -07:00
Suresh Sundriyal
57e0b9f3f3 [cross-compiling] Fix distcheck target 2020-09-18 11:44:06 -07:00
Suresh Sundriyal
d118a60a36 [cross-compile] Allow build artifacts to be built with build compilers.
While cross-compiling; bin2c and ptimec need to run during build on the
build-host. Currently; the host compiler is picked and the generated
binaries cannont be exec'ed causing the build to fail.

The change fixes the bin2c and ptimec compilation units to use the
build host compatible compiler.
2020-09-18 10:03:12 -07:00
Timothy Stack
ba4b31b24a remove noisy debug log 2020-09-18 09:41:35 -07:00
Suresh Sundriyal
0dedb3d455 [simd] Allow toggling of simd related functionality 2020-09-17 21:20:52 -07:00
Timothy Stack
da772a6486 [build] try to fix distclean issue 2020-09-16 23:14:05 -07:00
Timothy Stack
f1a47ac1ad [log_format] make logline_value slightly less error-prone 2020-09-16 21:46:44 -07:00
Timothy Stack
90ab6ea8f1 [bro-log] fix an issue with the logline_values in the bro log format 2020-09-16 14:38:58 -07:00
Timothy Stack
ee572a2c86 [init] fix an issue with input not being taken when an empty file is loaded 2020-09-16 14:05:56 -07:00
Timothy Stack
dbe252c70c [docs] some more doc stuff 2020-09-15 15:45:29 -07:00
Timothy Stack
bbf06e78ba [init] delay initial command execution until some files are loaded
Fixes #764
2020-09-15 15:44:29 -07:00
Timothy Stack
cc7cba6514 [search] start searching a couple thousand lines before the top 2020-09-14 21:29:06 -07:00
Timothy Stack
be106fcb8d [docs] add some more keymap/theme docs 2020-09-13 23:03:23 -07:00
Timothy Stack
5e1f43b4c7 [readline] refine tab-completion for config options 2020-09-12 21:02:20 -07:00
Timothy Stack
9773efd3a5 [keymap] add german keymap 2020-09-12 14:06:23 -07:00
Timothy Stack
ce0383dee1 [build] fix some warnings 2020-09-11 23:10:11 -07:00
Suresh Sundriyal
9a49035ce6 [Format] Designate non-capturing group 2020-09-11 21:07:03 -07:00
Suresh Sundriyal
7494f5cef5 Optimize the vum-log4cpp expression 2020-09-11 19:52:24 -07:00
Suresh Sundriyal
9b2b9d50ba Remove unused header 2020-09-11 15:30:55 -07:00
Suresh Sundriyal
908c41cb64 Fix compiler warnings about unused variables. 2020-09-11 15:30:55 -07:00
Suresh Sundriyal
a24aa5e414 [Format] Make the levels regex case-insensitive. 2020-09-11 13:00:19 -07:00
Suresh Sundriyal
83a3e69118 [Format] Fix up the greedy match 2020-09-11 12:53:12 -07:00
Suresh Sundriyal
2d30bfd322 [Format] Add updatemgr's log4cpp format to vmw_log format. 2020-09-11 12:18:52 -07:00
Timothy Stack
16c5fdccb4 [build] more win build 2020-09-10 22:15:02 -07:00
Timothy Stack
f9b3884b5e [build] try to fix win build 2020-09-10 21:45:42 -07:00
Timothy Stack
349991a695 [shlex] fix handling of tilde 2020-09-10 21:19:23 -07:00
Timothy Stack
3692c76788 [build] fix uninit var warning 2020-09-10 11:23:17 -07:00
Timothy Stack
f3d172c831 [keymap] add a french keymap 2020-09-09 22:16:06 -07:00
Timothy Stack
a3264fb104 [log_format] fix issues with year rollover
Defect Number:
    Reviewed By:
   Testing Done:
2020-09-08 22:11:32 -07:00
Timothy Stack
8a3fbe6375 [cmds] fix error format strings 2020-09-08 09:26:42 -07:00
Timothy Stack
815a05577e [keymap] suggest the config option to set for an unknown keystroke
Also, add a unicode green-check/red-X mark for the success/error
message for commands.
2020-09-05 14:41:05 -07:00
Timothy Stack
8734795505 [keymap] handle unicode keys and add UK keymap
Fixes #392
2020-09-04 14:39:04 -07:00
Timothy Stack
82b34bb02a [config] remove :save-config 2020-09-03 14:09:35 -07:00
Timothy Stack
ead1d3eb36 [build] fix some more warnings 2020-09-02 23:04:21 -07:00
Timothy Stack
c5a82240ec [build] try to fix some warnings 2020-09-02 22:36:26 -07:00
Timothy Stack
84a7079e3f [main] capture stderr only after initscr() and fix curl configure detection 2020-09-02 15:39:27 -07:00
Timothy Stack
f0934a6e3c [theme] fix background color in the default theme 2020-08-30 22:48:07 -07:00
Timothy Stack
0940e97b2b [nits] fix some naming issues
Fixes #169
2020-08-30 22:13:56 -07:00
Timothy Stack
1f2cf13739 [text] highlight rust code 2020-08-27 22:24:46 -07:00
Timothy Stack
6182b6b41c [mouse] do not require xterm for mouse use
Fixes #727
2020-08-27 14:13:43 -07:00
Timothy Stack
4fa4a7057b [log_format] gracefully handle a misconfigured log format
Fixes #742
2020-08-27 13:42:10 -07:00
Timothy Stack
d0f2f9e800 [view_curses] fix attribute range when the line contains UTF-8 chars
Fixes #745
2020-08-27 13:42:05 -07:00
Timothy Stack
a2b3427502 [tests] add tests for SQL annotation functionality 2020-08-26 22:44:12 -07:00
Timothy Stack
1269654617 fix SQL prompt help lookup
Fixes #748
2020-08-25 16:27:22 -07:00
Timothy Stack
e451c7c112 [docs] more usage notes
Defect Number:
    Reviewed By:
   Testing Done:
2020-08-24 22:50:48 -07:00
Timothy Stack
d695febe14 [cmd] add :write-jsonlines-to command 2020-08-21 23:18:51 -07:00
Timothy Stack
2a37a9ce7f [build] fix the previous checkin 2020-08-17 21:55:55 -07:00
Timothy Stack
45630545ed [lss] fix identifier highlighting 2020-08-17 21:31:23 -07:00
Timothy Stack
bda6fe46b1 [view_curses] minor fix for ansi display 2020-08-15 21:58:19 -07:00
Timothy Stack
e0181a0adb [build] fix build when libcurl is available
Fixes #739
2020-06-24 11:57:41 -07:00
Timothy Stack
ebd1038057 [pretty] include linefeeds in the pretty output
Defect Number:
    Reviewed By:
   Testing Done:
2020-05-19 22:13:52 -07:00
Timothy Stack
7a0cb4359c [docs] fix lexing of lnav commands 2020-05-18 22:21:24 -07:00
Timothy Stack
ee7ffb7194 [docs] add generated sql reference 2020-05-18 21:09:47 -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
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
f23791af18 [internals] ignore failure to open file 2020-05-09 12:05:45 -07:00
Timothy Stack
c6196fe79f [build] missed TEXT2C_FILES 2020-05-09 10:03:28 -07:00
Timothy Stack
8f4149db94 [build] need to dist the format files 2020-05-09 09:55:06 -07:00
Timothy Stack
8e9ef5765f [formats] break up default-log-formats.json into separate files for each file format
Defect Number:
    Reviewed By:
   Testing Done:
2020-05-08 22:04:39 -07:00
Timothy Stack
7e36c6b3d0 [build] do not fail if syslog is not readable during build 2020-05-08 09:36:57 -07:00
Timothy Stack
8413dd13d8 [config] add configs directory 2020-05-07 07:08:59 -07:00
Timothy Stack
9b28a90ab0 pay attention to the result of rebuild_index() 2020-04-25 15:43:31 -07:00
Timothy Stack
7e538c85f9 [tests] try to fix breakage 2020-04-25 13:30:28 -07:00
Timothy Stack
8a0193691f ignore stdin when it is from /dev/null 2020-04-25 13:19:41 -07:00
Timothy Stack
3da3ec799a [session] allow the name 2020-04-25 07:32:05 -07:00
Timothy Stack
138a506b1a [perf] a few performance tweaks 2020-04-23 06:42:48 -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
eef28d61a6 [view_curses] fix out-of-bounds access in mvwattrline 2020-04-19 14:32:34 -07:00
Timothy Stack
92f28f1174 [logfile] cache line length to fix perf issues with JSON logs 2020-03-11 07:25:39 -07:00
Stéphane Blondon
70ed1c9af7 Add thread id for multithreaded Apache error log 2020-01-17 12:22:41 +01:00
edr
3e82a06302 [delete-filter] Fix issue #701: (Filter deletion before enter) 2019-11-23 19:55:32 +01:00
Timothy Stack
9db2dfa7a4 [theme] default to using default colors and, if default coloring is not enabled, turn -1 into white/black for fg/bg 2019-10-23 06:09:47 -07:00
Timothy Stack
e525d247ae [json-log] some more fixes for handling invalid json logs 2019-10-19 07:11:47 -07:00
Timothy Stack
10b8d64b03 [lnav_log] fix lldb arguments 2019-10-17 20:02:32 -07:00
Timothy Stack
0935e1c356 missed adding redirect-to to the docs 2019-09-11 08:11:20 -07:00
Timothy Stack
5901c92794 [open-cmd] use line_buffer to load preview data
Fixes #680
2019-09-11 06:01:16 -07:00
Timothy Stack
98519b045a [help] mention hide/show-unmarked-lines
Fixes #631
2019-09-10 05:50:10 -07:00
Tim Stack
03dc27f30a
Merge pull request #641 from matt-hayden/master
More clipboard commands
2019-09-09 21:37:07 -07:00
Tim Stack
b2463e44a3
Merge pull request #677 from phord/gzip-index
Add a gzip indexing class for faster gz navigation
2019-09-09 21:35:44 -07:00
Timothy Stack
73e902f7d8 [json-log] handle invalid json log lines
Header from folded patch 'foldme1.patch':

[local] foldme
2019-09-03 06:19:57 -07:00
Timothy Stack
cd3b9bbb71 [docs] start a CLI options page 2019-08-20 07:21:41 -07:00
Phil Hord
5513deeade Add a gzip indexing class for faster gz navigation
The gzread function is slow.  Every time you seek to a new location, the
whole file up to that position has to be decompressed again.  This causes
massive lags when trying to do simple things in lnav on a large .gz file.

Use the zlib inflate* functions instead and record the dictionary
periodically while processing the file the first time.  Then use
inflateSetDictionary to restore the dictionary to a convenient
location when trying to seek into the file again in the future.

Use a default period of 1MB of compressed data for syncpoints.
Each syncpoint uses 32KB. This is a ratio of 3.2%.  For example,
a 1GB .gz file (compressed size) will require us to keep 32MB
of index data in memory. A better method may be to use a fixed
number of syncpoints and divide the file appropriately. This
would keep the memory bounded at the cost of slower file
navigation on large .gz files.

Use pread to read the data for the stream decompressor and remove
the lock_hack previously employed.

NB. The documentation on these zlib functions is sparse. I followed
the example in zlib/examples/zran.c, but I used the z_stream total_in
and total_out variables instead of keeping my own separately as zran.c
does.  Maybe this is incompatible with some very old zlib versions.
I haven't looked.
2019-08-17 18:40:55 -07:00
Timothy Stack
165cd69c8d [vmw_log] allow colons in user names 2019-08-10 22:16:54 -07:00
Timothy Stack
56a341f7f8 [view_curses] colors
Defect Number:
    Reviewed By:
   Testing Done:
2019-08-07 09:46:19 -07:00
Timothy Stack
9a05b9d186 [config] pay attention to XDG_CONFIG_HOME
Fixes #105
2019-08-01 07:14:47 -07:00
Timothy Stack
07cc749c50 [stdin-capture] change save limit to 10MB 2019-07-31 10:11:23 -07:00
Timothy Stack
71f56d29da [hotkeys] remove extra call to textview_curses->handle_key() 2019-07-31 09:02:39 -07:00
Timothy Stack
ed67c6cf9f Remove noisy log message
Fixes #648
2019-07-30 21:50:02 -07:00
Timothy Stack
3669b73e5b [highlight] avoid highlighting keywords in comments and strings 2019-07-30 07:06:16 -07:00
Timothy Stack
e442f84e80 [textview] pause loading of files by pressing =
Fixes #670
2019-07-30 06:28:42 -07:00
Timothy Stack
63dba408ec [stdin] Keep the stdin piper file in .lnav so that it can be reopened
When piping the output of a program into lnav, the data would
be dumped to the terminal on exit so that it would not be
lost.  Since that is a bit noisy, the temp file used to store
the data is now left in .lnav so that it can be reopened later.
Older stdin captures are automatically removed after a day.

Also took the opportunity to start using filesystem::path more.

Fixes #436
2019-07-29 22:18:32 -07:00
Darragh O'Reilly
6e93145f23 Fix openstack_log debug level
So ":set-min-log-level info" gets rid of lines with DEBUG.
2019-07-29 17:22:51 +01:00
Timothy Stack
ffd9d88add [log_format] ignore line-format field if timestamp-format is set
Fixes #661
2019-07-26 01:16:37 -07:00
Timothy Stack
34db64aa32 [logfile] the index rebuild didn't check the mtime if the file size was the same
Fixes #668
2019-07-25 07:31:46 -07:00
Timothy Stack
d381197195 [highlights] a little too quick on the last checkin 2019-07-24 13:43:01 -07:00
Timothy Stack
e6590e94e2 [highlight] fix highlights
Fix #667
2019-07-24 13:37:05 -07:00
Timothy Stack
65d2f7552c [cmake] install the binary 2019-07-22 10:36:47 -07:00
Timothy Stack
91dd8a84ec [cmake] enable jit for libpcre 2019-07-15 23:04:31 -07:00
Timothy Stack
76ea0abcd9 [cmake] check for libutil 2019-07-15 20:51:43 -07:00
Timothy Stack
fa1217e2f6 [cmake] fix config value 2019-07-15 09:46:40 -07:00
Timothy Stack
8bb1d4a732 [cmake] add configure stuff 2019-07-14 23:18:53 -07:00
Timothy Stack
1257fcd62a [codacy] fix a few issues turned up 2019-07-11 14:59:54 -07:00
Timothy Stack
325e4a15d9 [build] test out the hunter package manager 2019-07-09 08:34:55 -07:00
Timothy Stack
76edd2a9d1 [line_buffer] refactor left a bug with non-blocking files
Fixes #662
2019-06-27 10:19:54 -07:00
Timothy Stack
b81b35c866 [log-view] in time-offset mode, show negative times for messages before the first mark
Prototype for #395
2019-06-26 21:52:40 -07:00
Timothy Stack
d61f2568d6 [ptimec] fix a case of undefined behavior 2019-06-21 17:19:56 -07:00
Timothy Stack
de6ec92f2f [yajlpp] fix config save 2019-06-21 05:14:00 -07:00
Timothy Stack
a9e9613214 [textfile] fix search issue 2019-06-18 06:28:40 -07:00
Timothy Stack
26ada4dd2f [grep_proc] missed draining the IPC pipe 2019-06-17 21:02:45 -07:00
Timothy Stack
e27cf3b158 [data-parser] limit the number of pairs produced
Fixes #645
2019-06-16 07:26:47 -07:00
Timothy Stack
02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
2019-06-15 06:32:02 -07:00
Timothy Stack
b5c6ed6240 [rebiuld] fix an issue when a text file is truncated 2019-05-23 21:21:39 -07:00
Timothy Stack
f0000ae065 [keymap] redo the keymap definition
Defect Number:
    Reviewed By:
   Testing Done:
2019-05-23 06:28:42 -07:00
Timothy Stack
e18e8e214a [build] missed lambda captured 2019-05-21 22:37:36 -07:00
Timothy Stack
0918063640 [cleanup] some modernization 2019-05-21 22:14:36 -07:00
Timothy Stack
6cf5cc8213 [logfile] fix issue when files have headers
Defect Number:
    Reviewed By:
   Testing Done:
2019-05-17 07:42:05 -07:00
Timothy Stack
3c85936999 [jsonlog] fix ident highlight when body has newlines 2019-05-16 02:23:06 -07:00
Timothy Stack
1fc24ecabf [bin2c] improve building of data files that are incorporated into the binary 2019-05-15 09:13:56 -07:00
Timothy Stack
c7046b0b54 [json] newlines in the line format cause problems
Fixes #644
2019-05-13 10:44:33 -07:00
Timothy Stack
bb6f31eaa0 [theme] styling for scrollbars 2019-05-12 06:53:40 -07:00
Timothy Stack
ecd17a9f97 [build] distclean fix 2019-05-08 09:28:49 -07:00
Timothy Stack
e80ec6ec73 [build] fix lib order 2019-05-08 09:07:29 -07:00
Timothy Stack
28a275e4fb [build] try to fix 2019-05-08 07:42:55 -07:00
Timothy Stack
65d9240300 [theme] add eldar theme 2019-05-08 06:05:09 -07:00
Timothy Stack
fb7d6eafaf [build] some refactoring of files 2019-05-08 05:30:59 -07:00
Timothy Stack
63e53377c3 [theme] add monocai theme 2019-05-04 10:35:23 -07:00
Timothy Stack
147dea9d8c [build] oops, missed adding these files 2019-05-04 09:44:35 -07:00
Timothy Stack
a8e1f62da6 [build] add fmt lib 2019-05-04 07:07:39 -07:00
Timothy Stack
a648657ff3 add notice to levels defined in formats 2019-05-03 15:02:09 -07:00
Timothy Stack
e8f4020c67 fix crash 2019-05-03 14:17:56 -07:00
Timothy Stack
06d1098211 [config] initial support for themes
For #422

Still more to do
2019-05-03 13:50:19 -07:00
Matt Hayden
66285bbb62 Clipboard copy/paste for Wayland and tmux
With special thanks to neovim for example commands
2019-04-24 21:45:56 -06:00
Timothy Stack
6f451eec35 [pretty] fix crash when rewriting lines 2019-04-18 04:26:24 -07:00
Timothy Stack
5e8a1cebe9 [json-log] handle arrays in json log message fields
Fixes #635
2019-04-17 06:17:11 -07:00
Matt Hayden (Innolitics)
ba48d31120 Support for Windows Subsystem for Linux clipboard command 2019-03-21 11:16:29 -06:00
Timothy Stack
062d480fea [sql] fix some issues found while trying to query some logs 2019-03-21 07:46:51 -07:00
Timothy Stack
78d80fddd5 [cli] add -r flag for recursively loading files from a directory hierarchy
Fixes #431
2019-03-14 22:24:57 -07:00
Timothy Stack
8d3b83403c [format] some updates to the haproxy format 2019-03-14 06:35:15 -07:00
Timothy Stack
33cdbefaaa [help] some online help additions 2019-03-13 23:07:39 -07:00
Timothy Stack
21c5c52843 [format] allow multiple log format patterns per log file
This tries to address #624
2019-03-13 16:37:41 -07:00
Timothy Stack
0e12f98ae7 [sql] change base_time to time_offset 2019-03-12 22:41:39 -07:00
Timothy Stack
0de761ce4f [build] fix linux build issue 2019-03-12 22:27:41 -07:00
Timothy Stack
469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
2019-03-12 07:06:31 -07:00
Timothy Stack
6f41cbe394 minor cleanup 2019-03-08 07:31:52 -08:00
Timothy Stack
efa6aded3a [filter] fix for multiple files 2019-03-05 12:33:46 -08:00
Timothy Stack
bc4004de9e [environ_vtab] the first var was being skipped 2019-02-27 07:14:17 -08:00
Timothy Stack
4614cbcb75 [sql] fix joins on some vtables 2019-02-18 14:44:59 -08:00
Timothy Stack
43243c7ba3 [build] revive freebsd release build
Some misc fixes for filtering as well
2019-02-17 07:40:35 -08:00
Timothy Stack
9fea61abf8 [bottom-status] missing percent 2019-02-15 22:31:15 -08:00
Timothy Stack
d62da7c27c [build] try to fix windows x86 build 2019-02-15 22:27:55 -08:00
Timothy Stack
02b9e13343 [filters] add the number of hits for each filter in the editor
Might be useful to know the number of hits for a given filter.
2019-02-15 09:22:32 -08:00
Timothy Stack
a682b02168 [vtab] use template for integral to_sqlite() calls 2019-02-15 06:07:06 -08:00
Timothy Stack
659f01c9ae [filters] add a log_filters column to log tables that contains the matched filters
Related to #597
2019-02-14 22:42:44 -08:00
Timothy Stack
e0ee2c6706 Fixes #613 2019-02-14 06:15:58 -08:00
Timothy Stack
1e795c1e4a [ui] move filter editor help to separate status bar
The help is unreadable when the terminal width is
small.
2019-02-13 21:54:40 -08:00
Timothy Stack
d66303b75a [status] fix display when there are no matches for a search 2019-02-06 22:25:35 -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
1a932f3a41 [cmds] :q! should quit lnav
Fixes #607
2019-02-03 22:10:27 -08:00
Timothy Stack
d1a556638b [filters] save disabled filters in the session 2019-02-03 22:03:52 -08:00
Timothy Stack
104b8736e8 [vtab] fix for failed update to log_tags column and fix filtering with json logs 2019-02-01 13:31:28 -08:00
Timothy Stack
527150d6a0 [readline] fix highlighting of tab completion 2019-01-29 09:58:34 -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
8a3bdbfb2f [filter] fix some glitches 2019-01-28 21:59:05 -08:00
Timothy Stack
31c440777f [hotkeys] add ctrl+f to toggle filters
Fixes #604
2019-01-27 08:05:44 -08:00
Timothy Stack
69508e6467 [search] try to fix an issue with search progress bar never stopping
Possible fix for #588
2019-01-26 08:01: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
85671755d3 [readline] fix alignment in SQL help
related to #598
2019-01-25 07:25:37 -08:00
Timothy Stack
5fff4d8784 [help] add some initial help text for search/SQL prompts
Also:
  * You can now "scroll out" of the visual editor to
    return to the main view.  This should alleviate the
    frustration of pressing up/down arrows thinking the
    main view should move but, really, you're stuck in
    the editor.
  * The three-dot-ellipsis for hidden fields has been
    replaced with a unicode vertical ellipsis so that
    less space is taken up.
2019-01-24 22:05:15 -08:00
Timothy Stack
6853034cce [cleanup] some minor cleanup and perf fixes
Files:
  * filter_sub_source.cc: Fix some performance issues
  * filter_sub_source.hh: The readline context should
    be case-INsensitive for completions
  * readline_curses.cc, session_data.cc: modernize
2019-01-21 14:15:00 -08:00
Timothy Stack
e451e10910 typo on zoom hotkey
Fixes #596
2019-01-14 20:50:18 -08:00
Timothy Stack
4381c23641 some build and cleanup 2019-01-13 19:14:26 -08:00
Timothy Stack
dcccebe797 [sql] add some help for regexp_capture()
Fixes #593
2019-01-13 19:02:50 -08:00
Timothy Stack
7dfa0e9dd4 [textview] highlights that start from the beginning of the line are not working in the log view
The log view prefixes lines with some extra characters and they
were mistakenly being included when performing the highlight
regex.

Fixes #590
2019-01-01 08:24:02 -08:00
Timothy Stack
66ef968529 [logfile] fix a performance bug in searching json logs 2018-12-16 21:45:10 -08:00
Timothy Stack
d65a8be9d1 [build] missed include 2018-12-14 07:54:31 -08:00
Timothy Stack
7c95941920 [build] add ring_span.hh to makefile 2018-12-14 07:33:01 -08:00
Timothy Stack
cdbf4dabda [build] missed file 2018-12-14 07:12:55 -08:00
Timothy Stack
a63b6a199c [filter] in the filter editor, use "t" to toggle the type of filter
Related to #423
2018-12-14 07:10:50 -08:00
Timothy Stack
814ad03ec9 [view] keep a history of view positions
Fixes #577
2018-12-14 06:18:56 -08:00
Timothy Stack
5769bcbb4a whiff
missed refreshing patch
2018-12-02 09:34:36 -08:00
Timothy Stack
42be76c3ba [readline] fix some broken shortcuts
Defect Number:
    Reviewed By:
   Testing Done:
2018-12-02 07:58:30 -08:00
Timothy Stack
d46cfa1a8c [sql] timeslice() fails on 32-bit
Fixes #563
2018-12-01 07:54:29 -08:00
Timothy Stack
afef6b1827 [build] fix some warnings and a 32-bit compile error 2018-12-01 07:47:52 -08:00
Timothy Stack
f2b9988c95 [internal] capture stderr while in curses and log it
Fixes #582
2018-11-29 07:16:25 -08:00
Timothy Stack
e001b49e28 [format] hidden object/array fields add sub-lines when they should not
Fixes #576
2018-11-26 10:30:27 -08:00
Timothy Stack
b4e7bc9b0f [cmds] fix a glitch when adding a comment on a small screen 2018-11-22 21:12:13 -08:00
Timothy Stack
1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
2018-11-21 17:00:28 -08:00
Timothy Stack
49dce3cec2 [readline] fix escaping out of prompt 2018-11-20 08:15:58 -08:00
Timothy Stack
aae4650b95 [hotkeys] fix a crash when pressing 'I' that is due to a previous change 2018-11-19 11:07:22 -08:00
Timothy Stack
2c5bfc830e xterm fix wasn't quite right... 2018-11-17 07:45:18 -08:00