1
1
mirror of https://github.com/tstack/lnav.git synced 2024-09-11 13:05:51 +03:00
Commit Graph

296 Commits

Author SHA1 Message Date
Timothy Stack
ae460526da [tests] disable test_view_colors for now 2018-08-18 23:20:12 -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
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
ab2980f5dd [build] remove meta-sessions test dir 2018-05-17 07:37:58 -07:00
Timothy Stack
4ccae48aea [bookmarks] add support for tags and comments for log lines
Initial work for #446 and #447
  TODO: filtering on tags/comments

Also did a bunch of clang-tidy cleanups and improvements to
the online help.
2018-05-17 07:06:50 -07:00
Timothy Stack
1ed0ff7e0f [pretty-print] check if lines are XML before indenting them as such
Also, update the scanner for changes to re2c
2018-04-02 13:25:07 -07:00
Timothy Stack
5e4ca5bbed [test] comment out mvwattrline test for now 2017-08-01 10:35:33 -07:00
Timothy Stack
753e12d606 [unicode] do not clobber wide chars when applying attributes
Attempt to address #414
2017-08-01 10:17:30 -07:00
Timothy Stack
9d249004ac [time-offset] add days to offset
Fixes #435
2017-04-25 05:41:14 -07:00
Timothy Stack
6306659362 [test] remove extra test 2017-04-24 10:31:07 -07:00
Timothy Stack
ef5347b0eb [build] even more 2017-04-24 07:50:24 -07:00
Timothy Stack
4fb6e24be9 [build] one more time 2017-04-24 07:34:29 -07:00
Timothy Stack
c3688e87f7 [build] fix some tests
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-24 07:29:55 -07:00
Timothy Stack
36e46fc67b [log] do a full sort if there is a year rollover
Fixes #437
2017-04-24 07:03:46 -07:00
Timothy Stack
7f5916d480 [crash] call endwin() after a crash
Fixes #438
2017-04-24 06:36:17 -07:00
Timothy Stack
9764cb1a93 [loader] add line numbers for parse errors
Fixes #442
2017-04-24 06:18:04 -07:00
Timothy Stack
8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 07:11:21 -07:00
Timothy Stack
4cedde9a43 [help] add builtin help to the main help text as a reference
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-14 22:49:36 -07:00
Timothy Stack
407c5c67b1 [build] missed some new files 2017-04-06 23:20:02 -07:00
Timothy Stack
78119dc9f1 fixing some minor issues
Fixes #255
2017-04-05 07:05:19 -07:00
Timothy Stack
8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
2017-03-26 06:02:53 -07:00
Timothy Stack
c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
2017-03-04 15:22:19 -08:00
Timothy Stack
89f8ef9c2b [hotkeys] hotkey configuration
First steps to implementing #350
2017-01-21 07:41:28 -08:00
Timothy Stack
93848faae7 add new file to dist 2016-12-06 07:14:54 -08:00
Timothy Stack
44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
2016-12-05 16:34:30 -08:00
Timothy Stack
fb4e66e0b5 [build] package logfile_epoch.1 2016-11-22 10:02:38 -08:00
Timothy Stack
b216993760 [tests] missed a format file in the makefile 2016-08-23 06:50:01 -07:00
Timothy Stack
5539e21c05 [log-format] fix line-format where a variable can span lines
Fixes #337
2016-08-23 06:34:18 -07:00
Timothy Stack
c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
2016-08-22 06:45:27 -07:00
Timothy Stack
8dbf018814 [loader] the loader was not converting the level name to the enum value correctly
Closes #329
2016-06-30 21:59:51 -07:00
Timothy Stack
5ea5504aec [time] fix time rollover for days
Fixes #304
2016-05-03 06:43:00 -07:00
Timothy Stack
82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
2016-05-01 20:35:37 -07:00
Timothy Stack
3167302722 [data-parser] fix some issues with parsing hierarchical data and improve the debugger 2016-04-28 23:34:13 -07:00
Timothy Stack
4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
2016-04-02 20:58:20 -07:00
Timothy Stack
a384e240f9 missed updating the makefile 2016-03-27 15:28:47 -07:00
Timothy Stack
cdd43549ab [cmds] automatically capture echo/write output from scripts so they can generate reports
Add another example script, dhclient-summary.

Add a 'search-table' section to formats so you can automatically
define a search-based table.
2016-03-06 23:58:37 -08:00
Timothy Stack
a2b381ca19 [config] initial impl with clock-format as the only option at the moment 2016-01-05 06:18:58 -08:00
Timothy Stack
e5f786bc2c [script] add metadata to script files 2015-12-28 20:30:04 -08:00
Timothy Stack
6e196bff79 [line_buffer] clear cached data when doing a read 2015-12-22 22:44:42 -08:00
Timothy Stack
150590cfd6 [build] missing files from dist 2015-12-19 06:18:47 -08:00
Timothy Stack
e07b4e448f [exec] add a prompt to execute lnav scripts 2015-12-18 22:39:27 -08:00
Timothy Stack
64cbab1281 [sql] exec .sql files in format dirs 2015-11-26 22:19:53 -08:00
Timothy Stack
65a4803955 [tests] some more test fixes 2015-11-15 06:25:08 -08:00
Timothy Stack
f11cca2366 [sql] add a timeslice() function 2015-10-03 14:58:01 -07:00
Timothy Stack
ec473edc85 [cmd] add support for times in goto 2015-09-14 08:56:42 -07:00
Timothy Stack
399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
2015-08-26 21:28:30 -07:00
Timothy Stack
25a375f08d [misc] fix various bugs 2015-08-19 21:02:26 -07:00
Timothy Stack
0d37a8c142 [text] pretty-printing should work in the text view 2015-08-18 20:58:20 -07:00
Timothy Stack
1ad3966a95 [tests] add a couple more tests for the loader 2015-08-12 22:34:41 -07:00
Timothy Stack
bedae8c8c2 [fmt] install/update formats from git repos
Fixes #244
2015-08-09 21:03:23 -07:00
Timothy Stack
f286950854 [curl] add a curl looper to handle url requests 2015-08-02 06:43:57 -07:00
Timothy Stack
9496a960f6 [check] print the partial match of non-matching lines when checking a log file 2015-07-20 06:33:52 -07:00
Timothy Stack
27bb9bb2ee [fmt] highlight identifiers in module formats 2015-07-19 02:40:02 -07:00
Timothy Stack
7ef92dab79 [format] try to validate formats against a given file 2015-07-11 16:32:48 -07:00
Timothy Stack
cec3d0cb72 [generic_log] add time format that includes zone 2015-05-17 05:15:41 -07:00
Timothy Stack
94459f2cb1 [generic_log] fix log levels for generic_log 2015-05-01 20:52:00 -07:00
Timothy Stack
b01b962ea7 [build] forgot to add some new data files 2015-04-26 07:12:30 -07:00
Suresh Sundriyal
5cd1da8e1a [pretty] More restrictive IPv4 regex.
The regular expression seems to match arbitrary version strings in
pretty-print view. Adding a more restrictive regular expression,
that should be able to distinguish between valid IPv4 addresses and
arbitrary version strings.
2015-04-19 00:00:43 -07:00
Suresh Sundriyal
ace51f0848 [build] Get rid of the sqlite3 dependency. 2015-04-16 00:28:31 -07:00
Suresh Sundriyal
b2959ce6bd Revert "[build] Remove the build dependency on 'sqlite3' command-line tool."
This reverts commit ce7a32b587.
2015-04-12 16:39:03 -07:00
Suresh Sundriyal
ce7a32b587 [build] Remove the build dependency on 'sqlite3' command-line tool. 2015-04-12 00:24:51 -07:00
Timothy Stack
1c41731c33 remove -Werror=sign-compare for now since it's not supported on some older compilers 2015-04-11 11:31:07 -07:00
Suresh Sundriyal
d9a85507af [build] Fix the broken 'make distcheck' target. 2015-04-11 00:52:06 -07:00
Timothy Stack
0b232a7588 [headless] multiline support for command files 2015-04-07 22:13:44 -07:00
Timothy Stack
269dfac33e [build] missed adding test file to makefile 2015-04-07 21:37:25 -07:00
Suresh Sundriyal
c64ec91eb5 [build] Fix 'make distcheck'/package logfile_vami.0 2015-04-05 13:19:45 -07:00
Timothy Stack
a300ce9977 [format] order the formats based on sample matches 2015-04-05 07:12:20 -07:00
Suresh Sundriyal
fc91faaa00 Enable '-Werror' on the tests. 2015-04-05 00:34:36 -07:00
Suresh Sundriyal
bfee33b7fd Turn on 'sign-compare' error check for tests. 2015-04-05 00:23:25 -07:00
Suresh Sundriyal
89cc9e09fd [build] Fix 'make distcheck' 2015-04-04 15:17:57 -07:00
Suresh Sundriyal
707ccce9c0 [build] Stop readline macro from polluting the environment variables. 2015-03-29 01:19:51 -07:00
Timothy Stack
44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
2015-03-28 06:30:30 -07:00
Suresh Sundriyal
ed0baf7c1c [build] Add custom silent rules.
Add custom silent rules for ptime/bin2c/sqlite3/rm commands.
2015-03-25 03:03:34 -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
c2e44c5998 [filter] fix for multiple filter-ins being applied 2014-12-10 07:03:01 -08:00
Timothy Stack
17db6e38fe add a lo-fi mode
Fixes #113
2014-11-11 08:44:44 -08:00
Timothy Stack
eef375c525 [build] cleanup a test file 2014-11-06 20:41:25 -08:00
Timothy Stack
c7cd0961ab [build] make dist fixes 2014-11-03 20:41:38 -08:00
Timothy Stack
ccf29b3bac [coverity] some cleanup and add the chunky_index 2014-09-28 22:36:07 -07:00
Timothy Stack
1974e1f1ae [jsonptr] initial impl 2014-05-05 06:44:58 -07:00
Timothy Stack
b58438875d [concise] initial impl 2014-04-20 10:40:28 -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
2781a63cfb [build] set HOME during tests to a known writable dir
Defect Number:
    Reviewed By:
   Testing Done:
2014-04-05 23:08:33 -07:00
Timothy Stack
788ce43f6b remove an errant -lcrypto in the build 2014-04-05 22:56:02 -07: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
21754b8b9d [test] update the listview test 2014-03-28 21:02:09 -07:00
Timothy Stack
8372cef11c [date] code generator for strptime formats 2014-03-22 08:02:48 -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
9ff2d3774d [line_buffer] split long lines
Fixes #81
2014-03-15 04:40:58 -07:00
Timothy Stack
44970b5800 [data] version regex tweak 2014-03-11 03:49:47 -07:00
Timothy Stack
b34a314098 [data] fix scanning for times 2014-03-09 12:55:02 -07:00
Timothy Stack
f77b601e9a [view_curses] add some tests for mvwattrline 2014-03-08 05:26:49 -08:00
Timothy Stack
dbc96dc67c [session] preserve time-offset log-view setting 2014-03-07 21:53:24 -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
e026d7d657 fix for scripty build 2014-03-06 07:21:08 -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
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
5a04a44381 [tests] add some tests that use headless mode 2014-03-02 08:55:00 -08:00
Timothy Stack
601c19a537 [scrollbar] change the look of the scrollbar 2014-02-20 20:01:06 -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
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
59c1d4313b [mouse] more mouse support and other fixes 2013-10-11 06:22:29 -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
de374e68f6 [build] some more build tweaks 2013-08-28 21:22:04 -07:00
Timothy Stack
b4ed348428 [build] mostly static linking stuff 2013-08-28 07:28:31 -07:00
Timothy Stack
dc0a0c49fc [build] some makefile cleanup 2013-07-28 14:33:11 -07:00
Timothy Stack
f801470fa5 [log format] more log formats 2013-07-09 06:51:18 -07:00
Timothy Stack
57deb82f70 [sql] add startswith/endswith functions 2013-07-06 09:16:01 -07:00
Timothy Stack
79c4038128 [log time] add a command to adjust log message times 2013-06-30 16:43:08 -07:00
Timothy Stack
2d33cb7f7e [log format] some more log format work 2013-06-29 11:00:34 -07:00
Timothy Stack
2cd356b4c5 [log format] some more work to externalize log formats; color identifiers in logs 2013-06-29 06:22:24 -07:00
Timothy Stack
bb62711678 [yajlpp] support for array indexes in paths; also force log times to be in order 2013-06-25 18:52:51 -07:00
Timothy Stack
af3d2a432f [sql] add a logline_datetime function 2013-06-22 07:55:49 -07:00
Timothy Stack
d72cab0c1e [log_format] the access_log format wasn't picking up the timestamp range correctly 2013-06-22 07:00:59 -07:00
Timothy Stack
c54c2dd508 [hotkey/status] use 9/( as spatial hotkeys and tweak the status lines 2013-06-14 06:49:00 -07:00
Timothy Stack
61d3af6e62 [parsing] fix some bugs and improve performance of the scanner 2013-06-11 21:10:59 -07:00
Vagrant User
988fe187b6 [build] freebsd build fixes 2013-06-10 06:39:52 -07:00
Timothy Stack
8f0aac9dbd [test] add a test for the ansi scrubber 2013-06-08 10:51:54 -07:00
Timothy Stack
8754b45699 [textview] cleanup the ansi scrubber 2013-06-08 07:57:40 -07:00
Timothy Stack
5d478fc17a [cleanup] start a tracer/debugger for the data parser 2013-06-08 06:10:18 -07:00
Timothy Stack
5ba3097ee7 [cleanup] move some code around and try to pretty things up a bit 2013-06-06 07:01:32 -07:00
Timothy Stack
a4792841da [test] add-test command 2013-06-03 07:45:19 -07:00
Timothy Stack
9304add25b [session] start session support 2013-05-31 08:01:31 -07:00
Timothy Stack
5bc8ebea96 [fs sql func] multi-argument joinpath and add some tests 2013-05-29 07:28:57 -07:00
Timothy Stack
3128dc772c [sqlite] Major improvements to the sqlite integration.
This is a checkpoint of the improvements to the sqlite integration.  The
data_parser stuff should be much better now and I've tried to improve
other parts of the user experience as well.
2013-05-24 07:55:56 -07:00
Timothy Stack
b04e6bfc78 [glog] some tweaks to the glog change
Some changes to the glog_log sql table:

  * Removed the 'glog_level' field since the standard one should be able to
    handle everything now.
  * Changed the 'file' column to 'src_file' and added a 'src_line' column.
  * Added the sample glog log content to the test directory.
2013-05-17 17:44:55 -07:00
Timothy Stack
8d23b92e42 [build] rerun autogen on travis 2013-04-19 07:03:42 -07:00
Timothy Stack
458a42fcc9 [autogen] do not install bin2c and rerun autogen 2013-04-18 22:46:49 -07:00
Timothy Stack
8065d9bcfd [doc] add a markdown readme file 2013-04-09 22:36:08 -07:00
Timothy Stack
c6c19eabb5 [generic log format/misc] try to pull millisecond value out of the log
* log_format.cc, log_format_impls.cc, log_format.hh: Change
   log_scanf to return a pointer to the character in the
   time string that was not part of the time.  Change the
   generic log format to try and pull out the millisecond
   value from the timestamp.
 * test/Makefile.am: Fix some dist problems.
 * test/logfile_generic.0: Test logfile for the generic log format.
2012-07-03 12:01:09 -07:00
Timothy Stack
b68a1bba9b [test] some cleanup for tests and other things
Just a cleanup pass
2012-06-05 13:18:59 -07:00
Timothy Stack
8c06e7bed0 [mouse] first pass at mouse support 2012-04-24 14:31:35 -07:00
Timothy Stack
c30a0d5f62 more progress on extracting data from log files 2011-06-18 13:42:07 -07:00
Timothy Stack
cd8f0bfddb some incremental data extraction changes 2011-06-13 20:07:39 -07:00
Tim Stack
fff3f736be a start at extracting data from files 2011-06-13 07:46:03 -07:00
Tim Stack
44e8abc593 Some more sequence matching stuff. 2011-06-05 19:05:46 -07:00
Tim Stack
e3d2d41aba a start at doing sequence matching 2011-06-01 07:28:46 -07:00
Timothy Stack
34918c606b Some cleanup for pcrepp. 2010-04-25 21:12:25 -07:00
Timothy Stack
88889954b8 Fix a bunch of bugs. Add horizontal search support. 2010-02-23 20:35:52 -08:00
Timothy Stack
abe0182a0b tcsh fix and distcheck 2010-01-02 12:28:14 -08:00
Timothy Stack
7a2855349a remove soci 2009-10-06 14:14:49 -07:00
tstack
905b33d9a6 fix make distcheck 2009-09-29 16:21:33 -07:00
tstack
b4ec432515 first commit 2009-09-13 18:07:32 -07:00