Commit Graph

1789 Commits

Author SHA1 Message Date
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
Timothy Stack
5c6cc5fe2a [readline] pressing escape should exit the command prompt
Fixes #316
2018-11-15 06:43:28 -08:00
Timothy Stack
31a19ac753 [vtab] fix the SQL function adapter for vector refs 2018-11-15 05:25:02 -08:00
Timothy Stack
6336fa56e9 [cmds] :write-json-to should passthru JSON columns as JSON instead of strings
Fixes #565
2018-11-14 21:46:49 -08:00
Timothy Stack
f6a84ed081 [display] fix colors on a plain xterm display 2018-11-13 21:57:47 -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
efe6ccf0d1 [filter] change from backquote to tab for activating filter panel 2018-11-09 13:59:27 -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
80456791ac [build] missed adding header to makefile 2018-10-25 21:38:08 -07:00
Timothy Stack
b1a6d06490 [lss] refactor the force flag during indexing and some other stuff 2018-10-25 21:26:58 -07:00
Timothy Stack
d74f3a13da [lnav_commands] fix attempt to convert uninitialized max_time
Fix #556
2018-10-19 21:25:20 -07:00
Timothy Stack
a9a05af736 [logfile_sub_source] revert sorting change for now 2018-10-17 08:13:11 -07:00
Timothy Stack
14599839ed [logfile_sub_source] fix sorting 2018-10-17 08:02:05 -07:00
Timothy Stack
84135c44e4 [build] disable simd stuff for now 2018-10-17 07:36:42 -07:00
Timothy Stack
fc8bc80f62 [build] try removing inline 2018-10-17 07:21:27 -07:00
Timothy Stack
bae4897071 [build] fix pcre utf flag usage 2018-10-17 07:13:45 -07:00
Timothy Stack
2589345e5c [perf] improve initial indexing times 2018-10-17 07:03:33 -07:00
Timothy Stack
2e10ca09d0 [line_buffer] fix crlf handling in log files 2018-10-12 07:46:18 -07: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
ea5ac46c0e [cmds] the output of the :pipe commands should go to the top of the output stack and not to a temp file 2018-10-11 07:09:52 -07:00
Timothy Stack
53c1f03205 update includes for command_executor.hh 2018-10-11 06:45:23 -07:00
Timothy Stack
e5c6c180eb [cmds] fix preview for :write-raw-to 2018-10-11 06:14:39 -07:00
Timothy Stack
5f5e2d5c4e [cleanup] prune some includes and some other cleaning
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-11 05:50:28 -07:00
Timothy Stack
c715807657 [perf] minor improvement in indexing 2018-10-10 22:21:56 -07:00
Timothy Stack
658931a145 [cleanup] remove cdefs.h include and other stuff
Fix #486
2018-10-10 08:01:08 -07:00
Timothy Stack
70f7bcacd9 Don't update the top if the time is not different 2018-10-09 16:52:19 -07:00
Timothy Stack
9664b015c6 [textview] preserve location in view when changing filters
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-08 07:43:08 -07:00
Timothy Stack
d1856b53ba [build] avoid adding -I/usr/include to CPPFLAGS
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-02 23:04:14 -07:00
Timothy Stack
686ce639a0 [build] use cmath instead of math.h
Defect Number:
    Reviewed By:
   Testing Done:
2018-10-02 22:01:18 -07:00
Benny Zlotnik
bec91a458e Remove redundant the
Signed-off-by: Benny Zlotnik <uber442@gmail.com>
2018-10-02 16:24:02 +03:00
Timothy Stack
562362ed67 missed including this file with the last commit 2018-10-01 11:16:53 -07:00
Timothy Stack
6a3b1f2d94 Search results are not reversed for bookmarked lines
Fix #313

Sorry for the delay
2018-10-01 07:08:21 -07:00
Timothy Stack
d7699cfb96 add an ifdef for a symbol, Fix #289 2018-10-01 06:46:51 -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
0b822739ea [readline] wait for focus before processing input
Fix for #543

Mistakenly had the read-ready bit set for stdin before the
command to focus was processed.  The result being the
readline child would exit.
2018-09-29 22:24:55 -07:00
Timothy Stack
f65df7c762 [readline] tweak fuzzy matching threshold
Change the threshold for cutting off the remaining fuzzy matches
that was added for #541

Also, fix an error when filtering is added when viewing
the tail of the log.
2018-09-29 00:20:45 -07:00
Timothy Stack
f241704a93 [readline] do a fuzzy match if the prefix match fails to find anything
Prototype for #541
2018-09-13 14:27:49 -07:00
Timothy Stack
bc26b92199 [json] some more journald log tweaks
Defect Number:
    Reviewed By:
   Testing Done:
2018-08-22 05:33:20 -07:00
Timothy Stack
ca7b4b2168 [lint] fix a couple more struct/class complaints 2018-08-21 23:01:10 -07:00
Timothy Stack
65b6ecb6ba [lint] change log_state_dumper tag 2018-08-21 22:58:23 -07:00
Timothy Stack
26cccdafce [locale] some tweaks for recognizing non-english logs
Try to address some locale issues brought up in #533
2018-08-21 21:43:32 -07:00
Timothy Stack
0b36da15a6 add monotonic timestamp back to the journald format, map priority 1 to fatal as well 2018-08-21 11:39:47 -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
00baf0a1d9 [cmds] return an error when :hide-unmarked-lines is run when no lines are marked 2018-08-18 23:44:04 -07:00
Timothy Stack
470e317d87 [overlay] shift the comment/tag overlays when the filename is displayed on the left 2018-08-18 23:43:38 -07:00
Timothy Stack
3e457e30ca [json-format] fix json file recognition for crlf line-endings
Fixes #528
2018-08-13 05:30:47 -07:00
Timothy Stack
00ed12557b [keymap] add more keys to the keymap 2018-08-12 08:37:16 -07:00
Timothy Stack
c3097db7af [filter] fix some nits in the filter command 2018-07-25 02:27:11 -07:00
Timothy Stack
59c31925de [log_format] missing highlight colors
The highlighter copy constructor wasn't copying the colors over
2018-07-24 07:48:16 -07:00
Timothy Stack
d805dee15f [line_buffer] avoid a crash with binary files, but still not handled well 2018-07-22 07:59:49 -07:00
Timothy Stack
8df3ebf709 [top_status_line] use the unique path for the filename if there is not enough room to display the full path
Trying to address #526
2018-07-22 07:17:45 -07:00
Timothy Stack
0ee6bdd5bf [sql] the log_part column was not correct in some cases 2018-07-22 06:51:05 -07:00
Timothy Stack
77302eb980 [build] fix some build issues 2018-06-12 08:04:20 -07:00
Timothy Stack
5e8983b857 [sql-view] pressing tab should hide bart charts
Fixes #514
2018-06-12 07:50:40 -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
d1da7b800c [ptime] fix %p and %l 2018-05-28 08:15:42 -07:00
Timothy Stack
6bfd158e49 [logline] check for SQL keywords in column names 2018-05-27 07:59:24 -07:00
Timothy Stack
b94571c58e [build] fixes... 2018-05-25 06:43:35 -07:00
Timothy Stack
5689984702 [yajlpp] use pointer to member over nullobj() 2018-05-25 06:32:01 -07:00
Timothy Stack
9e1411f113 [ptime] fix am/pm issue again
Fixes #520
2018-05-23 08:31:05 -07:00
Timothy Stack
5e0dabb231 [ptime] fix offset in failed parse for a few cases 2018-05-22 22:38:01 -07:00
Timothy Stack
030c33476c [sql] fix some copy pasta 2018-05-22 09:00:42 -07:00