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
Suresh Sundriyal
7da767bc07
[build] More changes for git version string.
9 years ago
Suresh Sundriyal
0c979afc09
[build] Add the git cln to the lnav version.
9 years ago
Timothy Stack
c58f44bb3f
[headless] completely read stdin in headless mode before running commands
9 years ago
Timothy Stack
32e96e6395
[pipe-to] fix some issues when running pipe in headless mode
9 years ago
Timothy Stack
1e7c988d85
[bookmark] fix static initializer order for the bookmark types
9 years ago
Timothy Stack
7b8bc67cc9
[pretty] drop extra new lines
9 years ago
Timothy Stack
a300ce9977
[format] order the formats based on sample matches
9 years ago
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.
9 years ago
Suresh Sundriyal
7e3036cb86
[build] autogen
9 years ago
Suresh Sundriyal
bfee33b7fd
Turn on 'sign-compare' error check for tests.
9 years ago
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.
9 years ago
Timothy Stack
0452bc0438
[build] some more sign-compare stuff
9 years ago
Timothy Stack
38e56b63ea
[hist] fix the histogram when filters change
9 years ago
Tim Stack
1a204c6915
remove leftover test code
9 years ago
Timothy Stack
0d97e7ef59
override gettimeofday for testing
9 years ago
Timothy Stack
62011b4226
fix an errant include
9 years ago
Timothy Stack
408c690192
[log] some more logging cleanup
9 years ago
Timothy Stack
f0f819b119
[log] dump more state on a crash
9 years ago
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.
9 years ago
androm3da
a66db0fd8b
[time_formats] Added another time format
...
Added a new time format to the list
9 years ago
Suresh Sundriyal
32c6874665
[-Wsign-compare] lnav_log.cc
9 years ago
Suresh Sundriyal
19e6303fac
[-Wsign-compare] lnav.cc
9 years ago
Suresh Sundriyal
8c329130ed
[-Wsign-compare] logfile_sub_source.cc
9 years ago
Suresh Sundriyal
410c2a3cd7
[-Wsign-compare] lnav_commands.cc
9 years ago
Suresh Sundriyal
c61bfbecad
[-Wsign-compare] log_vtab_impl.cc
9 years ago
Suresh Sundriyal
ff4db03d5b
[-Wsign-compare *&& -Wuninitailzed] log_format.cc
9 years ago
Suresh Sundriyal
a21c172d8e
[Coverity] Fix a forward null.
9 years ago
Suresh Sundriyal
e6d97795fe
[-Wunused-but-set-variable] vt52_curses.cc
9 years ago
Suresh Sundriyal
fe6f3ec1ae
[-Wsign-compare] view_curses.hh
9 years ago
Suresh Sundriyal
72bdbb5839
[-Wsign-compare] statusview_curses.hh
9 years ago
Suresh Sundriyal
67e79fb07c
[-Wsign-compare] readline_curses.cc
9 years ago
Suresh Sundriyal
36b012eba3
[-Wsign-compare] filter_observer.hh
9 years ago
Suresh Sundriyal
35feb28212
[-Wsign-compare] textview_curses.hh
9 years ago
Suresh Sundriyal
c23ea2cf96
[-Wsign-compare] json_ptr.hh
9 years ago
Suresh Sundriyal
04471054d8
[-Wsign-compare] data_scanner.hh
9 years ago
Suresh Sundriyal
de34380aed
[-Wsign-compare] readline_highlighters.cc
9 years ago
Suresh Sundriyal
e1f922d25a
[-Wsign-compare] Type mismatch: db_sub_source.hh
9 years ago
Suresh Sundriyal
e41549f96c
[-Wsign-compare] Fix the type mismatch warnings.
9 years ago
Timothy Stack
66c5d9413e
fix piping lnav
9 years ago
Timothy Stack
7efedcdafc
[lint] remove unnecessary null checks
9 years ago
Timothy Stack
e71985a951
need to check the view stack in rebuild_indexes()
9 years ago
Timothy Stack
033c861028
[cmd] next/prev-mark commands
9 years ago
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.
9 years ago
Suresh Sundriyal
27b0a67168
[build] autogen
9 years ago
Suresh Sundriyal
707ccce9c0
[build] Stop readline macro from polluting the environment variables.
9 years ago
Suresh Sundriyal
4ed9765610
[Coverity] Fix dereference before null check.
9 years ago
Suresh Sundriyal
c386814850
[Coverity] Printf arg type mismatch.
9 years ago
Suresh Sundriyal
6a2c28450e
[Coverity] Initialize class variables.
9 years ago
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.
9 years ago
Tim Stack
fdcb75d198
Merge pull request #157 from sureshsundriyal/wip
...
Fix the tests when not compiled with bz2 support.
9 years ago
Timothy Stack
44d2e12403
[text] add filtering support to the plain text view
...
Fixes #149 #148
9 years ago
Suresh Sundriyal
521767eeb9
[build] autogen
9 years ago
Suresh Sundriyal
acd913b9f9
[Compile errors] test_override.cc -> test_override.c
9 years ago
Timothy Stack
282e70445e
[pretty] reformat all displayed lines instead of just the top one
...
Fixes #150
9 years ago
Suresh Sundriyal
ed0baf7c1c
[build] Add custom silent rules.
...
Add custom silent rules for ptime/bin2c/sqlite3/rm commands.
9 years ago
Timothy Stack
8fb15e455a
[cmd] add a relative-goto command
9 years ago
Suresh Sundriyal
1025015bc8
[build] autogen.sh run
9 years ago
Suresh Sundriyal
40250d41d9
[build] autogen.sh run
9 years ago
Timothy Stack
4ea800a8f8
[build] messed up sigset init
9 years ago
Timothy Stack
219a4baad1
[ui] lower the index rebuild frequency when the command line is active
9 years ago
Suresh Sundriyal
23e2d86421
[build] autogen run
9 years ago
Timothy Stack
42521ef337
[hist] the wrong view could be used when switching from hist to log
9 years ago
Timothy Stack
cf462cecde
[hist] need to rebuild the histogram if files are closed
9 years ago
Suresh Sundriyal
6567b53266
[Coverity] Eliminate null pointer dereferencing.
...
There is a possibility that 'name' might be NULL and {get/set}env might
dereference it.
9 years ago
Suresh Sundriyal
e3f2939904
[Coverity] Uninitialized variable.
...
Zero out 'msg' during declaration.
9 years ago
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.
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
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.
9 years ago
Timothy Stack
b02430f4d9
add netinet include
9 years ago
Timothy Stack
fa2ed5621d
[build] autogen run
9 years ago
Timothy Stack
ff724e4941
[pipe-to] set env vars for each log line column
9 years ago
Timothy Stack
aea0bd54e0
[cmd] add a :redraw command to do a full redraw of the window
...
Fixes #18
9 years ago
Timothy Stack
12b81fe4e7
[format] fix full message read for json formats
9 years ago
Timothy Stack
dc79bd3bf5
[nav] reset where shift+j/k set bookmarks after scrolling
...
Fixes #13
9 years ago
Timothy Stack
12e0befe30
[pretty-print] try to reverse lookup IP addresses
9 years ago
Timothy Stack
c3968e4291
[pretty-print] remove some extra line feeds
9 years ago
Timothy Stack
3e7063a522
[pretty-print] put closing curlys on their own line
9 years ago
Tim Stack
facb75589b
Merge pull request #128 from sureshsundriyal/master
...
Partial fix for issue#53 (Allow the use of yajl installed on the system)
9 years ago
Timothy Stack
1a9e41cf2f
use stringstream instead of strstream
9 years ago
Timothy Stack
c670a86d04
[pretty-print] first pass at a pretty-printer
...
Defect Number:
Reviewed By:
Testing Done:
9 years ago
Timothy Stack
1d3481c3fa
[cmd] add pipe-to and pipe-line-to commands
9 years ago
Timothy Stack
64df915a5a
[piper] fix some ownership issues with the piper fd
9 years ago
Suresh Sundriyal
74da06a8b8
[build] Define a USE_INCLUDED_YAJL conditional
...
Define a USE_INCLUDED_YAJL conditional which can be used to skip the
included YAJL files if there are local ones available.
9 years ago
Timothy Stack
9ded31f647
display autotools version
9 years ago
Suresh Sundriyal
bd2ae532de
Update the generated build files.
9 years ago
Timothy Stack
974aafe1b9
[search] fix searching when a file is deleted and recreated
9 years ago
Timothy Stack
23344ac8b2
build fix
9 years ago
Timothy Stack
b5b4a241e2
build
9 years ago
Timothy Stack
fad59bfaf1
[ptime] fix endianness and parsing issues
9 years ago
Timothy Stack
c80e181790
fix ptime_b_slow, again...
10 years ago
Timothy Stack
a2caf34028
[sysclip] fix NULL deref
10 years ago
Timothy Stack
0b816dd45d
[nav] fix time-based navigation when filtering is active
10 years ago
Timothy Stack
c2e44c5998
[filter] fix for multiple filter-ins being applied
10 years ago
Timothy Stack
99f34a1447
[fmt] add a vmkernel log format
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Timothy Stack
6a90dd9bc2
copy search terms to OS-Xs find clipboard
...
Fixes #108
10 years ago
Tim Stack
80ef38227b
Merge pull request #120 from iranzo/master
...
Add support for OpenStack log formats (tested on neutron, nova)
10 years ago
Pablo Iranzo Gómez
8fc539df16
Specify timestamp and url for Openstack log files
10 years ago
Pablo Iranzo Gómez
d1c5f12bfc
Add support for OpenStack log formats (tested on neutron, nova)
10 years ago
Suresh Sundriyal
114a7a6ecf
[log_accel] Minor refactoring.
...
Unless I am misunderstanding the intention behind the equation:
(A - D)/C - (B - D)/C = (A - B)/C
The output seems to be exactly the same:
Before:
=======
1m7s000│Nov 11 06:45:01 XXX-XXX CRON[28452]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
11m7s000│Nov 11 06:55:01 XXX-XXX CRON[28819]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
21m7s000│Nov 11 07:05:01 XXX-XXX CRON[29186]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
31m7s000│Nov 11 07:15:01 XXX-XXX CRON[29552]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
33m7s000│Nov 11 07:17:01 XXX-XXX CRON[29629]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
41m7s000│Nov 11 07:25:01 XXX-XXX CRON[29922]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
51m7s000│Nov 11 07:35:01 XXX-XXX CRON[30290]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
1h1m7s000│Nov 11 07:45:01 XXX-XXX CRON[30657]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
After:
======
1m7s000│Nov 11 06:45:01 XXX-XXX CRON[28452]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
11m7s000│Nov 11 06:55:01 XXX-XXX CRON[28819]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
21m7s000│Nov 11 07:05:01 XXX-XXX CRON[29186]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
31m7s000│Nov 11 07:15:01 XXX-XXX CRON[29552]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
33m7s000│Nov 11 07:17:01 XXX-XXX CRON[29629]: (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
41m7s000│Nov 11 07:25:01 XXX-XXX CRON[29922]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
51m7s000│Nov 11 07:35:01 XXX-XXX CRON[30290]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
1h1m7s000│Nov 11 07:45:01 XXX-XXX CRON[30657]: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
Some names and identifying details in the log snippets above have been changed
to protect the privacy of individuals. Any resemblance to actual computers,
sentient or otherwisei, is purely coincidental.
10 years ago