Commit Graph

294 Commits (45b7a6c33f52bf30dd4f29c7ee3ef6bda1f8c498)

Author SHA1 Message Date
Timothy Stack 3741985ee3 [format] allow leading slash in field names
Fixes #852
3 years ago
Timothy Stack 6749d6b53c [pretty-print] fix issue with rewrite
Fixes #845
3 years ago
Timothy Stack d45d7d6c58 [docs] add report generation to cookbook 3 years ago
Timothy Stack f5e88b7158 [docs] add ARCHITECTURE.md and various other things 3 years ago
Timothy Stack 351ad7a8fc [xml/xpath] suggest xpath() calls for xml fields 3 years ago
Timothy Stack 49ebde5953 [build] remove pcrecpp and other stuff
Linking against a binary c++ lib suuuucckkkkkssss...
3 years ago
Timothy Stack e5f37ee3ff [perf]
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 8235f9af5d [tests] try to make scripty output readable 4 years ago
Timothy Stack 1cefe583fa [debt] fix a leak in lnav_view_filters 4 years ago
Timothy Stack 2996a90afa [format] use the module level for a message 4 years ago
Timothy Stack 9ed3a80326 [build] minor fixes 4 years ago
Timothy Stack 4ff2b710d5 [log_format] change w3c_log to put extra columns into a JSON column 4 years ago
Timothy Stack a0986bf271 [log_formats] ignore empty lines in non-multiline formats 4 years ago
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 8e629b166a [build] some more compiler profiling
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 5e42b4cb8a [debt] include cleanup 4 years ago
Timothy Stack 7b77a612c2 [files] make file scanning async 4 years ago
Timothy Stack 7763d2db7a [cross] try to fix armhf
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack c3646be987 [build] fix some issues on 32-bit arch 4 years ago
Timothy Stack ba4b31b24a remove noisy debug log 4 years ago
Timothy Stack f1a47ac1ad [log_format] make logline_value slightly less error-prone 4 years ago
Timothy Stack be106fcb8d [docs] add some more keymap/theme docs 4 years ago
Timothy Stack a3264fb104 [log_format] fix issues with year rollover
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack ead1d3eb36 [build] fix some more warnings 4 years ago
Timothy Stack 4fa4a7057b [log_format] gracefully handle a misconfigured log format
Fixes #742
4 years ago
Timothy Stack defb00303f [docs] some changes 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 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 e525d247ae [json-log] some more fixes for handling invalid json logs 5 years ago
Timothy Stack 73e902f7d8 [json-log] handle invalid json log lines
Header from folded patch 'foldme1.patch':

[local] foldme
5 years ago
Timothy Stack 56a341f7f8 [view_curses] colors
Defect Number:
    Reviewed By:
   Testing Done:
5 years ago
Timothy Stack ffd9d88add [log_format] ignore line-format field if timestamp-format is set
Fixes #661
5 years ago
Timothy Stack 02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
5 years ago
Timothy Stack 6cf5cc8213 [logfile] fix issue when files have headers
Defect Number:
    Reviewed By:
   Testing Done:
5 years ago
Timothy Stack 3c85936999 [jsonlog] fix ident highlight when body has newlines 5 years ago
Timothy Stack c7046b0b54 [json] newlines in the line format cause problems
Fixes #644
5 years ago
Timothy Stack fb7d6eafaf [build] some refactoring of files 5 years ago
Timothy Stack 062d480fea [sql] fix some issues found while trying to query some logs 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 43243c7ba3 [build] revive freebsd release build
Some misc fixes for filtering as well
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 afef6b1827 [build] fix some warnings and a 32-bit compile error 6 years ago
Timothy Stack e001b49e28 [format] hidden object/array fields add sub-lines when they should not
Fixes #576
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 2589345e5c [perf] improve initial indexing times 6 years ago
Timothy Stack c715807657 [perf] minor improvement in indexing 6 years ago
Timothy Stack 658931a145 [cleanup] remove cdefs.h include and other stuff
Fix #486
6 years ago
Timothy Stack 686ce639a0 [build] use cmath instead of math.h
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack b1ff6b3a3b [json-log] fix some inconsistencies with json logs
Fill some gaps brought up in #535
6 years ago
Timothy Stack 3e457e30ca [json-format] fix json file recognition for crlf line-endings
Fixes #528
6 years ago
Timothy Stack 59c31925de [log_format] missing highlight colors
The highlighter copy constructor wasn't copying the colors over
6 years ago
Timothy Stack 5689984702 [yajlpp] use pointer to member over nullobj() 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 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 eee7d0ddfc Squash a bunch of signed/unsigned warnings 6 years ago
Phil Hord 4d1d782007 string2level uses wrong string length
It should pass only the matched length, not the original string length.
Caught by -fsanitize=address while trying to parse "some string (DEBUG)"
Probaby deserves a unit test.
6 years ago
Timothy Stack 74b58ed9fc [highlights] allow the highlight color to be specified in log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack a9fd0e37f6 [formats] add rfc5424 syslog format
Fixes #444
7 years ago
Timothy Stack 36e46fc67b [log] do a full sort if there is a year rollover
Fixes #437
7 years ago
Timothy Stack 8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack fea3cb83d9 [sql] preview table definition
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 22d8257c03 [jsonlog] convert integer level to string and then apply the level patterns 7 years ago
Timothy Stack 3e97c737c1 [jsonlog] fix some bugs related to json logs 7 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
7 years ago
Timothy Stack 0e27841c27 fix numeric value indexes 7 years ago
Timothy Stack 3fed519d0c missed filling out the numeric value indexes for patterns 7 years ago
Timothy Stack 1a87184c82 [log] allow parts of log messages to be hidden
Fixes #412
7 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 d8a49ec737 actual fix for json fields 8 years ago
Timothy Stack a758056657 Revert "need to check level before incrementing line count"
This reverts commit c0cd26dec4.
8 years ago
Timothy Stack c0cd26dec4 need to check level before incrementing line count 8 years ago
Timothy Stack b296e84a65 [format] color extra json fields that are identifiers 8 years ago
Timothy Stack a59e0b290e [format] allow json log fields to be hidden
Fixes #303
8 years ago
Timothy Stack 9f79dcc31a [format] point out the location of a pcre-compile error
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 5539e21c05 [log-format] fix line-format where a variable can span lines
Fixes #337
8 years ago
Timothy Stack 876b37ade0 [log-format] add "truncate" overflow value 8 years ago
Timothy Stack c05dfafae8 [log-format] abbreviate long fields when formatting JSON logs
Fixes #340
8 years ago
Timothy Stack 9ee18c26d3 [log-format] add min-width and align options to line-format
Also some fixes for validating the format definitions.

Fixes #338
8 years ago
Timothy Stack 41854cf637 [json-log] custom date formats
Fixes #341
8 years ago
Timothy Stack 8dbf018814 [loader] the loader was not converting the level name to the enum value correctly
Closes #329
8 years ago
Timothy Stack 5d12eed17e fix a bug related to hide-extra for json logs 8 years ago
Timothy Stack fbbedfea48 [build] try to silence some warnings 8 years ago
Timothy Stack 5ea5504aec [time] fix time rollover for days
Fixes #304
8 years ago
Timothy Stack 4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
8 years ago
Timothy Stack afc8cc44b6 [json-format] support integer values for log levels in json formats 8 years ago
Timothy Stack 7a6429519f [summary-line] change error count to error rate and do some cleanup on message levels 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 36c9c63966 [logview] some cleanup of the field overlay 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 61b2403a64 some cleanup 8 years ago
Timothy Stack 0f33256482 [debug] cleanup some logging and use the original time from out-of-order json logs 8 years ago
Timothy Stack d12fe9e0a9 [json] add some schema validation code 8 years ago
Timothy Stack c4ae8d158c [fmt] minor fix for the generic_log format and add another pattern to vmw_log 9 years ago
Timothy Stack aa0999bd0e [opid] missed adding opid to the json log and some other bug fixes
Defect Number:
    Reviewed By:
   Testing Done:
9 years ago
Timothy Stack 8964232374 [json] fixes for json log parsing
I was careless with the initial json log impl since it did not deal
with incomplete log lines very well.  This seems to fix some cases.
But, I was still able to replicate a lockup at one point, so it
might not be complete.
9 years ago
Timothy Stack 91406be91e [nav] add "opid" support with a hotkey 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack 87cfe63613 fix an issue with module formats 9 years ago
Timothy Stack 5bb0599d7e [fmt] add a sudo_log format 9 years ago
Timothy Stack 83b92c3b65 [papertrail] add support for time ranges 9 years ago
Timothy Stack 82574e2e27 [line_buffer] missed invalidating a sb ref 9 years ago
Timothy Stack 9496a960f6 [check] print the partial match of non-matching lines when checking a log file 9 years ago
Timothy Stack 3a87a65ab2 [fmt] add warnings for missing fields 9 years ago
Timothy Stack 27bb9bb2ee [fmt] highlight identifiers in module formats 9 years ago
Timothy Stack 3f4e11a693 [fmt] first pass at supporting sub-formats (called module formats) 9 years ago
Timothy Stack 7ef92dab79 [format] try to validate formats against a given file 9 years ago
Timothy Stack 879bbd581e [pt] rough draft of tail for papertrail 9 years ago
Timothy Stack 4ceddbe82e [ptimec] fix handling of month in interpreted formats
Also missed the null terminator on the list of custom
timestamp formats.
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
Suresh Sundriyal e9c48fbf39 [log_format] Don't capture the sub-groups.
I don't think there is any reason to capture the (OR) sub-group in
ERR(OR) separately.
9 years ago
Timothy Stack cec3d0cb72 [generic_log] add time format that includes zone 9 years ago
Timothy Stack 94459f2cb1 [generic_log] fix log levels for generic_log 9 years ago
Timothy Stack 1d0233bbfa [json-format] support for full paths 9 years ago
Timothy Stack 245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
9 years ago
Timothy Stack ae64b599bd [format] add more log levels and fix some more pretty-printer glitches
Fixes #212
9 years ago
Timothy Stack a300ce9977 [format] order the formats based on sample matches 9 years ago
Suresh Sundriyal ff4db03d5b [-Wsign-compare *&& -Wuninitailzed] log_format.cc 9 years ago
Suresh Sundriyal 6a2c28450e [Coverity] Initialize class variables. 9 years ago
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.
9 years ago
Suresh Sundriyal 1c0d3a4f5a [Warnings] varargs with reference parameters.
'va_start' has undefined behvaior with reference types, so use a pointer instead.
9 years ago
Timothy Stack 12b81fe4e7 [format] fix full message read for json formats 9 years ago
Timothy Stack c80e181790 fix ptime_b_slow, again... 9 years ago
Timothy Stack cfa628f6c4 various fixes
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack c5c37a3202 [vmw_log] update the formats for the vmw_log format 10 years ago
Timothy Stack cd953a548c [filter] update the UI during filtering again
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 708490e3b0 [mem] some more memory reductions
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 6c1dfe3521 [yajl] add a yajl_reset() so we do not have to do yajl_alloc for every line 10 years ago
Timothy Stack ccee7caa32 [yajl] bump to version 2.1.0 10 years ago
Timothy Stack 996e665078 fix an invalid read error 10 years ago
Timothy Stack d4bea593b7 [perf] optimize json log loading 10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack ccf29b3bac [coverity] some cleanup and add the chunky_index 10 years ago
Timothy Stack dc4949305d ignore bad json lines
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack 1974e1f1ae [jsonptr] initial impl 10 years ago
Timothy Stack 72e3a4d8df [format] add TCF file format and some fixes to make it work
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 8372cef11c [date] code generator for strptime formats 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 06974bc942 [json-log] some tweaks to json-log support 10 years ago
Timothy Stack b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack 169a5bd732 [misc] some more tweaks to the last few changes 10 years ago