Commit Graph

133 Commits (36ab5e1e8b703115e0d975ef0e88305b83295833)

Author SHA1 Message Date
Timothy Stack 22c2e95df0 [filters] sql filter
Related to #568
4 years ago
Timothy Stack 6d0054d3b6 [logfile] refactor visibility 4 years ago
Timothy Stack 3b0168025d [cmds] add support for hiding files 4 years ago
Timothy Stack 65c991919b [loader] fix format loader and add $schema refs to formats 4 years ago
Timothy Stack ba1bc28209 [build] fix issues with test files 4 years ago
Timothy Stack 99a8eb9850 [build] try again 4 years ago
Timothy Stack 7e538c85f9 [tests] try to fix breakage 4 years ago
Timothy Stack 3da3ec799a [session] allow the name 4 years ago
Timothy Stack 138a506b1a [perf] a few performance tweaks 4 years ago
Timothy Stack 0744a9b6de [docs] mention the view tables
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 07f4b56646 [tests] update some expected results
so lazy...
5 years ago
Timothy Stack 2fa603d07e [tests] fix a test 5 years ago
Timothy Stack 0e12f98ae7 [sql] change base_time to time_offset 5 years ago
Timothy Stack 469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
5 years ago
Timothy Stack 4614cbcb75 [sql] fix joins on some vtables 5 years ago
Timothy Stack 43243c7ba3 [build] revive freebsd release build
Some misc fixes for filtering as well
5 years ago
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.
5 years ago
Timothy Stack 659f01c9ae [filters] add a log_filters column to log tables that contains the matched filters
Related to #597
5 years ago
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
6 years ago
Timothy Stack 2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
6 years ago
Timothy Stack 8b9536100e [build] fix a typo in test_sql.sh 6 years ago
Timothy Stack 2c36d97a35 [build] try some more things to fix travis test failures 6 years ago
Timothy Stack bc26b92199 [json] some more journald log tweaks
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack 086eb2e552 [build] update news and fix test failure 6 years ago
Timothy Stack 0ee6bdd5bf [sql] the log_part column was not correct in some cases 6 years ago
Timothy Stack a741236c76 [sql] missed a null check on log_time in vt_filter
Fixes #518
6 years ago
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.
6 years ago
Timothy Stack 7f99955cbc [misc] fix a perf issue when previewing commands and some sql fixes 6 years ago
Timothy Stack bdcfc5cfdd [misc] rounding some corners 7 years ago
Timothy Stack 485a931793 [headless] always switch to the DB view after executing a SQL command, even if the result set is empty 7 years ago
Timothy Stack a9fd0e37f6 [formats] add rfc5424 syslog format
Fixes #444
7 years ago
Timothy Stack f0c884ddc3 [build] another bro log test fix 7 years ago
Timothy Stack 867504b2b5 [build] try to fix some tests
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 16fd7ec785 [help] remove old command help and add some more filesystem extensions 7 years ago
Timothy Stack a973f7f934 [misc] some more miscellaneous bugs
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 035460eb61 update expected output 7 years ago
Timothy Stack 6fcfd35395 [sql] add "search" column to the lnav_views table
Fixes #388
7 years ago
Timothy Stack 8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack c0684a97cc [sql] add a regexp_capture tablue-valued function
Fixup the release makefile a bit.
7 years ago
Timothy Stack f6138662ae [test] update test for vtab change 7 years ago
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
7 years ago
Timothy Stack 32c9dacd0a [files_vtab] add a vtable for opened files
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
7 years ago
Timothy Stack 04eda90244 [db] missed checking for a null progress callback
Fixes #404
8 years ago
Timothy Stack b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Tim Stack 91633d089f Merge pull request #320 from sureshsundriyal/db-attach
[secure-mode] Disallow ATTACH statements completely.
8 years ago
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.
8 years ago
Tim Stack 1850c4f678 Merge pull request #318 from sureshsundriyal/db-attach
[secure-mode] Prevent users from attaching db files.
8 years ago
Timothy Stack a4deaa1e8b [spectro] log_time must be in ascending order 8 years ago
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.
8 years ago
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.
8 years ago
Timothy Stack a8cd28097b [spectro] add some better error messages for the spectrogram command and fix some vtable glitches 8 years ago
Timothy Stack fdc2748e3e [spectro] add a spectrogram view that works with known message fields 8 years ago
Timothy Stack 53e2d92eef [ui] highlight out-of-time-order messages in yellow with an underline 8 years ago
Timothy Stack 68070678b5 try to fix test error 9 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack 87b07a0087 [sql] allow log_part to be updated 9 years ago
Timothy Stack 5a718bc0ec [sql] missed checking for null in graphable columns 9 years ago
Timothy Stack 64cbab1281 [sql] exec .sql files in format dirs 9 years ago
Timothy Stack c0fc73d4ea [tests] fix test_sql.sh 9 years ago
Timothy Stack 3996eef593 use an empty file 9 years ago
Timothy Stack 3c9ba126a9 [glob] ignore files picked up by a glob that are not readable 9 years ago
Timothy Stack 6cb42fc690 the log_search table regex should be case-insensitive 9 years ago
Timothy Stack 99d103cd58 [logline] add a log_msg_instance column to the table 9 years ago
Timothy Stack 399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
9 years ago
Timothy Stack 9139e6de5b [search-table] guess the column types based on the regex 9 years ago
Timothy Stack 2b5447f59c [sql] add a log_search table 9 years ago
Timothy Stack 6f26aa7f3e [sql] multiline text was not returned correctly 9 years ago
Timothy Stack d2d8c75135 [sql] add an lnav_views table 9 years ago
Timothy Stack 27bb9bb2ee [fmt] highlight identifiers in module formats 9 years ago
Suresh Sundriyal ace51f0848 [build] Get rid of the sqlite3 dependency. 9 years ago
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.
9 years ago
Timothy Stack c58f44bb3f [headless] completely read stdin in headless mode before running commands 9 years ago
Timothy Stack 671dca60dc [cmd] do not error out if filter exists, just enable it
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack 353dfec878 [sql] add an environ virtual table
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 08374381b2 [partition] use an underline to mark a partition boundary 10 years ago
Timothy Stack d993d0e8c6 [partition] make partitions a separate bookmark type 10 years ago
Timothy Stack fea18347f1 [headless] report output from commands/queries that were executed
Also, add some negative test cases.
10 years ago
Timothy Stack 9588901171 Ensure the logfile_syslog.0 timestamp is from 2013 since the year is inferred from that. 10 years ago
Timothy Stack 5a04a44381 [tests] add some tests that use headless mode 10 years ago