Commit Graph

664 Commits (2aa26082f8c9fc272630d73618bf1afbcc5f065c)

Author SHA1 Message Date
Timothy Stack 3c0d78d28e [sql] fix spurious loading bar flash while searching 9 years ago
Timothy Stack 399c78d86d [pretty] pretty-print the contents of strings
Fixes #250
9 years ago
Timothy Stack 443053da62 [all_logs] add log_msg_schema hidden column to the all_logs table and refine the msg format 9 years ago
Timothy Stack e95bd90dfc [filter] check for too many filters being created 9 years ago
Timothy Stack 0fee92b08f add 're-' prefix to data_scanner 9 years ago
Timothy Stack feaff13b13 [data_parser] some fixes for the debugger and some parsing improvements 9 years ago
Timothy Stack a6ffff5126 don't restore time-offset mode since people might not know how to turn it off 9 years ago
Timothy Stack 25a375f08d [misc] fix various bugs 9 years ago
Timothy Stack 6ce2d9e6a1 [pt] write out the error message for a request 9 years ago
Timothy Stack 0d37a8c142 [text] pretty-printing should work in the text view 9 years ago
Timothy Stack b4cb092ce1 [view] stop scrolling to the right when the end is reached
Fixes #84
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 bedae8c8c2 [fmt] install/update formats from git repos
Fixes #244
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 b76b6175c6 build fix 9 years ago
Timothy Stack cd0145a49d build fix 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 9555ad911a more build fixes 9 years ago
Timothy Stack 4f52a5ea5c build fix 9 years ago
Timothy Stack f286950854 [curl] add a curl looper to handle url requests 9 years ago
Timothy Stack b7d7fe70c7 [pretty] remove extraneous newline 9 years ago
Timothy Stack 82574e2e27 [line_buffer] missed invalidating a sb ref 9 years ago
Timothy Stack fa89ecc5e5 redo the search in the pretty view
Fixes #245
9 years ago
Timothy Stack d616509958 build fix 9 years ago
Timothy Stack d2d8c75135 [sql] add an lnav_views table 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 010131aaba [docs] update the docs for recent changes 9 years ago
Timothy Stack 27bb9bb2ee [fmt] highlight identifiers in module formats 9 years ago
Timothy Stack 5e77e9f256 [readline] try a different behavior when tab-completing quoted stuff in the SQL context 9 years ago
Timothy Stack 3f4e11a693 [fmt] first pass at supporting sub-formats (called module formats) 9 years ago
Timothy Stack 4573964fd2 always build papertrail_proc 9 years ago
Timothy Stack 0bd9b29bea adjustments to the generic_log so the body is picked up correctly 9 years ago
Timothy Stack a8bf7e39b0 log the version of libcurl 9 years ago
Timothy Stack 5ef60412db [pt] pass search query to papertrail 9 years ago
Timothy Stack 7ef92dab79 [format] try to validate formats against a given file 9 years ago
Timothy Stack f392822aa8 [parse] show the path of the pattern used to parse the top line 9 years ago
Timothy Stack e2c08d1da7 these files got dropped from the last checkin 9 years ago
Timothy Stack f1dd99328d [lnav.cc] move more stuff out of lnav.cc 9 years ago
Timothy Stack 7679599afc fix a refactor error 9 years ago
Timothy Stack 6b971ccd66 move stuff out of lnav.cc
Defect Number:
    Reviewed By:
   Testing Done:
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
Suresh Sundriyal b4f2c1683a [coverity] Avoid a buffer-overrun.
'escape_index' is ensured to be less than 'sizeof(escape_buffer)-1'.
This guarantees enough space for one more character in the
escape_buffer. However, if we meet this condition, we go ahead and shove
a character and a null-terminator in to the string, potentially leading
to a buffer overrun.
9 years ago
Timothy Stack 87ec101f9c [fmts] log format contributions 9 years ago
Timothy Stack 92dd59285b some fixes to the re2c change 9 years ago
Timothy Stack 054e8d489b [data-scanner] convert to using re2c 9 years ago
Timothy Stack bb5f3cc9c4 [all_logs] tweak log_msg_format generation 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 f476f904db [syslog_log] Case-insensitive search for level strings
While looking through syslog messages on OS X, came across plenty of
error/warning messages where the level was in all-caps and as a result
were not recognized. There was also a lot of false positives due to the
word error turning up as part of a longer string.

This change:
- Changes the log level regex to do a case-insensitive search.
- Ognores the string 'error', if it is part of a longer string.
9 years ago
Timothy Stack 100e4233d5 [ptime] fix parsing for double digit year 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 04f8ceadab [file-marker] some more cleanup 9 years ago
Timothy Stack b8b16bd8e5 [view] differentiate messages from different log files 9 years ago
Timothy Stack e07f3f5b24 [docs] update docs for horizontal move change 9 years ago
Tim Stack ba1191d730 Merge pull request #234 from PaulWay/PaulWay_shift_horizontal_movement
Adding smaller movements to left and right via shift-arrows or H and L.
9 years ago
Suresh Sundriyal d6b32d60be [lo-fi shortcut] Change shortcut to 'Ctrl-l'.
* Change the 'lo-fi' shortcut to 'Ctrl-l'
* Remove the shortcut for 'redraw'
9 years ago
Paul Wayper de38b11e67 Fixed missing semicolon from last break statement in previous commit. 9 years ago
Suresh Sundriyal 97d3c53565 [autodeploy_log] rename the Auto Deploy log format 9 years ago
Suresh Sundriyal 280d0cb718 [top_status_view] Increase the format name column width 9 years ago
Paul Wayper e5acc0e6ba Adding smaller movements to left and right via shift-arrows or H and L. 9 years ago
Timothy Stack 94459f2cb1 [generic_log] fix log levels for generic_log 9 years ago
Suresh Sundriyal eee628a272 [format] Add a format for Auto Deploy. 9 years ago
Timothy Stack 021b7cb3aa [test] add a test for nested json log formats 9 years ago
Timothy Stack 9948eeba77 [build] use isdigit 9 years ago
Timothy Stack 1d0233bbfa [json-format] support for full paths 9 years ago
Suresh Sundriyal fcb2db38b0 [timer] Start off disarmed + refactoring. 9 years ago
Suresh Sundriyal da582ce00f [timer] Add 'disarm' method 9 years ago
Suresh Sundriyal 99094a9cf8 [timer] Some refactoring 9 years ago
Suresh Sundriyal 55e912d21e [pretty] Don't wait indefinitely for reverse IP lookups.
Reverse lookup for pretty print should be a best effort undertaking. So,
+ Give up on EAI_AGAIN.
+ Don't block on the getnameinfo call indefinitely, resolv.conf might be
  set up with a large timeout.
+ Disable lookups after the first failure.
+ Lots of OCD error checking.
9 years ago
Timothy Stack 5a7c5a2139 [piper] the piper was not exiting if the stream it was reading did not terminate with a line feed 9 years ago
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.
9 years ago
Timothy Stack 9ac53b114e add subsystem to the vmk_log format 9 years ago
Suresh Sundriyal 8e70980f7f [init.sql] Check in a static init.sql and remove init_sql.py.
- The codes from httplib.py don't contain all the HTTP status codes and
  might differ between different versions of Python installed on the
  systems the binary is built on.
- Add the complete list from:
  http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
- Remove ```init_sql.py``` from the source directory.
- Remove the ```init.sql``` targets from Makefile.am
9 years ago
Timothy Stack 1c41731c33 remove -Werror=sign-compare for now since it's not supported on some older compilers 9 years ago
Suresh Sundriyal 4e9f6f9b2a [coverity] Uninitialized pointer field : textview_curses.hh 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
Suresh Sundriyal 13337a75a5 [coverity] buffer overrun. 9 years ago
Suresh Sundriyal fd157ac42c [pretty] 'A-f' covers a lot of printable characters. 9 years ago
Timothy Stack 488d24b847 [pretty] word-wrap should work in the pretty-printer view 9 years ago
Timothy Stack a50ec2eb42 update usage 9 years ago
Timothy Stack 8d421d0cd4 do not dump stdin if -q is specified 9 years ago
Timothy Stack a2f298de8c forgot to check for POLLHUP 9 years ago
Timothy Stack e1874c0278 use poll instead of select so we can handle more than FD_SETSIZE files 9 years ago
Suresh Sundriyal 9f53d1d3d1 [regex] VMKernel logs have ALERT as well as WARNING. 9 years ago
Tim Stack 20e1fc06dd Merge pull request #207 from sureshsundriyal/wip
[terminal] Print out an error when openpty fails.
9 years ago
Suresh Sundriyal 7e5d5a72bd [terminal] Print out an error when openpty fails.
tstack/lnav#206
9 years ago
Timothy Stack 0b232a7588 [headless] multiline support for command files 9 years ago
Timothy Stack 2dfae4f7f9 [pretty] add some more tests and leave leading spaces alone in some cases 9 years ago
Suresh Sundriyal 1de2a30560 [wsign-compare] FreeBSD builds fail while comparing int with FD_SETSIZE. 9 years ago
Timothy Stack 5f7344874b [pretty] only start a new line after a comma if we're in a structure 9 years ago
Timothy Stack d6d652ec38 various tweaks 9 years ago