Commit Graph

124 Commits

Author SHA1 Message Date
Timothy Stack
ec473edc85 [cmd] add support for times in goto 2015-09-14 08:56:42 -07:00
Timothy Stack
9496a960f6 [check] print the partial match of non-matching lines when checking a log file 2015-07-20 06:33:52 -07:00
Timothy Stack
27bb9bb2ee [fmt] highlight identifiers in module formats 2015-07-19 02:40:02 -07:00
Timothy Stack
3f4e11a693 [fmt] first pass at supporting sub-formats (called module formats) 2015-07-17 20:39:06 -07:00
Timothy Stack
7ef92dab79 [format] try to validate formats against a given file 2015-07-11 16:32:48 -07:00
Timothy Stack
f392822aa8 [parse] show the path of the pattern used to parse the top line 2015-07-10 21:39:03 -07:00
Timothy Stack
879bbd581e [pt] rough draft of tail for papertrail 2015-07-06 20:53:42 -07:00
Timothy Stack
504b5747fe [sql] add an all_logs table that exposes the message format with values, like numbers, replaced with hashes 2015-06-03 06:36:58 -07:00
Timothy Stack
021b7cb3aa [test] add a test for nested json log formats 2015-04-26 04:57:36 -07:00
Timothy Stack
1d0233bbfa [json-format] support for full paths 2015-04-25 12:15:51 -07:00
Timothy Stack
245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
2015-04-10 22:55:57 -07:00
Timothy Stack
ae64b599bd [format] add more log levels and fix some more pretty-printer glitches
Fixes #212
2015-04-10 19:50:05 -07:00
Timothy Stack
a300ce9977 [format] order the formats based on sample matches 2015-04-05 07:12:20 -07:00
Timothy Stack
408c690192 [log] some more logging cleanup 2015-04-04 02:15:34 -07:00
Suresh Sundriyal
1c0d3a4f5a [Warnings] varargs with reference parameters.
'va_start' has undefined behvaior with reference types, so use a pointer instead.
2015-03-21 11:56:12 -07:00
Timothy Stack
12b81fe4e7 [format] fix full message read for json formats 2015-03-18 22:57:30 -07:00
Timothy Stack
708490e3b0 [mem] some more memory reductions
Defect Number:
    Reviewed By:
   Testing Done:
2014-10-31 13:16:35 -07:00
Timothy Stack
f410c9eeb8 [logfile] try to reduce memory usage a bit
Defect Number:
    Reviewed By:
   Testing Done:
2014-10-31 11:11:56 -07:00
Timothy Stack
6c1dfe3521 [yajl] add a yajl_reset() so we do not have to do yajl_alloc for every line 2014-10-29 06:42:45 -07:00
Timothy Stack
d4bea593b7 [perf] optimize json log loading 2014-10-28 07:02:27 -07:00
Timothy Stack
a71ca1f1ca [filter] some improvements to the core filtering code 2014-10-19 22:16:40 -07:00
Timothy Stack
d557002724 [format] add OpenAM log formats 2014-06-17 21:29:42 -07:00
Timothy Stack
1974e1f1ae [jsonptr] initial impl 2014-05-05 06:44:58 -07:00
Timothy Stack
72e3a4d8df [format] add TCF file format and some fixes to make it work
Defect Number:
    Reviewed By:
   Testing Done:
2014-04-06 22:11:04 -07:00
Timothy Stack
4ce9a1e871 [elapsed-time] add a visual indicator for sharp changes in message rate 2014-03-16 15:07:08 -07:00
Timothy Stack
d17f7b1940 [cmd] add set-min-log-level command
Part of #82
2014-03-16 02:46:17 -07:00
Timothy Stack
cbd8308b36 [cmd] use wordexp in the open command 2014-03-15 22:33:56 -07:00
Timothy Stack
06974bc942 [json-log] some tweaks to json-log support 2014-03-11 03:49:52 -07:00
Timothy Stack
b6baae7730 [debug] more debugging stuff
Defect Number:
    Reviewed By:
   Testing Done:
2014-03-06 06:58:49 -08:00
Timothy Stack
10eb9617b1 [sql] add a bookmark column to the log tables 2014-03-01 23:40:12 -08:00
Timothy Stack
1bb17a0b96 [sql] add a collator for log level
Fix for #77
2014-02-18 09:06:50 -08:00
Timothy Stack
8b11813463 [format] cache indexes to pcre named captures 2014-02-09 07:11:58 -08:00
Timothy Stack
3251554cf9 [byte_array] tweak the template so it is easier to use with SpookyHash 2014-02-04 09:26:25 -08:00
Suresh Sundriyal
13f5ad0dce Change the code to use Spookyhash.
* This change removes the external dependency on OpenSSL, which should
  allow the code to compile on Mac OS X without specifying the
  MAC_OS_X_VERSION_MIN_REQUIRED non-sense.
* Spookyhash should be faster than SHA-1's Merkle-Damgård construction.
* Spookyhash is only 128-bits as opposed to SHA-1's 160-bits so memory
  consumption should be less. I doubt it will lead to too many
  collisions.
* The docs are updated to reflect the fact that OpenSSL is not a
  dependency.
2014-02-03 22:36:33 -08:00
Timothy Stack
5ef8a168a7 [perf] reduce copies of log messages 2014-02-01 06:41:11 -08:00
Timothy Stack
e200f60a96 [format] avoid making a copy of the string in logline_value and reduce UI updates 2014-01-25 12:13:41 -08:00
Timothy Stack
f4aeb11ad5 [view_curses] use a vector for string attributes
Using a map/multimap is too expensive/complex for how many
attributes we have on a line due to how many tree nodes
need to be malloced/freed.  Just using a vector should be
good enough and a lot faster.
2014-01-25 09:29:35 -08:00
Timothy Stack
3259bde974 [nits] use pcrepp for filtering and fix sigabrt received when loading is interrupted 2014-01-20 07:18:15 -08:00
Timothy Stack
bd7b14965b [log-data] fix the column type for numbers 2014-01-18 06:46:51 -08:00
Timothy Stack
59c1d4313b [mouse] more mouse support and other fixes 2013-10-11 06:22:29 -07:00
Timothy Stack
8eb4b02f97 [yajlpp] some optimizations for json log parsing 2013-09-14 06:36:31 -07:00
Timothy Stack
05c62fc7a8 [log_format] some missing initializers 2013-09-10 20:27:14 -07:00
Timothy Stack
c59acba758 [format] initial support for json formats and some bug fixes 2013-09-10 06:20:37 -07:00
Timothy Stack
83f94cea86 [log-format] regex config format redux 2013-08-07 06:31:34 -07:00
Timothy Stack
37283d0afb [nits] do not complain about no formats 2013-07-30 21:21:28 -07:00
Timothy Stack
af6e289cda [log format] add scaling factors 2013-07-23 05:55:08 -07:00
Timothy Stack
729c842ca5 [session] saving bookmarks 2013-07-13 21:31:59 -07:00
Timothy Stack
3ee6dbf824 [sql] log table nits 2013-07-13 15:38:12 -07:00
Timothy Stack
c28b9f1316 [highlight] add some more highlighting and fix some other nits 2013-07-13 07:36:48 -07:00
Timothy Stack
79c4038128 [log time] add a command to adjust log message times 2013-06-30 16:43:08 -07:00
Timothy Stack
972fe9f9c9 [syslog] fix syslog timestamps 2013-06-29 12:02:08 -07:00
Timothy Stack
2d33cb7f7e [log format] some more log format work 2013-06-29 11:00:34 -07:00
Timothy Stack
2cd356b4c5 [log format] some more work to externalize log formats; color identifiers in logs 2013-06-29 06:22:24 -07:00
Timothy Stack
f1087184d6 [log format] lay some foundation for making log formats configurable 2013-06-25 18:45:07 -07:00
Timothy Stack
6535b03b6e [log] try to cache the results of filtering so we do not always recompute 2013-06-22 13:44:50 -07:00
Timothy Stack
df80972d5d [log format] generic prefix len 2013-06-18 06:12:36 -07:00
Timothy Stack
5a7d6dab2c [cleanup] uncrustify 2013-06-15 18:07:50 -07:00
Timothy Stack
c93172824c [logline] cache log line schemas to make subsequent queries faster and other tweaks 2013-06-12 06:59:48 -07:00
Timothy Stack
5e18f47cd2 [nits] fix some recently introduced bugs and some long standing ones 2013-06-04 06:53:25 -07:00
Tim Stack
cb03e9443d [linux build] fix some linux build issues 2013-05-31 21:13:26 -07:00
Timothy Stack
865849f017 [spam] uncrustify pass 2013-05-27 21:35:00 -07:00
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.
2013-05-24 07:55:56 -07:00
Timothy Stack
b04e6bfc78 [glog] some tweaks to the glog change
Some changes to the glog_log sql table:

  * Removed the 'glog_level' field since the standard one should be able to
    handle everything now.
  * Changed the 'file' column to 'src_file' and added a 'src_line' column.
  * Added the sample glog log content to the test directory.
2013-05-17 17:44:55 -07:00
Timothy Stack
f62b5c271c [release] bump to 0.5.1 2013-05-02 23:02:03 -07:00
Timothy Stack
772b28dc01 [highlight] tweak some of the highlight regexes 2013-04-23 09:25:18 -07:00
Timothy Stack
d4f170e747 cppcheck fixes 2013-04-17 09:27:12 -07:00
Timothy Stack
c4e9f58bf0 [bugs] fix some long-standing bugs
* grep_proc.cc: When a request is queued with the start line
   == -1, we need to start searching from the highest line
   ever seen and not the last line processed.
 * line_buffer.cc: If a partial line was read, we need to
   avoid returning another line if more data is appended
   to the file.
 * lnav.cc: Accept file name patterns on the command-line that
   don't match any files yet.  Initialize the screen before
   redirecting stderr to the log file or /dev/null.
 * log_format.hh: Add some comments.  Start to add back support
   for scrubbing.
 * logfile_sub_source.cc: Move scrubbing to the format impl.
 * textview_curses.hh: Add comments.
2012-09-22 16:15:15 -07:00
Timothy Stack
0c61c7d354 refactor lnav.cc 2012-07-13 09:26:47 -07:00
Timothy Stack
c6c19eabb5 [generic log format/misc] try to pull millisecond value out of the log
* log_format.cc, log_format_impls.cc, log_format.hh: Change
   log_scanf to return a pointer to the character in the
   time string that was not part of the time.  Change the
   generic log format to try and pull out the millisecond
   value from the timestamp.
 * test/Makefile.am: Fix some dist problems.
 * test/logfile_generic.0: Test logfile for the generic log format.
2012-07-03 12:01:09 -07:00
Timothy Stack
b68a1bba9b [test] some cleanup for tests and other things
Just a cleanup pass
2012-06-05 13:18:59 -07:00
Timothy Stack
a19faa885a [valgrind] Plug some more leaks and tweak a few things 2012-04-20 17:59:19 -06:00
tstack
c09aa3ba70 fix some minor build issues 2010-01-29 15:17:08 -08:00
Timothy Stack
1d40a8edcf build work 2009-10-14 12:42:58 -07:00
tstack
b4ec432515 first commit 2009-09-13 18:07:32 -07:00