Commit Graph

353 Commits (8aa72b16e48a11c67659d2a6ec86c823f11aeaff)

Author SHA1 Message Date
Timothy Stack 32f112b8de [formats] add w3c extended log format impl
Fiexes #798
4 years ago
Timothy Stack 19e0624ab6 [debt] even more mem leaks
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack b924395ed2 [debt] fix some mem leaks 4 years ago
Timothy Stack 3a2a1e0dda [sqlite] fallback to prepare_v2 4 years ago
Timothy Stack 22c2e95df0 [filters] sql filter
Related to #568
4 years ago
Timothy Stack 6d0054d3b6 [logfile] refactor visibility 4 years ago
Timothy Stack 2aad7985a6 [build] opt build
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 51d1204a96 [arc] add content hash to archive temp dir and tech debt 4 years ago
Timothy Stack 9d87cfa2f0 [debt] more tech debt 4 years ago
Timothy Stack db8a3c4d38 [debt] doing some cleanup
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 9bfe1f8319 [cmds] include filename in copied log lines when shown
Fixes #789
4 years ago
Timothy Stack df3df8369c [session] stages 4 years ago
Timothy Stack 5e42b4cb8a [debt] include cleanup 4 years ago
Timothy Stack 56866d8a33 [config-ui] support for searching 4 years ago
Timothy Stack 7b77a612c2 [files] make file scanning async 4 years ago
Timothy Stack 3b0168025d [cmds] add support for hiding files 4 years ago
Timothy Stack 9f524136bd [fs] remove old filesystem impl 4 years ago
Timothy Stack d8a083f0fe [filters] add :toggle-filtering command 4 years ago
Timothy Stack 276f71423e [readline] add alternate enter command 4 years ago
Timothy Stack ce0383dee1 [build] fix some warnings 4 years ago
Timothy Stack 8a3fbe6375 [cmds] fix error format strings 4 years ago
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.
4 years ago
Timothy Stack 82b34bb02a [config] remove :save-config 4 years ago
Timothy Stack c5a82240ec [build] try to fix some warnings 4 years ago
Timothy Stack d695febe14 [cmd] add :write-jsonlines-to command 4 years ago
Timothy Stack e0181a0adb [build] fix build when libcurl is available
Fixes #739
4 years ago
Timothy Stack e85fff0b88 [sql] add json_concat() function and misc fixes 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 4 years ago
Timothy Stack 8a0193691f ignore stdin when it is from /dev/null 4 years ago
Timothy Stack 3da3ec799a [session] allow the name 4 years ago
edr 3e82a06302 [delete-filter] Fix issue #701: (Filter deletion before enter) 5 years ago
Timothy Stack 5901c92794 [open-cmd] use line_buffer to load preview data
Fixes #680
5 years ago
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
5 years ago
Timothy Stack e6590e94e2 [highlight] fix highlights
Fix #667
5 years ago
Timothy Stack 02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
5 years ago
Timothy Stack fb7d6eafaf [build] some refactoring of files 5 years ago
Timothy Stack 06d1098211 [config] initial support for themes
For #422

Still more to do
5 years ago
Timothy Stack 33cdbefaaa [help] some online help additions 5 years ago
Timothy Stack 21c5c52843 [format] allow multiple log format patterns per log file
This tries to address #624
5 years ago
Timothy Stack 469124d72b [time-offset] fixes
Defect Number:
    Reviewed By:
   Testing Done:
5 years ago
Timothy Stack 1a932f3a41 [cmds] :q! should quit lnav
Fixes #607
5 years ago
Timothy Stack 3d77fb2acf [cmds] change :write-raw-to to write all the lines in the view
Fixes #606
6 years ago
Timothy Stack 8a3bdbfb2f [filter] fix some glitches 6 years ago
Timothy Stack 814ad03ec9 [view] keep a history of view positions
Fixes #577
6 years ago
Timothy Stack 1a08eb0d12 [cmds] allow commands to set the prompt
Fixes #574 and #573
6 years ago
Timothy Stack 6336fa56e9 [cmds] :write-json-to should passthru JSON columns as JSON instead of strings
Fixes #565
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 b1a6d06490 [lss] refactor the force flag during indexing and some other stuff 6 years ago
Timothy Stack d74f3a13da [lnav_commands] fix attempt to convert uninitialized max_time
Fix #556
6 years ago
Timothy Stack ac7ae1275a [cmds] add :redirect-to command for redirecting the output of commands in scripts
Related to #551
6 years ago
Timothy Stack e5c6c180eb [cmds] fix preview for :write-raw-to 6 years ago
Timothy Stack 5f5e2d5c4e [cleanup] prune some includes and some other cleaning
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack 658931a145 [cleanup] remove cdefs.h include and other stuff
Fix #486
6 years ago
Timothy Stack 9664b015c6 [textview] preserve location in view when changing filters
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
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.
6 years ago
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.
6 years ago
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.
6 years ago
Timothy Stack 00baf0a1d9 [cmds] return an error when :hide-unmarked-lines is run when no lines are marked 6 years ago
Timothy Stack 00ed12557b [keymap] add more keys to the keymap 6 years ago
Timothy Stack c3097db7af [filter] fix some nits in the filter command 6 years ago
Timothy Stack bc8e51914a [hotkey] the "P" hotkey was not toggling the view
Fixes #522
6 years ago
Timothy Stack 5689984702 [yajlpp] use pointer to member over nullobj() 6 years ago
Timothy Stack 36d5ff8b86 [lo-fi] display fixes
Fixes #513
Fixes #516
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 b8fc956677 [search-table] match against the whole line and not just the body 6 years ago
Timothy Stack 7fb881222d [pretty] highlight log messages in the pretty view as in the normal log view 6 years ago
Timothy Stack 697d22705d [generic_log] include more of the line in the body for a generic log message 6 years ago
Timothy Stack 9f91d3b447 [log-view] display the unique parts of the file name instead of just the base
Instead of just displaying the base name of the file, try to include some
additional parts of the path that make a unique string.
6 years ago
Phil Hord 3f7f80e32c Squash various compiler warnings
Unused-result from sensitive APIs, printf/scanf formatting types, set
but never used variables, and uninitialized variables.

Also there's one select(enum) that doesn't cover all cases.
6 years ago
Phil Hord eee7d0ddfc Squash a bunch of signed/unsigned warnings 6 years ago
Timothy Stack ef34a6aaaf [search] display lines matching the search in preview instead of jumping to the first
Jumping around can be disruptive, instead show matches in
the preview window.
6 years ago
Timothy Stack ebf20a746b [commands] fix completion for delete-filter 6 years ago
Timothy Stack b5f5b4137c [search] redo search after filtering
Fixes #480
7 years ago
Suresh Sundriyal 150252e578 [command] Add a ':quit' command.
Add a ':quit' command and add ':q' as the alias for the
quit command.

Closes #470
7 years ago
Timothy Stack e615805ac6 [cmds] remove completion for highlight after clearing
Fixes #465
7 years ago
Timothy Stack 16fd7ec785 [help] remove old command help and add some more filesystem extensions 7 years ago
Timothy Stack 5e8d6aa3a8 [session] add hidden fields to the session
Fixes #433
7 years ago
Timothy Stack a973f7f934 [misc] some more miscellaneous bugs
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack aa21234164 [hist] need to rebuild hist to reflect marks
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack bbf8bdc4ec [search-table] highlight the captured text for preview
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 7e55f7401f [filter-in] highlight matches in green 7 years ago
Timothy Stack 914f4cf4bb [filter-out] show a preview of the filter effects by highlighting matches in red
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 00ebd10d71 [cmds] do a dry-run of a command to check for errors
Defect Number:
    Reviewed By:
   Testing Done:
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 8bf6bf1a65 [cmds] add the format directory to the PATH in the :pipe commands 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 71aa54ad4d [keymap] convert more hotkeys to keymaps
Fixes #416
7 years ago
Timothy Stack 1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
7 years ago
Timothy Stack 89f8ef9c2b [hotkeys] hotkey configuration
First steps to implementing #350
8 years ago
Timothy Stack 04eda90244 [db] missed checking for a null progress callback
Fixes #404
8 years ago
Timothy Stack d799cc227e some tweaks to these changes 8 years ago
Timothy Stack e286534cfc Merge branch 'fix-compile-warnings' of https://github.com/aspiers/lnav into aspiers-fix-compile-warnings 8 years ago
Timothy Stack f567aafe3b [c++11] migration #1
Just a start
8 years ago
Timothy Stack 44d93dddc3 [pretty-print] allow formats to do transforms before pretty-printing
Also started upgrading to C++11.

Fixes #353
8 years ago
Timothy Stack 642a94e7b7 [open] check for FIFOs
Fixes #380
8 years ago
Adam Spiers dc500774a8 fix -Wsign-compare warnings in lnav_commands.cc
Fixes these warnings:

    lnav_commands.cc: In function ‘std::string remaining_args(const string&, const std::vector<std::basic_string<char> >&, size_t)’:
    lnav_commands.cc:67:29: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int lpc = 0; lpc < index; lpc++) {
                                 ^
    lnav_commands.cc: In function ‘std::string com_save_to(std::string, std::vector<std::basic_string<char> >&)’:
    lnav_commands.cc:574:53: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             for (int lpc = 0; lpc < dls.text_line_count(); lpc++) {
8 years ago
Timothy Stack b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 2e68f48a18 [hist] check for zoom with no logs
Fixes #346
8 years ago
Timothy Stack c564beee29 [build] try to silence some warnings 8 years ago
Timothy Stack a4deaa1e8b [spectro] log_time must be in ascending order 8 years ago
Timothy Stack 82f970c09e [config] add a config option to control A_DIM for text
Fixes #298
8 years ago
Suresh Sundriyal e4ef35e652 [commands] Remove eval from the list of sandboxed commands. 8 years ago
Suresh Sundriyal 88833c8035 [commands] Read and honor the 'LNAVSECURE' environment variable.
Read the value of the 'LNAVSECURE' environment variable upfront and
store it in the lnav_data structure. When this variable is set prior to
the binary execution, the following commands are disabled:

* 'open'
* 'pipe-to'
* 'pipe-line-to'
* 'write-*-to'

This is a proposed fix for tstack/lnav#305.
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 9c364bf48e [spectro] add spectro view support for sql results 8 years ago
Timothy Stack 99eb3a54f3 [spectro] support marking lines in a bucket 8 years ago
Timothy Stack fdc2748e3e [spectro] add a spectrogram view that works with known message fields 8 years ago
Timothy Stack 8de5d3b749 [logfile] add more options when opening files 8 years ago
Timothy Stack 2d04d047e4 [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 8 years ago
Timothy Stack d4a69cbf22 no joy
Revert "[sql] change extract() to regexp_match() and make extract() an interface to the data_parser"

This reverts commit 85eee6514b.
8 years ago
Timothy Stack 85eee6514b [sql] change extract() to regexp_match() and make extract() an interface to the data_parser 8 years ago
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.
8 years ago
Timothy Stack 89be76ef42 [filters] clear the state for filters that have been deleted
Fixes #292
8 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack ab62d27757 [cmd] replace wordexp with shlex 9 years ago
Timothy Stack e07b4e448f [exec] add a prompt to execute lnav scripts 9 years ago
Timothy Stack feab733742 [cmd] add reltime possibilities for some commands 9 years ago
Timothy Stack 224a7196e4 [cmd] hide lines commands 9 years ago
Timothy Stack d1bbc433b7 [view] start to refactor the bar chart code 9 years ago
Timothy Stack 4eb797ce9a [hist] start to replace the old hist_source class 9 years ago
Timothy Stack 69e927e91b [coverity] some more fixes 9 years ago
Timothy Stack c3a26ceb6f fix some copy pasta in pt-time commands 9 years ago
Timothy Stack 4f32bddd93 [pt] allow relative times for papertrail time bounds 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack e95bd90dfc [filter] check for too many filters being created 9 years ago
Timothy Stack 2b5447f59c [sql] add a log_search table 9 years ago
Timothy Stack 83b92c3b65 [papertrail] add support for time ranges 9 years ago
Timothy Stack 9df95b33e1 build fix 9 years ago
Timothy Stack cc5e70fb30 [cmd] add help to the command prompt 9 years ago
Timothy Stack e9a96caf09 [papertrail] use the curl_looper 9 years ago
Timothy Stack f286950854 [curl] add a curl looper to handle url requests 9 years ago
Timothy Stack 5ef60412db [pt] pass search query to papertrail 9 years ago
Timothy Stack 6b971ccd66 move stuff out of lnav.cc
Defect Number:
    Reviewed By:
   Testing Done:
9 years ago
Timothy Stack 504b5747fe [sql] add an all_logs table that exposes the message format with values, like numbers, replaced with hashes 9 years ago
Timothy Stack 488d24b847 [pretty] word-wrap should work in the pretty-printer view 9 years ago
Timothy Stack e1874c0278 use poll instead of select so we can handle more than FD_SETSIZE files 9 years ago
Timothy Stack 32e96e6395 [pipe-to] fix some issues when running pipe in headless mode 9 years ago
Timothy Stack 38e56b63ea [hist] fix the histogram when filters change 9 years ago
Suresh Sundriyal 410c2a3cd7 [-Wsign-compare] lnav_commands.cc 9 years ago
Timothy Stack 033c861028 [cmd] next/prev-mark commands 9 years ago
Timothy Stack 44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
9 years ago
Timothy Stack 8fb15e455a [cmd] add a relative-goto command 9 years ago
Timothy Stack ff724e4941 [pipe-to] set env vars for each log line column 9 years ago
Timothy Stack aea0bd54e0 [cmd] add a :redraw command to do a full redraw of the window
Fixes #18
9 years ago
Timothy Stack 12b81fe4e7 [format] fix full message read for json formats 9 years ago
Timothy Stack 1d3481c3fa [cmd] add pipe-to and pipe-line-to commands 9 years ago
Timothy Stack c80e181790 fix ptime_b_slow, again... 9 years ago
Timothy Stack 3158b29cbd [build] fix missing define 10 years ago
Timothy Stack 17db6e38fe add a lo-fi mode
Fixes #113
10 years ago
Timothy Stack a06d620018 [filter] add tests for filtering with append 10 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 45f18bd89c bump version, add some logging, and minor stuff
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 74b49e6f28 [cmd] add tab-completion for text in the view when filtering
Defect Number: fixes #92
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 0ab2400d2d [cmd] add a clear-highlight command
Defect Number: Fixes #109
    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 bf706a136c [cmd] remember closed files
Fixes #96
10 years ago
Timothy Stack d17f7b1940 [cmd] add set-min-log-level command
Part of #82
10 years ago
Timothy Stack cbd8308b36 [cmd] use wordexp in the open command 10 years ago
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.
10 years ago
Timothy Stack 54d979f44f [open] bah, open should work for dirs 10 years ago
Timothy Stack 7b1bb506e2 [open] add some more checks when opening a file 10 years ago
Timothy Stack 9ff6a3cbe9 [write-json] add a command to write results as json 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 5a04a44381 [tests] add some tests that use headless mode 10 years ago
Timothy Stack 64fe8175a6 [log] add an internal logger instead of using redirected stderr 10 years ago
Timothy Stack 2dd2b02e1b [headless] add options for usage without the UI 10 years ago
Timothy Stack 806b272679 [status] some fixes to the search hit count status 10 years ago
Timothy Stack 5b66441378 [doc] update some docs 11 years ago
Timothy Stack aac5fada48 [nits] small changes to fix clang analyzer errors 11 years ago
Timothy Stack c3e1dda8f7 [sql] fix bug when querying sub-lines 11 years ago
Timothy Stack 3259bde974 [nits] use pcrepp for filtering and fix sigabrt received when loading is interrupted 11 years ago
Timothy Stack ccf361775a [cmd] filter pcres should be case-insensitive
Defect Number:
    Reviewed By:
   Testing Done:
11 years ago
Timothy Stack f867b9cc63 [wrap] add a hotkey for word wrap and fix some glitches 11 years ago
Timothy Stack c3d51190c8 [wrap] start support for word wrapping and fix a variety of glitches 11 years ago
Timothy Stack 59c1d4313b [mouse] more mouse support and other fixes 11 years ago
Timothy Stack 001f9abdef [cmd] open/close file commands 11 years ago
Timothy Stack c59acba758 [format] initial support for json formats and some bug fixes 11 years ago
Timothy Stack 729c842ca5 [session] saving bookmarks 11 years ago
Timothy Stack 2772064c7f [nits] minor tweaks and bug fixes 11 years ago
Timothy Stack 275724e912 missed a change to summarize 11 years ago
Timothy Stack 3e480b5bad [bookmark] add support for metadata attached to bookmarks 11 years ago
Timothy Stack 79c4038128 [log time] add a command to adjust log message times 11 years ago
Timothy Stack 0306287c1a [misc] use localtime in timestamp for stdin; collate in summarize; <END> moves to the last line 11 years ago
Timothy Stack 5ba26cc5f7 [hist] cleanup the hist_source and add support for graphing a single column at a time 11 years ago
Timothy Stack 6535b03b6e [log] try to cache the results of filtering so we do not always recompute 11 years ago
Timothy Stack 5a7d6dab2c [cleanup] uncrustify 11 years ago
Timothy Stack 5ba3097ee7 [cleanup] move some code around and try to pretty things up a bit 11 years ago
Timothy Stack 178937886c [cmd] add summarize command 11 years ago
Timothy Stack a4792841da [test] add-test command 11 years ago
Timothy Stack e5d9779cde [session] save bookmarks 11 years ago
Timothy Stack 88bfda4a3d [bugs] use wordexp 11 years ago
Timothy Stack 0dba72db71 [nits] fix some minor bugs and add some path manipulation functions to sqlite 11 years ago
Timothy Stack 44f75111b1 [sqlite] prefix the column names with 'log_' and add a 'create-logline-table' command 11 years ago
Timothy Stack 865849f017 [spam] uncrustify pass 11 years ago
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.
11 years ago