Timothy Stack
9df95b33e1
build fix
2015-08-03 08:27:33 -07:00
Timothy Stack
cc5e70fb30
[cmd] add help to the command prompt
2015-08-03 06:49:07 -07:00
Timothy Stack
e9a96caf09
[papertrail] use the curl_looper
2015-08-02 20:12:21 -07:00
Timothy Stack
9555ad911a
more build fixes
2015-08-02 07:41:09 -07:00
Timothy Stack
4f52a5ea5c
build fix
2015-08-02 06:49:33 -07:00
Timothy Stack
f286950854
[curl] add a curl looper to handle url requests
2015-08-02 06:43:57 -07:00
Timothy Stack
b7d7fe70c7
[pretty] remove extraneous newline
2015-07-23 23:35:56 -07:00
Timothy Stack
82574e2e27
[line_buffer] missed invalidating a sb ref
2015-07-23 23:06:52 -07:00
Timothy Stack
fa89ecc5e5
redo the search in the pretty view
...
Fixes #245
2015-07-23 22:29:08 -07:00
Timothy Stack
d616509958
build fix
2015-07-22 07:41:23 -07:00
Timothy Stack
d2d8c75135
[sql] add an lnav_views table
2015-07-22 07:09:51 -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
3a87a65ab2
[fmt] add warnings for missing fields
2015-07-20 05:33:02 -07:00
Timothy Stack
010131aaba
[docs] update the docs for recent changes
2015-07-19 21:38:37 -07:00
Timothy Stack
27bb9bb2ee
[fmt] highlight identifiers in module formats
2015-07-19 02:40:02 -07:00
Timothy Stack
5e77e9f256
[readline] try a different behavior when tab-completing quoted stuff in the SQL context
2015-07-17 20:51:44 -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
4573964fd2
always build papertrail_proc
2015-07-14 20:15:48 -07:00
Timothy Stack
0bd9b29bea
adjustments to the generic_log so the body is picked up correctly
2015-07-13 22:33:40 -07:00
Timothy Stack
a8bf7e39b0
log the version of libcurl
2015-07-12 10:23:01 -07:00
Timothy Stack
5ef60412db
[pt] pass search query to papertrail
2015-07-12 09:57:02 -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
e2c08d1da7
these files got dropped from the last checkin
2015-07-08 23:18:52 -07:00
Timothy Stack
f1dd99328d
[lnav.cc] move more stuff out of lnav.cc
2015-07-08 22:26:54 -07:00
Timothy Stack
7679599afc
fix a refactor error
2015-07-08 07:05:11 -07:00
Timothy Stack
6b971ccd66
move stuff out of lnav.cc
...
Defect Number:
Reviewed By:
Testing Done:
2015-07-08 06:35:36 -07:00
Timothy Stack
879bbd581e
[pt] rough draft of tail for papertrail
2015-07-06 20:53:42 -07:00
Timothy Stack
4ceddbe82e
[ptimec] fix handling of month in interpreted formats
...
Also missed the null terminator on the list of custom
timestamp formats.
2015-06-30 21:53:01 -07:00
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.
2015-06-27 21:37:08 -07:00
Timothy Stack
87ec101f9c
[fmts] log format contributions
2015-06-24 21:32:45 -07:00
Timothy Stack
92dd59285b
some fixes to the re2c change
2015-06-10 20:42:46 -07:00
Timothy Stack
054e8d489b
[data-scanner] convert to using re2c
2015-06-08 06:27:45 -07:00
Timothy Stack
bb5f3cc9c4
[all_logs] tweak log_msg_format generation
2015-06-04 05:30:50 -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
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.
2015-05-31 22:47:39 -07:00
Timothy Stack
100e4233d5
[ptime] fix parsing for double digit year
2015-05-29 21:41:30 -07:00
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.
2015-05-20 00:41:00 -07:00
Timothy Stack
cec3d0cb72
[generic_log] add time format that includes zone
2015-05-17 05:15:41 -07:00
Timothy Stack
04f8ceadab
[file-marker] some more cleanup
2015-05-14 22:07:28 -07:00
Timothy Stack
b8b16bd8e5
[view] differentiate messages from different log files
2015-05-13 22:13:47 -07:00
Timothy Stack
e07f3f5b24
[docs] update docs for horizontal move change
2015-05-12 06:37:41 -07:00
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.
2015-05-11 06:46:42 -07:00
Suresh Sundriyal
d6b32d60be
[lo-fi shortcut] Change shortcut to 'Ctrl-l'.
...
* Change the 'lo-fi' shortcut to 'Ctrl-l'
* Remove the shortcut for 'redraw'
2015-05-08 22:31:56 -07:00
Paul Wayper
de38b11e67
Fixed missing semicolon from last break statement in previous commit.
2015-05-06 08:41:17 +10:00
Suresh Sundriyal
97d3c53565
[autodeploy_log] rename the Auto Deploy log format
2015-05-04 23:16:26 -07:00
Suresh Sundriyal
280d0cb718
[top_status_view] Increase the format name column width
2015-05-04 23:15:53 -07:00
Paul Wayper
e5acc0e6ba
Adding smaller movements to left and right via shift-arrows or H and L.
2015-05-05 09:57:05 +10:00
Timothy Stack
94459f2cb1
[generic_log] fix log levels for generic_log
2015-05-01 20:52:00 -07:00
Suresh Sundriyal
eee628a272
[format] Add a format for Auto Deploy.
2015-04-28 21:55:17 -07:00
Timothy Stack
021b7cb3aa
[test] add a test for nested json log formats
2015-04-26 04:57:36 -07:00
Timothy Stack
9948eeba77
[build] use isdigit
2015-04-25 12:29:54 -07:00
Timothy Stack
1d0233bbfa
[json-format] support for full paths
2015-04-25 12:15:51 -07:00
Suresh Sundriyal
fcb2db38b0
[timer] Start off disarmed + refactoring.
2015-04-24 01:58:39 -07:00
Suresh Sundriyal
da582ce00f
[timer] Add 'disarm' method
2015-04-24 00:43:30 -07:00
Suresh Sundriyal
99094a9cf8
[timer] Some refactoring
2015-04-24 00:37:57 -07:00
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.
2015-04-23 23:42:51 -07:00
Timothy Stack
5a7c5a2139
[piper] the piper was not exiting if the stream it was reading did not terminate with a line feed
2015-04-21 22:25:54 -07:00
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.
2015-04-19 00:00:43 -07:00
Timothy Stack
9ac53b114e
add subsystem to the vmk_log format
2015-04-18 21:29:14 -07:00
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
2015-04-11 14:59:43 -07:00
Timothy Stack
1c41731c33
remove -Werror=sign-compare for now since it's not supported on some older compilers
2015-04-11 11:31:07 -07:00
Suresh Sundriyal
4e9f6f9b2a
[coverity] Uninitialized pointer field : textview_curses.hh
2015-04-11 00:42:46 -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
Suresh Sundriyal
13337a75a5
[coverity] buffer overrun.
2015-04-10 00:44:06 -07:00
Suresh Sundriyal
fd157ac42c
[pretty] 'A-f' covers a lot of printable characters.
2015-04-09 05:33:36 -07:00
Timothy Stack
488d24b847
[pretty] word-wrap should work in the pretty-printer view
2015-04-08 23:06:43 -07:00
Timothy Stack
a50ec2eb42
update usage
2015-04-08 21:12:16 -07:00
Timothy Stack
8d421d0cd4
do not dump stdin if -q is specified
2015-04-08 21:06:38 -07:00
Timothy Stack
a2f298de8c
forgot to check for POLLHUP
2015-04-08 20:58:12 -07:00
Timothy Stack
e1874c0278
use poll instead of select so we can handle more than FD_SETSIZE files
2015-04-08 20:36:45 -07:00
Suresh Sundriyal
9f53d1d3d1
[regex] VMKernel logs have ALERT as well as WARNING.
2015-04-08 19:08:29 -07:00
Tim Stack
20e1fc06dd
Merge pull request #207 from sureshsundriyal/wip
...
[terminal] Print out an error when openpty fails.
2015-04-08 09:20:18 -07:00
Suresh Sundriyal
7e5d5a72bd
[terminal] Print out an error when openpty fails.
...
tstack/lnav#206
2015-04-08 03:57:34 -07:00
Timothy Stack
0b232a7588
[headless] multiline support for command files
2015-04-07 22:13:44 -07:00
Timothy Stack
2dfae4f7f9
[pretty] add some more tests and leave leading spaces alone in some cases
2015-04-07 21:25:01 -07:00
Suresh Sundriyal
1de2a30560
[wsign-compare] FreeBSD builds fail while comparing int with FD_SETSIZE.
2015-04-07 19:39:27 -07:00
Timothy Stack
5f7344874b
[pretty] only start a new line after a comma if we're in a structure
2015-04-07 17:24:56 -07:00
Timothy Stack
d6d652ec38
various tweaks
2015-04-07 06:09:49 -07:00
Suresh Sundriyal
7da767bc07
[build] More changes for git version string.
2015-04-06 21:51:16 -07:00
Suresh Sundriyal
0c979afc09
[build] Add the git cln to the lnav version.
2015-04-06 21:35:47 -07:00
Timothy Stack
c58f44bb3f
[headless] completely read stdin in headless mode before running commands
2015-04-06 02:53:53 -07:00
Timothy Stack
32e96e6395
[pipe-to] fix some issues when running pipe in headless mode
2015-04-05 21:40:04 -07:00
Timothy Stack
1e7c988d85
[bookmark] fix static initializer order for the bookmark types
2015-04-05 16:27:02 -07:00
Timothy Stack
7b8bc67cc9
[pretty] drop extra new lines
2015-04-05 11:59:14 -07:00
Timothy Stack
a300ce9977
[format] order the formats based on sample matches
2015-04-05 07:12:20 -07:00
Suresh Sundriyal
05b408b568
[cleanup] Remove generated files and add to .gitignore.
...
- Remove the build generated files from the source tree.
- This should take care of these files going out of sync or not be
compatible with the version of autotools installed on users'
machines.
- Add the generated files to .gitignore.
- Add a note in the installation instructions to run autogen.sh before
running configure.
2015-04-05 02:43:54 -07:00
Suresh Sundriyal
7e3036cb86
[build] autogen
2015-04-05 01:39:14 -07:00
Suresh Sundriyal
bfee33b7fd
Turn on 'sign-compare' error check for tests.
2015-04-05 00:23:25 -07:00
Suresh Sundriyal
dd88c6543a
[build] Turn 'sign-compare' in to an error.
...
Can't turn on the same on tests because it breaks on some test cases.
2015-04-04 17:07:59 -07:00
Timothy Stack
0452bc0438
[build] some more sign-compare stuff
2015-04-04 16:13:12 -07:00
Timothy Stack
38e56b63ea
[hist] fix the histogram when filters change
2015-04-04 13:36:53 -07:00
Tim Stack
1a204c6915
remove leftover test code
2015-04-04 11:41:55 -07:00
Timothy Stack
0d97e7ef59
override gettimeofday for testing
2015-04-04 03:42:26 -07:00
Timothy Stack
62011b4226
fix an errant include
2015-04-04 02:55:06 -07:00
Timothy Stack
408c690192
[log] some more logging cleanup
2015-04-04 02:15:34 -07:00
Timothy Stack
f0f819b119
[log] dump more state on a crash
2015-04-04 02:15:34 -07:00
Suresh Sundriyal
a1fd8f9dd9
[time_fmt] Add the new time_fmt to Makefile.am.
...
Makefile.in is a generated file and will get overwritten on the next
autogen run.
2015-04-03 12:00:44 -07:00
androm3da
a66db0fd8b
[time_formats] Added another time format
...
Added a new time format to the list
2015-04-03 12:55:04 -05:00
Suresh Sundriyal
32c6874665
[-Wsign-compare] lnav_log.cc
2015-04-02 01:59:49 -07:00
Suresh Sundriyal
19e6303fac
[-Wsign-compare] lnav.cc
2015-04-02 01:48:21 -07:00
Suresh Sundriyal
8c329130ed
[-Wsign-compare] logfile_sub_source.cc
2015-04-02 01:40:21 -07:00
Suresh Sundriyal
410c2a3cd7
[-Wsign-compare] lnav_commands.cc
2015-04-02 01:27:50 -07:00
Suresh Sundriyal
c61bfbecad
[-Wsign-compare] log_vtab_impl.cc
2015-04-02 00:19:44 -07:00
Suresh Sundriyal
ff4db03d5b
[-Wsign-compare *&& -Wuninitailzed] log_format.cc
2015-04-01 23:50:28 -07:00
Suresh Sundriyal
a21c172d8e
[Coverity] Fix a forward null.
2015-04-01 23:36:11 -07:00
Suresh Sundriyal
e6d97795fe
[-Wunused-but-set-variable] vt52_curses.cc
2015-04-01 21:58:32 -07:00
Suresh Sundriyal
fe6f3ec1ae
[-Wsign-compare] view_curses.hh
2015-04-01 21:50:34 -07:00
Suresh Sundriyal
72bdbb5839
[-Wsign-compare] statusview_curses.hh
2015-04-01 21:43:33 -07:00
Suresh Sundriyal
67e79fb07c
[-Wsign-compare] readline_curses.cc
2015-04-01 21:38:28 -07:00
Suresh Sundriyal
36b012eba3
[-Wsign-compare] filter_observer.hh
2015-04-01 21:31:18 -07:00
Suresh Sundriyal
35feb28212
[-Wsign-compare] textview_curses.hh
2015-04-01 21:18:22 -07:00
Suresh Sundriyal
c23ea2cf96
[-Wsign-compare] json_ptr.hh
2015-04-01 21:09:49 -07:00
Suresh Sundriyal
04471054d8
[-Wsign-compare] data_scanner.hh
2015-04-01 20:42:14 -07:00
Suresh Sundriyal
de34380aed
[-Wsign-compare] readline_highlighters.cc
2015-04-01 19:19:40 -07:00
Suresh Sundriyal
e1f922d25a
[-Wsign-compare] Type mismatch: db_sub_source.hh
2015-04-01 14:22:59 -07:00
Suresh Sundriyal
e41549f96c
[-Wsign-compare] Fix the type mismatch warnings.
2015-04-01 05:31:12 -07:00
Timothy Stack
66c5d9413e
fix piping lnav
2015-03-31 13:00:34 -07:00
Timothy Stack
7efedcdafc
[lint] remove unnecessary null checks
2015-03-31 06:34:53 -07:00
Timothy Stack
e71985a951
need to check the view stack in rebuild_indexes()
2015-03-30 13:23:43 -07:00
Timothy Stack
033c861028
[cmd] next/prev-mark commands
2015-03-29 14:50:34 -07:00
Suresh Sundriyal
a46d33de2b
[pretty print] Avoid extra new lines.
...
With the recent change to enable pretty print on all the log lines in
the current view, 'lnav' adds extra new lines between all the normal log
lines. This change removes the extra new lines.
2015-03-29 03:28:05 -07:00
Suresh Sundriyal
27b0a67168
[build] autogen
2015-03-29 01:23:57 -07:00
Suresh Sundriyal
707ccce9c0
[build] Stop readline macro from polluting the environment variables.
2015-03-29 01:19:51 -07:00
Suresh Sundriyal
4ed9765610
[Coverity] Fix dereference before null check.
2015-03-28 18:41:06 -07:00
Suresh Sundriyal
c386814850
[Coverity] Printf arg type mismatch.
2015-03-28 18:20:44 -07:00
Suresh Sundriyal
6a2c28450e
[Coverity] Initialize class variables.
2015-03-28 14:46:10 -07:00
Suresh Sundriyal
0c30d52ca2
[Coverity] Remove dead code.
...
Given the fact that rem += SECSPERDAY is executed only when rem < 0,
it won't be possible for the condition 'rem >= SECSPERDAY' to be true.
2015-03-28 13:46:42 -07:00
Tim Stack
fdcb75d198
Merge pull request #157 from sureshsundriyal/wip
...
Fix the tests when not compiled with bz2 support.
2015-03-28 12:11:03 -07:00
Timothy Stack
44d2e12403
[text] add filtering support to the plain text view
...
Fixes #149 #148
2015-03-28 06:30:30 -07:00
Suresh Sundriyal
521767eeb9
[build] autogen
2015-03-28 01:26:28 -07:00
Suresh Sundriyal
acd913b9f9
[Compile errors] test_override.cc -> test_override.c
2015-03-27 11:21:08 -07:00
Timothy Stack
282e70445e
[pretty] reformat all displayed lines instead of just the top one
...
Fixes #150
2015-03-26 06:13:25 -07:00
Suresh Sundriyal
ed0baf7c1c
[build] Add custom silent rules.
...
Add custom silent rules for ptime/bin2c/sqlite3/rm commands.
2015-03-25 03:03:34 -07:00
Timothy Stack
8fb15e455a
[cmd] add a relative-goto command
2015-03-24 23:07:47 -07:00
Suresh Sundriyal
1025015bc8
[build] autogen.sh run
2015-03-24 22:52:49 -07:00
Suresh Sundriyal
40250d41d9
[build] autogen.sh run
2015-03-24 22:27:52 -07:00
Timothy Stack
4ea800a8f8
[build] messed up sigset init
2015-03-23 21:25:19 -07:00
Timothy Stack
219a4baad1
[ui] lower the index rebuild frequency when the command line is active
2015-03-23 21:20:55 -07:00
Suresh Sundriyal
23e2d86421
[build] autogen run
2015-03-23 03:28:24 -07:00
Timothy Stack
42521ef337
[hist] the wrong view could be used when switching from hist to log
2015-03-22 21:58:12 -07:00
Timothy Stack
cf462cecde
[hist] need to rebuild the histogram if files are closed
2015-03-22 11:49:37 -07:00
Suresh Sundriyal
6567b53266
[Coverity] Eliminate null pointer dereferencing.
...
There is a possibility that 'name' might be NULL and {get/set}env might
dereference it.
2015-03-21 23:22:58 -07:00
Suresh Sundriyal
e3f2939904
[Coverity] Uninitialized variable.
...
Zero out 'msg' during declaration.
2015-03-21 17:07:43 -07:00
Suresh Sundriyal
803642a849
[Coverity] Fixes an 'Uninitialized variables' error.
...
Initialize retval to SQLITE_ERROR during declaration at the beggining of
the method. I could technically go with SQLITE_OK but if this is going
to be unintentially returned without being initialized, I would much
rather it return an error than success.
2015-03-21 17:06:39 -07:00
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.
2015-03-21 13:43:40 -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
Suresh Sundriyal
89b31050f1
[Compile errors] Fix some errors on ancient toolchains.
...
Fix some random errors on older toolchains where sys/time.h does
not include time.h.
2015-03-21 11:39:48 -07:00
Timothy Stack
b02430f4d9
add netinet include
2015-03-20 20:55:46 -07:00