Commit Graph

127 Commits

Author SHA1 Message Date
Timothy Stack
7e538c85f9 [tests] try to fix breakage 2020-04-25 13:30:28 -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
07f4b56646 [tests] update some expected results
so lazy...
2020-01-17 05:43:15 -08:00
Timothy Stack
2fa603d07e [tests] fix a test 2019-03-15 22:38:10 -07:00
Timothy Stack
0e12f98ae7 [sql] change base_time to time_offset 2019-03-12 22:41:39 -07:00
Timothy Stack
469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
2019-03-12 07:06:31 -07: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
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
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
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
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
8b9536100e [build] fix a typo in test_sql.sh 2018-10-17 07:54:59 -07:00
Timothy Stack
2c36d97a35 [build] try some more things to fix travis test failures 2018-08-22 05:55:58 -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
086eb2e552 [build] update news and fix test failure 2018-07-22 07:27:59 -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
a741236c76 [sql] missed a null check on log_time in vt_filter
Fixes #518
2018-05-22 06:45:54 -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
7f99955cbc [misc] fix a perf issue when previewing commands and some sql fixes 2018-02-07 11:06:59 -08:00
Timothy Stack
bdcfc5cfdd [misc] rounding some corners 2018-01-08 10:03:11 -08:00
Timothy Stack
485a931793 [headless] always switch to the DB view after executing a SQL command, even if the result set is empty 2017-08-18 21:46:38 -07:00
Timothy Stack
a9fd0e37f6 [formats] add rfc5424 syslog format
Fixes #444
2017-04-29 07:31:55 -07:00
Timothy Stack
f0c884ddc3 [build] another bro log test fix 2017-04-23 16:05:26 -07:00
Timothy Stack
867504b2b5 [build] try to fix some tests
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-23 15:57:24 -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
16fd7ec785 [help] remove old command help and add some more filesystem extensions 2017-04-16 15:07:41 -07:00
Timothy Stack
a973f7f934 [misc] some more miscellaneous bugs
Defect Number:
    Reviewed By:
   Testing Done:
2017-04-12 15:54:54 -07:00
Timothy Stack
035460eb61 update expected output 2017-04-10 23:04:50 -07:00
Timothy Stack
6fcfd35395 [sql] add "search" column to the lnav_views table
Fixes #388
2017-03-26 07:28:08 -07:00
Timothy Stack
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
c0684a97cc [sql] add a regexp_capture tablue-valued function
Fixup the release makefile a bit.
2017-03-15 17:01:58 -07:00
Timothy Stack
f6138662ae [test] update test for vtab change 2017-03-14 07:31:31 -07:00
Timothy Stack
fa296fca1b [listview] get a batch of rows from the source instead of a single one at a time
Also: bump to c++14 and added a helper template for creating sqlite virtual tables
2017-03-14 06:05:46 -07:00
Timothy Stack
32c9dacd0a [files_vtab] add a vtable for opened files
Defect Number:
    Reviewed By:
   Testing Done:
2017-03-08 13:51:07 -08: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
04eda90244 [db] missed checking for a null progress callback
Fixes #404
2017-01-18 06:17:55 -08:00
Timothy Stack
b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
2016-10-25 06:42:05 -07:00
Tim Stack
91633d089f Merge pull request #320 from sureshsundriyal/db-attach
[secure-mode] Disallow ATTACH statements completely.
2016-05-04 21:18:33 -07:00
Suresh Sundriyal
6663740c5e [secure-mode] Disallow ATTACH statements completely.
The code to handle in-memory db exceptions is hideous and unreliable,
given the fact that SQLite does not expose much in terms of getting the
current value and the methods to check the compile time options can
themselves be disabled by a compile=time option in SQLite.

There really isn't much use for in-memory databases and if someone
really needs it, they can always choose to run in normal mode, so just
remove the extra code.
2016-05-04 20:21:01 -07:00
Tim Stack
1850c4f678 Merge pull request #318 from sureshsundriyal/db-attach
[secure-mode] Prevent users from attaching db files.
2016-05-03 10:37:03 -07:00
Timothy Stack
a4deaa1e8b [spectro] log_time must be in ascending order 2016-05-02 22:59:04 -07:00
Suresh Sundriyal
1e6878164f [secure-mode] Refactoring and check for sqlite version.
'mode=memory' query parameter is only supported from sqlite3 version
3.8.0 onwards. Make sure to check for the version before continuing with
the 'ATTACH' statement.

Turning off some of the tests, since they fail on the Travis CI setup
which uses sqlite version 3.6.0.
2016-05-02 21:43:11 -07:00
Suresh Sundriyal
e6c87678e9 [secure-mode] Prevent users from attaching db files.
Prevent the users from attaching an external db file which they may not
have ownership of.

The current authorizer method is hooked in only when the LNAVSECURE
variable is set. This is done deliberately, since the method will be
called on every sqlite query and I did not want to incur a performance
hit.

If the scope of this authorizer increases, we should consider passing in
the lnav_data as pUserData and do the checks inside the authorizer
itself.
2016-05-02 20:58:20 -07:00
Timothy Stack
a8cd28097b [spectro] add some better error messages for the spectrogram command and fix some vtable glitches 2016-04-08 06:21:58 -07:00
Timothy Stack
fdc2748e3e [spectro] add a spectrogram view that works with known message fields 2016-03-20 15:15:50 -07:00
Timothy Stack
53e2d92eef [ui] highlight out-of-time-order messages in yellow with an underline 2016-03-03 06:05:26 -08:00
Timothy Stack
68070678b5 try to fix test error 2016-01-05 06:41:33 -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
87b07a0087 [sql] allow log_part to be updated 2015-12-22 05:27:36 -08:00
Timothy Stack
5a718bc0ec [sql] missed checking for null in graphable columns 2015-11-29 20:10:40 -08:00
Timothy Stack
64cbab1281 [sql] exec .sql files in format dirs 2015-11-26 22:19:53 -08:00
Timothy Stack
c0fc73d4ea [tests] fix test_sql.sh 2015-11-15 06:16:59 -08:00
Timothy Stack
3996eef593 use an empty file 2015-11-14 22:47:04 -08:00
Timothy Stack
3c9ba126a9 [glob] ignore files picked up by a glob that are not readable 2015-11-14 22:17:59 -08:00
Timothy Stack
6cb42fc690 the log_search table regex should be case-insensitive 2015-11-03 22:17:11 -08:00
Timothy Stack
99d103cd58 [logline] add a log_msg_instance column to the table 2015-10-02 21:24:52 -07:00
Timothy Stack
399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
2015-08-26 21:28:30 -07:00
Timothy Stack
9139e6de5b [search-table] guess the column types based on the regex 2015-08-07 20:04:28 -07:00
Timothy Stack
2b5447f59c [sql] add a log_search table 2015-08-05 23:18:19 -07:00
Timothy Stack
6f26aa7f3e [sql] multiline text was not returned correctly 2015-08-04 21:49:13 -07:00
Timothy Stack
d2d8c75135 [sql] add an lnav_views table 2015-07-22 07:09:51 -07:00
Timothy Stack
27bb9bb2ee [fmt] highlight identifiers in module formats 2015-07-19 02:40:02 -07:00
Suresh Sundriyal
ace51f0848 [build] Get rid of the sqlite3 dependency. 2015-04-16 00:28:31 -07:00
Suresh Sundriyal
9894db83be [test] Add tests for attaching to sqlite3 db.
* Test for attaching db when passed in through as a command line
  argument.
* Test for attaching db from within lnav.
2015-04-13 23:41:40 -07:00
Timothy Stack
c58f44bb3f [headless] completely read stdin in headless mode before running commands 2015-04-06 02:53:53 -07: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
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -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
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
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
9588901171 Ensure the logfile_syslog.0 timestamp is from 2013 since the year is inferred from that. 2014-03-02 11:07:41 -08:00
Timothy Stack
5a04a44381 [tests] add some tests that use headless mode 2014-03-02 08:55:00 -08:00