Commit Graph

659 Commits

Author SHA1 Message Date
Timothy Stack
8fb15e455a [cmd] add a relative-goto command 2015-03-24 23:07:47 -07:00
Suresh Sundriyal
1025015bc8 [build] autogen.sh run 2015-03-24 22:52:49 -07:00
Suresh Sundriyal
40250d41d9 [build] autogen.sh run 2015-03-24 22:27:52 -07:00
Timothy Stack
4ea800a8f8 [build] messed up sigset init 2015-03-23 21:25:19 -07:00
Timothy Stack
219a4baad1 [ui] lower the index rebuild frequency when the command line is active 2015-03-23 21:20:55 -07:00
Suresh Sundriyal
23e2d86421 [build] autogen run 2015-03-23 03:28:24 -07:00
Timothy Stack
42521ef337 [hist] the wrong view could be used when switching from hist to log 2015-03-22 21:58:12 -07:00
Timothy Stack
cf462cecde [hist] need to rebuild the histogram if files are closed 2015-03-22 11:49:37 -07:00
Suresh Sundriyal
6567b53266 [Coverity] Eliminate null pointer dereferencing.
There is a possibility that 'name' might be NULL and {get/set}env might
dereference it.
2015-03-21 23:22:58 -07:00
Suresh Sundriyal
e3f2939904 [Coverity] Uninitialized variable.
Zero out 'msg' during declaration.
2015-03-21 17:07:43 -07:00
Suresh Sundriyal
803642a849 [Coverity] Fixes an 'Uninitialized variables' error.
Initialize retval to SQLITE_ERROR during declaration at the beggining of
the method. I could technically go with SQLITE_OK but if this is going
to be unintentially returned without being initialized, I would much
rather it return an error than success.
2015-03-21 17:06:39 -07:00
Suresh Sundriyal
74de13e2c9 Remove unused 'strncasestr_i'.
The function is not really used anywhere and does not really do what the
name suggests it should. It leads to compiler warnings about 'unused'
function. Removing this for now.
2015-03-21 13:43:40 -07:00
Suresh Sundriyal
1c0d3a4f5a [Warnings] varargs with reference parameters.
'va_start' has undefined behvaior with reference types, so use a pointer instead.
2015-03-21 11:56:12 -07:00
Suresh Sundriyal
89b31050f1 [Compile errors] Fix some errors on ancient toolchains.
Fix some random errors on older toolchains where sys/time.h does
not include time.h.
2015-03-21 11:39:48 -07:00
Timothy Stack
b02430f4d9 add netinet include 2015-03-20 20:55:46 -07:00
Timothy Stack
fa2ed5621d [build] autogen run 2015-03-20 20:32:40 -07:00
Timothy Stack
ff724e4941 [pipe-to] set env vars for each log line column 2015-03-19 22:16:55 -07:00
Timothy Stack
aea0bd54e0 [cmd] add a :redraw command to do a full redraw of the window
Fixes #18
2015-03-19 20:43:22 -07:00
Timothy Stack
12b81fe4e7 [format] fix full message read for json formats 2015-03-18 22:57:30 -07:00
Timothy Stack
dc79bd3bf5 [nav] reset where shift+j/k set bookmarks after scrolling
Fixes #13
2015-03-18 21:54:46 -07:00
Timothy Stack
12e0befe30 [pretty-print] try to reverse lookup IP addresses 2015-03-18 06:32:56 -07:00
Timothy Stack
c3968e4291 [pretty-print] remove some extra line feeds 2015-03-18 05:49:27 -07:00
Timothy Stack
3e7063a522 [pretty-print] put closing curlys on their own line 2015-03-17 22:38:50 -07:00
Tim Stack
facb75589b Merge pull request #128 from sureshsundriyal/master
Partial fix for issue#53 (Allow the use of yajl installed on the system)
2015-03-17 21:04:15 -07:00
Timothy Stack
1a9e41cf2f use stringstream instead of strstream 2015-03-16 23:27:40 -07:00
Timothy Stack
c670a86d04 [pretty-print] first pass at a pretty-printer
Defect Number:
    Reviewed By:
   Testing Done:
2015-03-16 23:10:34 -07:00
Timothy Stack
1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 2015-03-16 09:16:49 -07:00
Timothy Stack
64df915a5a [piper] fix some ownership issues with the piper fd 2015-03-14 07:08:48 -07:00
Suresh Sundriyal
74da06a8b8 [build] Define a USE_INCLUDED_YAJL conditional
Define a USE_INCLUDED_YAJL conditional which can be used to skip the
included YAJL files if there are local ones available.
2015-03-14 03:12:36 -07:00
Timothy Stack
9ded31f647 display autotools version 2015-03-13 19:59:28 -07:00
Suresh Sundriyal
bd2ae532de Update the generated build files. 2015-03-12 00:55:40 -07:00
Timothy Stack
974aafe1b9 [search] fix searching when a file is deleted and recreated 2015-03-11 06:22:50 -07:00
Timothy Stack
23344ac8b2 build fix 2015-03-09 06:58:47 -07:00
Timothy Stack
b5b4a241e2 build 2015-03-09 06:49:45 -07:00
Timothy Stack
fad59bfaf1 [ptime] fix endianness and parsing issues 2015-03-09 06:30:12 -07:00
Timothy Stack
c80e181790 fix ptime_b_slow, again... 2015-02-25 22:18:50 -08:00
Timothy Stack
a2caf34028 [sysclip] fix NULL deref 2015-02-14 15:13:00 -08:00
Timothy Stack
0b816dd45d [nav] fix time-based navigation when filtering is active 2015-01-25 20:51:21 -08:00
Timothy Stack
c2e44c5998 [filter] fix for multiple filter-ins being applied 2014-12-10 07:03:01 -08:00
Timothy Stack
99f34a1447 [fmt] add a vmkernel log format
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-22 10:33:24 -08:00
Timothy Stack
6a90dd9bc2 copy search terms to OS-Xs find clipboard
Fixes #108
2014-11-19 06:12:43 -08:00
Tim Stack
80ef38227b Merge pull request #120 from iranzo/master
Add support for OpenStack log formats (tested on neutron, nova)
2014-11-12 07:35:34 -08:00
Pablo Iranzo Gómez
8fc539df16 Specify timestamp and url for Openstack log files 2014-11-12 15:47:28 +01:00
Pablo Iranzo Gómez
d1c5f12bfc Add support for OpenStack log formats (tested on neutron, nova) 2014-11-12 14:43:46 +01:00
Suresh Sundriyal
114a7a6ecf [log_accel] Minor refactoring.
Unless I am misunderstanding the intention behind the equation:

    (A - D)/C - (B - D)/C = (A - B)/C

The output seems to be exactly the same:

    Before:
    =======
     1m7s000│Nov 11 06:45:01 XXX-XXX CRON[28452]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    11m7s000│Nov 11 06:55:01 XXX-XXX CRON[28819]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    21m7s000│Nov 11 07:05:01 XXX-XXX CRON[29186]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    31m7s000│Nov 11 07:15:01 XXX-XXX CRON[29552]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    33m7s000│Nov 11 07:17:01 XXX-XXX CRON[29629]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
    41m7s000│Nov 11 07:25:01 XXX-XXX CRON[29922]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    51m7s000│Nov 11 07:35:01 XXX-XXX CRON[30290]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
   1h1m7s000│Nov 11 07:45:01 XXX-XXX CRON[30657]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

    After:
    ======
     1m7s000│Nov 11 06:45:01 XXX-XXX CRON[28452]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    11m7s000│Nov 11 06:55:01 XXX-XXX CRON[28819]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    21m7s000│Nov 11 07:05:01 XXX-XXX CRON[29186]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    31m7s000│Nov 11 07:15:01 XXX-XXX CRON[29552]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    33m7s000│Nov 11 07:17:01 XXX-XXX CRON[29629]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
    41m7s000│Nov 11 07:25:01 XXX-XXX CRON[29922]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
    51m7s000│Nov 11 07:35:01 XXX-XXX CRON[30290]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
   1h1m7s000│Nov 11 07:45:01 XXX-XXX CRON[30657]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)

Some names and identifying details in the log snippets above have been changed
to protect the privacy of individuals. Any resemblance to actual computers,
sentient or otherwisei, is purely coincidental.
2014-11-11 23:09:05 -08:00
Timothy Stack
cfa628f6c4 various fixes
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-11 21:18:55 -08:00
Timothy Stack
62f4c9e59e [build] another missing define 2014-11-11 09:41:57 -08:00
Timothy Stack
3158b29cbd [build] fix missing define 2014-11-11 09:12:42 -08:00
Timothy Stack
17db6e38fe add a lo-fi mode
Fixes #113
2014-11-11 08:44:44 -08:00
Timothy Stack
ba83382b38 [vdsm_log] missed the level field 2014-11-10 13:57:15 -08:00
Pablo Iranzo Gómez
98e8f1b1c3 Add support for RHEV/oVirt engine.log file 2014-11-10 20:37:07 +01:00
Timothy Stack
fc31831286 [vdsm_log] add new format 2014-11-10 08:56:35 -08:00
Timothy Stack
244ee2717f [vmw_log] fix full message read for continued messages 2014-11-07 06:16:45 -08:00
Timothy Stack
7664b75a87 missed invalidating shared buffer refs when loading new data 2014-11-07 05:49:48 -08:00
Suresh Sundriyal
fb4eb36796 [vmw_log] 'panic' is an 'error' too.
VPXD prints out the stackframes in the log files when it terminates
abnormally. These log messages have a log level of 'panic'. I guess
these qualify as 'error' as well.
2014-11-07 00:40:00 -08:00
Timothy Stack
82ada5103a fix an uninitialized var 2014-11-06 22:41:48 -08:00
Timothy Stack
c5c37a3202 [vmw_log] update the formats for the vmw_log format 2014-11-06 20:32:35 -08:00
Timothy Stack
a06d620018 [filter] add tests for filtering with append 2014-11-06 06:40:32 -08:00
Timothy Stack
80cbe192cb [filter] fix a filtering bug during tailing 2014-11-05 23:36:07 -08:00
Timothy Stack
671dca60dc [cmd] do not error out if filter exists, just enable it
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-05 21:29:31 -08:00
Suresh Sundriyal
f8ad3479db Reduce session_data filesize and some minor cleanup.
After a year of not cleaning up the '~/.lnav' folder, the folder was
consuming ~8Mb of disk space. This change tries to reduce the disk
consumption by the session_data files.

- The json data in the session_data is beautified. The extra characters
  contribute to some of the file size. After removing the beautification
  option, the file size reduces by 60-20%, depending on how many files
  are open.

  Without knowing much about the functionality of these files, my
  cursory tests seem to show that lnav can still restore the sessions
  after this change. I don't know if these files are meant for human
  consumption or not but they can easily be run through a linter to
  beautify them again.

- While I was in the file, I noticed that there was a scope declared
  with no code inside it. Seems like a remnant of a cleanup.
2014-11-05 19:11:14 -08:00
Timothy Stack
deeac1a5db [formats] add a "-i" flag to make it easier to install formats 2014-11-05 09:01:09 -08:00
Timothy Stack
f9098e6bc4 [build] automate building the linux static binary 2014-11-04 06:36:49 -08:00
Timothy Stack
c7cd0961ab [build] make dist fixes 2014-11-03 20:41:38 -08:00
Timothy Stack
0d6f067aab [coverity] a couple of fixes 2014-11-03 20:24:46 -08:00
Timothy Stack
45f18bd89c bump version, add some logging, and minor stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-03 20:02:22 -08:00
Timothy Stack
cd953a548c [filter] update the UI during filtering again
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-03 06:07:36 -08:00
Timothy Stack
cde87f0a11 [log_sub_source] fix the filtered count
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-02 19:46:53 -08:00
Timothy Stack
c5f5ee5624 remove dead strace table code 2014-11-02 19:41:58 -08:00
Timothy Stack
2d23f8e809 [time] use the gmtime from newlib
Defect Number:
    Reviewed By:
   Testing Done:
2014-11-02 19:35:15 -08:00
Timothy Stack
708490e3b0 [mem] some more memory reductions
Defect Number:
    Reviewed By:
   Testing Done:
2014-10-31 13:16:35 -07:00
Timothy Stack
f410c9eeb8 [logfile] try to reduce memory usage a bit
Defect Number:
    Reviewed By:
   Testing Done:
2014-10-31 11:11:56 -07:00
Timothy Stack
35defc0ede fix for delete detection 2014-10-31 05:16:07 -07:00
Timothy Stack
0859f69c9f try to fix a crash related to deleted files 2014-10-31 04:49:16 -07:00
Timothy Stack
74b49e6f28 [cmd] add tab-completion for text in the view when filtering
Defect Number: fixes #92
    Reviewed By:
   Testing Done:
2014-10-30 08:37:06 -07:00
Timothy Stack
0ab2400d2d [cmd] add a clear-highlight command
Defect Number: Fixes #109
    Reviewed By:
   Testing Done:
2014-10-29 20:53:23 -07:00
Timothy Stack
6c1dfe3521 [yajl] add a yajl_reset() so we do not have to do yajl_alloc for every line 2014-10-29 06:42:45 -07:00
Timothy Stack
ccee7caa32 [yajl] bump to version 2.1.0 2014-10-29 06:19:10 -07:00
Timothy Stack
e05d42dc3f fix some warnings 2014-10-29 04:26:13 +00:00
Timothy Stack
996e665078 fix an invalid read error 2014-10-28 07:12:33 -07:00
Timothy Stack
d4bea593b7 [perf] optimize json log loading 2014-10-28 07:02:27 -07:00
Timothy Stack
dd87952195 [build] minor fix 2014-10-19 22:19:40 -07:00
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Tim Stack
a10838a77a remove bad include 2014-09-29 04:57:08 -07:00
Tim Stack
4207602f3c remove bad include 2014-09-29 04:48:27 -07:00
Timothy Stack
ccf29b3bac [coverity] some cleanup and add the chunky_index 2014-09-28 22:36:07 -07:00
Timothy Stack
2c46b0f07b [clion] hacks to get clion working 2014-09-18 21:51:01 -07:00
Timothy Stack
dc4949305d ignore bad json lines
Defect Number:
    Reviewed By:
   Testing Done:
2014-07-30 16:27:50 -07:00
Timothy Stack
c491e93797 try to fix openam log on some pcre impls 2014-06-17 23:10:09 -07:00
Timothy Stack
17bd6e234a fix ptime_b_slow 2014-06-17 22:24:16 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -07:00
Timothy Stack
b205a3ec82 [build] some more centos build fixes 2014-06-13 21:39:03 -07:00
Timothy Stack
a02bf365e9 [build] fix attempt for older sqlites 2014-06-13 08:52:03 -07:00
Timothy Stack
9220c3c926 [timefmt] some more time formats
Handle month/day/hour formats without a leading zero.
2014-06-10 22:14:13 -07:00
Timothy Stack
353dfec878 [sql] add an environ virtual table
Defect Number:
    Reviewed By:
   Testing Done:
2014-05-06 21:26:05 -07:00
Timothy Stack
1974e1f1ae [jsonptr] initial impl 2014-05-05 06:44:58 -07:00
Timothy Stack
d4219f5bdc [build] fix an ambiguous call 2014-04-20 21:40:04 -07:00
Timothy Stack
bf706a136c [cmd] remember closed files
Fixes #96
2014-04-20 14:58:19 -07:00
Timothy Stack
b58438875d [concise] initial impl 2014-04-20 10:40:28 -07:00
Timothy Stack
134dcc2fc7 [status] flash "Not Shown" when filter count changes
Fixes #95
2014-04-20 10:39:28 -07:00
Timothy Stack
87f288d3d0 [build] ifdefs for some sqlite defines 2014-04-18 19:29:01 -07:00
Timothy Stack
87223ed110 [sql] install a sqlite log handler
Fixes #86
2014-04-18 19:16:29 -07:00
Timothy Stack
a011e02ce2 [textview] clear bookmarks fix
Fixes #100
2014-04-18 07:29:29 -07:00
Timothy Stack
f37ec555bf [logfile] check for truncated files 2014-04-18 05:17:24 -07:00
Timothy Stack
1b60e49d0b [readline] add environment variable completions to the SQL view 2014-04-18 04:32:37 -07:00
Timothy Stack
47dc9e4a3c [readline] fix some highlighting issues for search/sql 2014-04-16 22:54:00 -07:00
Timothy Stack
72e3a4d8df [format] add TCF file format and some fixes to make it work
Defect Number:
    Reviewed By:
   Testing Done:
2014-04-06 22:11:04 -07:00
Timothy Stack
1795c6c77e [line_buffer] endian.h is not available everywhere
Defect Number:
    Reviewed By:
   Testing Done:
2014-04-05 22:54:37 -07:00
Tim Stack
755154aab6 Merge pull request #97 from carnil/master
Convert byte encoding to host byte order
2014-04-05 22:39:41 -07:00
Salvatore Bonaccorso
d452a52514 Convert byte encoding to host byte order
Correctly convert byte encoding for 32bit value from little-endian order
to host byte order.
2014-04-04 15:32:58 +02:00
Timothy Stack
6d6c0f9e55 [nits] some nits noticed after the release
Defect Number:
    Reviewed By:
   Testing Done:
2014-04-01 13:07:58 -07:00
Timothy Stack
eb1747d73b build fix 2014-03-29 22:08:01 -07:00
Timothy Stack
9b44069e0b [build] cygwin fix 2014-03-29 21:04:29 -07:00
Timothy Stack
bbc9d5335f ifdef out the attach on signal code 2014-03-29 18:57:12 -07:00
Timothy Stack
8372cef11c [date] code generator for strptime formats 2014-03-22 08:02:48 -07:00
Timothy Stack
865951739e [release] add a log generator for demo purposes 2014-03-21 21:18:54 -07:00
Timothy Stack
a76803fd44 [session] fix a bug in save-session when the log file was closed 2014-03-18 22:47:36 -07:00
Timothy Stack
5a1385bf5e [build] check for ENODATA 2014-03-18 03:51:55 -07:00
Timothy Stack
e7565b5913 [build] termcap path 2014-03-18 03:41:08 -07:00
Timothy Stack
0f8f1b5218 [build] check for execinfo.h 2014-03-18 03:37:00 -07:00
Timothy Stack
b2fb77e0c3 [line_buffer] small fix to the buffering code 2014-03-17 04:17:17 -07:00
Timothy Stack
1eb29e4081 try again for the limit 2014-03-16 15:21:42 -07:00
Timothy Stack
290cb0b733 add a define for limit macros 2014-03-16 15:15:09 -07:00
Timothy Stack
4ce9a1e871 [elapsed-time] add a visual indicator for sharp changes in message rate 2014-03-16 15:07:08 -07:00
Timothy Stack
d17f7b1940 [cmd] add set-min-log-level command
Part of #82
2014-03-16 02:46:17 -07:00
Timothy Stack
cbd8308b36 [cmd] use wordexp in the open command 2014-03-15 22:33:56 -07:00
Timothy Stack
b988708431 [session] remove session flag CLI option in favor of commands
Too many CLI flags make things confusing and this one didn't add
anything, so I'm making it a command instead.
2014-03-15 12:32:29 -07:00
Timothy Stack
b8d7dee277 handle missing level field in format 2014-03-15 11:37:03 -07:00
Timothy Stack
bd0ff97415 [help] always turn on word-wrap
Turn on word-wrap in the help view to disable
horizontal scrolling.
2014-03-15 10:08:50 -07:00
Timothy Stack
9ff2d3774d [line_buffer] split long lines
Fixes #81
2014-03-15 04:40:58 -07:00
Timothy Stack
eba916749b some more string cons errors 2014-03-12 23:30:11 -07:00
Timothy Stack
3e6e3566d7 [cmd] rescan/reload after executing each init cmd 2014-03-12 23:20:18 -07:00
Timothy Stack
7b971cb40f [cmd] show the result of executing the 'close' command when pressing the 'X' shortcut 2014-03-12 22:54:35 -07:00
Timothy Stack
9dd471c5de [shared_buffer] invalid refs in the line buffer destructor 2014-03-12 22:50:11 -07:00
Timothy Stack
783369223b fix some misuses of the std::string constructor and other tweaks 2014-03-12 21:19:23 -07:00
Timothy Stack
454503ed53 [conf] check for sqlite3_stmt_readonly 2014-03-12 20:36:14 -07:00
Timothy Stack
f9adcc34b1 fix an off-by-one in the match array length 2014-03-12 20:02:59 -07:00
Timothy Stack
54d979f44f [open] bah, open should work for dirs 2014-03-12 09:22:30 -07:00
Timothy Stack
7b1bb506e2 [open] add some more checks when opening a file 2014-03-12 08:44:02 -07:00
Timothy Stack
365f8c619a [matches] readline seems to lie about the max match length 2014-03-12 08:32:56 -07:00
Timothy Stack
ab1f9a8725 [test] reformat test_grep_proc2 2014-03-12 07:11:55 -07:00
Timothy Stack
41bc1e98fe [sql] implement xBestIndex 2014-03-11 08:18:51 -07:00
Timothy Stack
9ff6a3cbe9 [write-json] add a command to write results as json 2014-03-11 05:37:13 -07:00
Timothy Stack
06974bc942 [json-log] some tweaks to json-log support 2014-03-11 03:49:52 -07:00
Timothy Stack
44970b5800 [data] version regex tweak 2014-03-11 03:49:47 -07:00
Tim Stack
39f0b0995b Update strong_int.hh 2014-03-10 14:54:14 -07:00
Timothy Stack
6a02c938cf [data] fix some minor perf bugs 2014-03-10 07:32:22 -07:00
Timothy Stack
1de4838cf5 [index] allow for larger file sizes
Fixes #76

Max line count for a file is 256 million and the
max number of files is 4096.
2014-03-09 23:38:30 -07:00
Timothy Stack
1c6eb45170 [highlight] fix highlighting for backslash in regexes 2014-03-09 14:57:39 -07:00
Timothy Stack
b34a314098 [data] fix scanning for times 2014-03-09 12:55:02 -07:00
Timothy Stack
c628810850 [readline] fix a problem with scrolling through the match list 2014-03-09 08:54:55 -07:00
Timothy Stack
43e6b55a81 [readline] customize display of matches for completion 2014-03-09 01:29:28 -08:00
Timothy Stack
5918ffe069 [readline] some tweaks to the readline regex highlighting 2014-03-08 07:18:53 -08:00
Timothy Stack
f77b601e9a [view_curses] add some tests for mvwattrline 2014-03-08 05:26:49 -08:00
Timothy Stack
112986da79 [view_curses] fix for attr ranges that cover tabs 2014-03-07 23:42:43 -08:00
Timothy Stack
affff589a4 [view_curses] fix mvwattrline to work with overlapping styles better 2014-03-07 23:31:12 -08:00
Timothy Stack
dbc96dc67c [session] preserve time-offset log-view setting 2014-03-07 21:53:24 -08:00
Timothy Stack
8455257aad fix coloring for the timestamp when in time-offset mode 2014-03-07 17:31:33 -08:00
Timothy Stack
08374381b2 [partition] use an underline to mark a partition boundary 2014-03-07 06:29:20 -08:00
Timothy Stack
d993d0e8c6 [partition] make partitions a separate bookmark type 2014-03-07 05:20:49 -08:00
Timothy Stack
71328be926 build fix 2014-03-06 07:16:43 -08:00
Timothy Stack
b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-03-06 06:58:49 -08:00
Timothy Stack
86e32f4b45 build fix #2 2014-03-04 08:09:44 -08:00
Timothy Stack
d2b2846a92 build fix... 2014-03-04 08:06:18 -08:00
Timothy Stack
f94015e5b5 [readline] highlight pcre syntax in the search prompt 2014-03-04 07:38:33 -08:00
Timothy Stack
c780ddb9af [mouse] more small fixes for mouse support (dragging) 2014-03-03 21:02:59 -08:00
Timothy Stack
74e7b3b92c [log] squelch file not found message 2014-03-03 06:31:53 -08:00
Timothy Stack
d9fbe4a181 [mouse] small fixes for mouse support 2014-03-03 00:55:01 -08:00
Timothy Stack
c347485834 [config] add more config directories to search 2014-03-02 22:26:41 -08:00
Timothy Stack
fea18347f1 [headless] report output from commands/queries that were executed
Also, add some negative test cases.
2014-03-02 16:52:18 -08:00
Timothy Stack
9848582239 fix an error when parsing json logs 2014-03-02 15:19:34 -08:00
Timothy Stack
169a5bd732 [misc] some more tweaks to the last few changes 2014-03-02 11:56:58 -08:00
Timothy Stack
47041177be Make sure there is a view on the stack 2014-03-02 11:01:33 -08:00
Timothy Stack
5a04a44381 [tests] add some tests that use headless mode 2014-03-02 08:55:00 -08:00
Timothy Stack
10eb9617b1 [sql] add a bookmark column to the log tables 2014-03-01 23:40:12 -08:00
Timothy Stack
7bcbd000ad Add include for time.h 2014-03-01 19:42:59 -08:00
Timothy Stack
64fe8175a6 [log] add an internal logger instead of using redirected stderr 2014-03-01 16:35:30 -08:00
Timothy Stack
e0643fcfc1 [sql] plumb env vars into queries 2014-02-28 21:27:14 -08:00
Timothy Stack
2dd2b02e1b [headless] add options for usage without the UI 2014-02-28 20:35:07 -08:00
Timothy Stack
806b272679 [status] some fixes to the search hit count status 2014-02-26 19:24:34 -08:00
Timothy Stack
83f7013e7f [logline] update for shared_buffer change 2014-02-26 08:12:09 -08:00
Timothy Stack
33fe23a325 [status] show the search hit index in the bottom status bar
I've removed the error/warning counts from the status bar since
they're a little redundant with the new scroll bar stuff.
Removing that stuff also made room to show the search hit
index.

Fixes #68
2014-02-24 16:41:12 -08:00
Timothy Stack
1453c8e787 [sql] do not switch to the DB view if only the log_line column is selected
Fixes #78
2014-02-24 16:05:29 -08:00
Timothy Stack
5b66441378 [doc] update some docs 2014-02-24 15:50:42 -08:00
Timothy Stack
c29d756fd3 [sql] implement the sqlite3 .schema command 2014-02-24 11:43:50 -08:00
Timothy Stack
aac5fada48 [nits] small changes to fix clang analyzer errors 2014-02-23 12:34:57 -08:00
Timothy Stack
7958c54fd0 [sql] use the default sqlite datetime format so collating works 2014-02-23 10:23:17 -08:00
Timothy Stack
034bde1854 Add term_extra.hh to noinst_HEADERS 2014-02-22 23:03:15 -08:00
Timothy Stack
8e884520c0 [misc] tweak scrollbar colors; add auto-complete for strings when typing sql searches; fix ipaddress collator 2014-02-22 22:52:21 -08:00
Timothy Stack
3d72830b74 [scroll] some more scrollbar tweaks 2014-02-20 20:22:20 -08:00
Timothy Stack
601c19a537 [scrollbar] change the look of the scrollbar 2014-02-20 20:01:06 -08:00
Timothy Stack
8a61902622 [valgrind] fix an issue in mvwattrline turned up by valgrind 2014-02-20 07:15:03 -08:00
Timothy Stack
c3e1dda8f7 [sql] fix bug when querying sub-lines 2014-02-19 20:23:19 -08:00
Timothy Stack
c9d3914b6a [cppcheck] fix some nits 2014-02-19 06:29:13 -08:00
Timothy Stack
6a38619ac7 [piper] fix for partial lines when reading stdin 2014-02-19 05:58:31 -08:00
Timothy Stack
1bb17a0b96 [sql] add a collator for log level
Fix for #77
2014-02-18 09:06:50 -08:00
Timothy Stack
8c086c06ae [help] add an option to just display the internal help text
Fixes #67
2014-02-10 07:53:56 -08:00
Timothy Stack
fcaae6af0e [term] set the terminal title
Defect Number:
    Reviewed By:
   Testing Done:
2014-02-10 07:25:28 -08:00
Timothy Stack
55e9dafa79 [search] add autocomplete for tokens in displayed lines 2014-02-09 18:41:32 -08:00
Timothy Stack
8b11813463 [format] cache indexes to pcre named captures 2014-02-09 07:11:58 -08:00
Suresh Sundriyal
cd49dc5226 Static linking related cleanup.
* Remove traces of libcrypto, since we don't use OpenSSL anymore.
* Add libgpm and libtinfo to the list of static_lib_list.
2014-02-06 20:53:11 -08:00
Timothy Stack
3251554cf9 [byte_array] tweak the template so it is easier to use with SpookyHash 2014-02-04 09:26:25 -08:00
Tim Stack
ef88ad1003 Merge pull request #69 from sureshsundriyal/lnav-spooky
Replace SHA-1 with Spookyhash.
2014-02-04 07:24:36 -08:00
Suresh Sundriyal
13f5ad0dce Change the code to use Spookyhash.
* This change removes the external dependency on OpenSSL, which should
  allow the code to compile on Mac OS X without specifying the
  MAC_OS_X_VERSION_MIN_REQUIRED non-sense.
* Spookyhash should be faster than SHA-1's Merkle-Damgård construction.
* Spookyhash is only 128-bits as opposed to SHA-1's 160-bits so memory
  consumption should be less. I doubt it will lead to too many
  collisions.
* The docs are updated to reflect the fact that OpenSSL is not a
  dependency.
2014-02-03 22:36:33 -08:00
Timothy Stack
e08b11ff3d [pcre] try to avoid null chars in log messages 2014-02-03 22:18:58 -08:00
Suresh Sundriyal
35584d6482 Fix Makefile.am to use Spookyhash code. 2014-02-03 22:10:17 -08:00
Suresh Sundriyal
66253b432d Add Spookyhash code.
Add the code to Bob Jenkins' SpookyhashV2 to the repository. The code is
in public domain and available from:
(http://burtleburtle.net/bob/hash/spooky.html)
2014-02-03 22:05:09 -08:00
Timothy Stack
8acba75862 [data-parser] fix test failure 2014-02-01 15:47:15 -08:00
Timothy Stack
e9d8172f61 instantiate templates for other number types 2014-02-01 09:53:29 -08:00
Timothy Stack
5ef8a168a7 [perf] reduce copies of log messages 2014-02-01 06:41:11 -08:00
Timothy Stack
e200f60a96 [format] avoid making a copy of the string in logline_value and reduce UI updates 2014-01-25 12:13:41 -08:00
Timothy Stack
f4aeb11ad5 [view_curses] use a vector for string attributes
Using a map/multimap is too expensive/complex for how many
attributes we have on a line due to how many tree nodes
need to be malloced/freed.  Just using a vector should be
good enough and a lot faster.
2014-01-25 09:29:35 -08:00
Timothy Stack
13ecf0abf7 [date_time] temporary perf hack, parsing timezone is slow... 2014-01-21 06:45:27 -08:00
Timothy Stack
3259bde974 [nits] use pcrepp for filtering and fix sigabrt received when loading is interrupted 2014-01-20 07:18:15 -08:00
Timothy Stack
bd7b14965b [log-data] fix the column type for numbers 2014-01-18 06:46:51 -08:00
Timothy Stack
ccf361775a [cmd] filter pcres should be case-insensitive
Defect Number:
    Reviewed By:
   Testing Done:
2014-01-18 06:40:32 -08:00
Timothy Stack
9906e949cf [overlay] clear overlay when file is removed 2014-01-16 06:37:02 -08:00
Timothy Stack
73bde9dee3 [filter] fix problems with filtering multi-line log messages 2014-01-15 07:05:15 -08:00
Timothy Stack
2fa081c00a [cygwin] more windows nits and cleanup 2014-01-13 22:29:14 -08:00
Timothy Stack
7feeaf0fde highlighting nits and fix filtering
Defect Number:
    Reviewed By:
   Testing Done:
2014-01-13 21:58:04 -08:00
Timothy Stack
71cd99a2bf [cygwin] fix compile issue for test 2014-01-12 19:58:18 -08:00
Timothy Stack
5e011a9203 [cygwin] misc fixes to get things building/running on windows
This change is just a first step, it should get the basics going.  But,
the tests don't all build and there are probably other issues when
running.
2014-01-07 07:35:52 -08:00
Timothy Stack
6968b76825 [key] add g/G for going to the top/bottom of the file
The 'graph' view hotkey has been changed to ctrl-G since it is not
used as much.

  Defect Number:
    Reviewed By:
   Testing Done:
2013-11-24 14:26:10 -08:00
Timothy Stack
9f7ed7f095 [misc] fix the access log format for user names; update config.guess/config.sub
Some miscellaneous fixes.

  Defect Number:
    Reviewed By:
   Testing Done:
2013-11-24 14:21:20 -08:00
Timothy Stack
ef6380d03e [wrap] fix some word-wrap glitches 2013-11-10 07:32:35 -08:00
Timothy Stack
6d7e6bf66f [release] some last minute clean up 2013-11-09 17:34:06 -08:00
Timothy Stack
7df2470624 [wrap] compute line size for logs and cache the value 2013-11-09 17:14:40 -08:00
Timothy Stack
f867b9cc63 [wrap] add a hotkey for word wrap and fix some glitches 2013-11-08 07:32:39 -08:00
Timothy Stack
7eeb45f5e8 Fix a build issue on 32bit 2013-11-06 09:28:14 -08:00
Timothy Stack
c3d51190c8 [wrap] start support for word wrapping and fix a variety of glitches 2013-11-06 07:29:20 -08:00
Timothy Stack
50d50fb5a8 [sql] show single-row results in the command-line and fix some minor fixes 2013-10-29 05:33:39 -07:00
Timothy Stack
7f08e46920 [build] fix os x build issues 2013-10-23 07:01:32 -07:00
Timothy Stack
879c1059aa missing sys/wait.h include 2013-10-11 06:31:17 -07:00
Timothy Stack
30a9d0497e build fix 2013-10-11 06:27:36 -07:00
Timothy Stack
59c1d4313b [mouse] more mouse support and other fixes 2013-10-11 06:22:29 -07:00
Timothy Stack
001f9abdef [cmd] open/close file commands 2013-09-14 12:30:57 -07:00
Timothy Stack
8eb4b02f97 [yajlpp] some optimizations for json log parsing 2013-09-14 06:36:31 -07:00
Timothy Stack
05c62fc7a8 [log_format] some missing initializers 2013-09-10 20:27:14 -07:00
Timothy Stack
968fcb50a5 [cppcheck] some cppcheck nits and other bugs 2013-09-10 20:13:08 -07:00
Timothy Stack
a8c3a8c80b [docs] json format docs and some build fixes 2013-09-10 06:45:48 -07:00
Timothy Stack
c59acba758 [format] initial support for json formats and some bug fixes 2013-09-10 06:20:37 -07:00
Timothy Stack
f61f87e22d [default files] read in all default files and fix some display issues in the text view 2013-09-04 02:14:48 -07:00
Timothy Stack
7d66a64d00 [data-parser] ignore whitespace when computing the schema id
Also add some more terminfo directories.
2013-08-29 19:15:45 -07:00
Timothy Stack
de374e68f6 [build] some more build tweaks 2013-08-28 21:22:04 -07:00
Timothy Stack
22dbcf7796 [build] some lib path ordering and a fix for older linuxes 2013-08-28 18:20:11 -07:00
Timothy Stack
561c881482 [logline] terminate hidden_table_columns array 2013-08-28 08:16:26 -07:00
Timothy Stack
b4ed348428 [build] mostly static linking stuff 2013-08-28 07:28:31 -07:00
Timothy Stack
94ce0ffd83 [docs] more docs and some simple bug fixes 2013-08-25 07:12:41 -07:00
Timothy Stack
ba5b89ffe9 [logline] fix the read of the template line in get_columns and add man page 2013-08-20 18:41:15 -07:00
Timothy Stack
83f94cea86 [log-format] regex config format redux 2013-08-07 06:31:34 -07:00