Commit Graph

573 Commits (7ef92dab79877f184622f9d33b9dc8b41248b303)

Author SHA1 Message Date
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 10 years ago
Timothy Stack 04f8ceadab [file-marker] some more cleanup 10 years ago
Timothy Stack b8b16bd8e5 [view] differentiate messages from different log files 10 years ago
Timothy Stack e07f3f5b24 [docs] update docs for horizontal move change 10 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.
10 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'
10 years ago
Paul Wayper de38b11e67 Fixed missing semicolon from last break statement in previous commit. 10 years ago
Suresh Sundriyal 97d3c53565 [autodeploy_log] rename the Auto Deploy log format 10 years ago
Suresh Sundriyal 280d0cb718 [top_status_view] Increase the format name column width 10 years ago
Paul Wayper e5acc0e6ba Adding smaller movements to left and right via shift-arrows or H and L. 10 years ago
Timothy Stack 94459f2cb1 [generic_log] fix log levels for generic_log 10 years ago
Suresh Sundriyal eee628a272 [format] Add a format for Auto Deploy. 10 years ago
Timothy Stack 021b7cb3aa [test] add a test for nested json log formats 10 years ago
Timothy Stack 9948eeba77 [build] use isdigit 10 years ago
Timothy Stack 1d0233bbfa [json-format] support for full paths 10 years ago
Suresh Sundriyal fcb2db38b0 [timer] Start off disarmed + refactoring. 10 years ago
Suresh Sundriyal da582ce00f [timer] Add 'disarm' method 10 years ago
Suresh Sundriyal 99094a9cf8 [timer] Some refactoring 10 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.
10 years ago
Timothy Stack 5a7c5a2139 [piper] the piper was not exiting if the stream it was reading did not terminate with a line feed 10 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.
10 years ago
Timothy Stack 9ac53b114e add subsystem to the vmk_log format 10 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
10 years ago
Timothy Stack 1c41731c33 remove -Werror=sign-compare for now since it's not supported on some older compilers 10 years ago
Suresh Sundriyal 4e9f6f9b2a [coverity] Uninitialized pointer field : textview_curses.hh 10 years ago
Timothy Stack 245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
10 years ago
Timothy Stack ae64b599bd [format] add more log levels and fix some more pretty-printer glitches
Fixes #212
10 years ago
Suresh Sundriyal 13337a75a5 [coverity] buffer overrun. 10 years ago
Suresh Sundriyal fd157ac42c [pretty] 'A-f' covers a lot of printable characters. 10 years ago
Timothy Stack 488d24b847 [pretty] word-wrap should work in the pretty-printer view 10 years ago
Timothy Stack a50ec2eb42 update usage 10 years ago
Timothy Stack 8d421d0cd4 do not dump stdin if -q is specified 10 years ago
Timothy Stack a2f298de8c forgot to check for POLLHUP 10 years ago