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
Timothy Stack
e1874c0278
use poll instead of select so we can handle more than FD_SETSIZE files
10 years ago
Suresh Sundriyal
9f53d1d3d1
[regex] VMKernel logs have ALERT as well as WARNING.
10 years ago
Tim Stack
20e1fc06dd
Merge pull request #207 from sureshsundriyal/wip
...
[terminal] Print out an error when openpty fails.
10 years ago
Suresh Sundriyal
7e5d5a72bd
[terminal] Print out an error when openpty fails.
...
tstack/lnav#206
10 years ago
Timothy Stack
0b232a7588
[headless] multiline support for command files
10 years ago
Timothy Stack
2dfae4f7f9
[pretty] add some more tests and leave leading spaces alone in some cases
10 years ago
Suresh Sundriyal
1de2a30560
[wsign-compare] FreeBSD builds fail while comparing int with FD_SETSIZE.
10 years ago
Timothy Stack
5f7344874b
[pretty] only start a new line after a comma if we're in a structure
10 years ago
Timothy Stack
d6d652ec38
various tweaks
10 years ago
Suresh Sundriyal
7da767bc07
[build] More changes for git version string.
10 years ago
Suresh Sundriyal
0c979afc09
[build] Add the git cln to the lnav version.
10 years ago
Timothy Stack
c58f44bb3f
[headless] completely read stdin in headless mode before running commands
10 years ago
Timothy Stack
32e96e6395
[pipe-to] fix some issues when running pipe in headless mode
10 years ago
Timothy Stack
1e7c988d85
[bookmark] fix static initializer order for the bookmark types
10 years ago
Timothy Stack
7b8bc67cc9
[pretty] drop extra new lines
10 years ago
Timothy Stack
a300ce9977
[format] order the formats based on sample matches
10 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.
10 years ago
Suresh Sundriyal
7e3036cb86
[build] autogen
10 years ago
Suresh Sundriyal
bfee33b7fd
Turn on 'sign-compare' error check for tests.
10 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.
10 years ago
Timothy Stack
0452bc0438
[build] some more sign-compare stuff
10 years ago
Timothy Stack
38e56b63ea
[hist] fix the histogram when filters change
10 years ago
Tim Stack
1a204c6915
remove leftover test code
10 years ago
Timothy Stack
0d97e7ef59
override gettimeofday for testing
10 years ago
Timothy Stack
62011b4226
fix an errant include
10 years ago
Timothy Stack
408c690192
[log] some more logging cleanup
10 years ago
Timothy Stack
f0f819b119
[log] dump more state on a crash
10 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.
10 years ago
androm3da
a66db0fd8b
[time_formats] Added another time format
...
Added a new time format to the list
10 years ago
Suresh Sundriyal
32c6874665
[-Wsign-compare] lnav_log.cc
10 years ago
Suresh Sundriyal
19e6303fac
[-Wsign-compare] lnav.cc
10 years ago
Suresh Sundriyal
8c329130ed
[-Wsign-compare] logfile_sub_source.cc
10 years ago
Suresh Sundriyal
410c2a3cd7
[-Wsign-compare] lnav_commands.cc
10 years ago
Suresh Sundriyal
c61bfbecad
[-Wsign-compare] log_vtab_impl.cc
10 years ago
Suresh Sundriyal
ff4db03d5b
[-Wsign-compare *&& -Wuninitailzed] log_format.cc
10 years ago
Suresh Sundriyal
a21c172d8e
[Coverity] Fix a forward null.
10 years ago
Suresh Sundriyal
e6d97795fe
[-Wunused-but-set-variable] vt52_curses.cc
10 years ago
Suresh Sundriyal
fe6f3ec1ae
[-Wsign-compare] view_curses.hh
10 years ago
Suresh Sundriyal
72bdbb5839
[-Wsign-compare] statusview_curses.hh
10 years ago
Suresh Sundriyal
67e79fb07c
[-Wsign-compare] readline_curses.cc
10 years ago
Suresh Sundriyal
36b012eba3
[-Wsign-compare] filter_observer.hh
10 years ago
Suresh Sundriyal
35feb28212
[-Wsign-compare] textview_curses.hh
10 years ago
Suresh Sundriyal
c23ea2cf96
[-Wsign-compare] json_ptr.hh
10 years ago
Suresh Sundriyal
04471054d8
[-Wsign-compare] data_scanner.hh
10 years ago
Suresh Sundriyal
de34380aed
[-Wsign-compare] readline_highlighters.cc
10 years ago
Suresh Sundriyal
e1f922d25a
[-Wsign-compare] Type mismatch: db_sub_source.hh
10 years ago
Suresh Sundriyal
e41549f96c
[-Wsign-compare] Fix the type mismatch warnings.
10 years ago
Timothy Stack
66c5d9413e
fix piping lnav
10 years ago
Timothy Stack
7efedcdafc
[lint] remove unnecessary null checks
10 years ago
Timothy Stack
e71985a951
need to check the view stack in rebuild_indexes()
10 years ago
Timothy Stack
033c861028
[cmd] next/prev-mark commands
10 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.
10 years ago
Suresh Sundriyal
27b0a67168
[build] autogen
10 years ago
Suresh Sundriyal
707ccce9c0
[build] Stop readline macro from polluting the environment variables.
10 years ago
Suresh Sundriyal
4ed9765610
[Coverity] Fix dereference before null check.
10 years ago
Suresh Sundriyal
c386814850
[Coverity] Printf arg type mismatch.
10 years ago
Suresh Sundriyal
6a2c28450e
[Coverity] Initialize class variables.
10 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.
10 years ago
Tim Stack
fdcb75d198
Merge pull request #157 from sureshsundriyal/wip
...
Fix the tests when not compiled with bz2 support.
10 years ago
Timothy Stack
44d2e12403
[text] add filtering support to the plain text view
...
Fixes #149 #148
10 years ago
Suresh Sundriyal
521767eeb9
[build] autogen
10 years ago
Suresh Sundriyal
acd913b9f9
[Compile errors] test_override.cc -> test_override.c
10 years ago
Timothy Stack
282e70445e
[pretty] reformat all displayed lines instead of just the top one
...
Fixes #150
10 years ago
Suresh Sundriyal
ed0baf7c1c
[build] Add custom silent rules.
...
Add custom silent rules for ptime/bin2c/sqlite3/rm commands.
10 years ago
Timothy Stack
8fb15e455a
[cmd] add a relative-goto command
10 years ago
Suresh Sundriyal
1025015bc8
[build] autogen.sh run
10 years ago
Suresh Sundriyal
40250d41d9
[build] autogen.sh run
10 years ago
Timothy Stack
4ea800a8f8
[build] messed up sigset init
10 years ago
Timothy Stack
219a4baad1
[ui] lower the index rebuild frequency when the command line is active
10 years ago
Suresh Sundriyal
23e2d86421
[build] autogen run
10 years ago
Timothy Stack
42521ef337
[hist] the wrong view could be used when switching from hist to log
10 years ago
Timothy Stack
cf462cecde
[hist] need to rebuild the histogram if files are closed
10 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.
10 years ago
Suresh Sundriyal
e3f2939904
[Coverity] Uninitialized variable.
...
Zero out 'msg' during declaration.
10 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.
10 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.
10 years ago
Suresh Sundriyal
1c0d3a4f5a
[Warnings] varargs with reference parameters.
...
'va_start' has undefined behvaior with reference types, so use a pointer instead.
10 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.
10 years ago
Timothy Stack
b02430f4d9
add netinet include
10 years ago
Timothy Stack
fa2ed5621d
[build] autogen run
10 years ago
Timothy Stack
ff724e4941
[pipe-to] set env vars for each log line column
10 years ago
Timothy Stack
aea0bd54e0
[cmd] add a :redraw command to do a full redraw of the window
...
Fixes #18
10 years ago
Timothy Stack
12b81fe4e7
[format] fix full message read for json formats
10 years ago
Timothy Stack
dc79bd3bf5
[nav] reset where shift+j/k set bookmarks after scrolling
...
Fixes #13
10 years ago
Timothy Stack
12e0befe30
[pretty-print] try to reverse lookup IP addresses
10 years ago
Timothy Stack
c3968e4291
[pretty-print] remove some extra line feeds
10 years ago
Timothy Stack
3e7063a522
[pretty-print] put closing curlys on their own line
10 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)
10 years ago
Timothy Stack
1a9e41cf2f
use stringstream instead of strstream
10 years ago
Timothy Stack
c670a86d04
[pretty-print] first pass at a pretty-printer
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Timothy Stack
1d3481c3fa
[cmd] add pipe-to and pipe-line-to commands
10 years ago
Timothy Stack
64df915a5a
[piper] fix some ownership issues with the piper fd
10 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.
10 years ago
Timothy Stack
9ded31f647
display autotools version
10 years ago
Suresh Sundriyal
bd2ae532de
Update the generated build files.
10 years ago
Timothy Stack
974aafe1b9
[search] fix searching when a file is deleted and recreated
10 years ago
Timothy Stack
23344ac8b2
build fix
10 years ago
Timothy Stack
b5b4a241e2
build
10 years ago
Timothy Stack
fad59bfaf1
[ptime] fix endianness and parsing issues
10 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
Timothy Stack
cfa628f6c4
various fixes
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Timothy Stack
62f4c9e59e
[build] another missing define
10 years ago
Timothy Stack
3158b29cbd
[build] fix missing define
10 years ago
Timothy Stack
17db6e38fe
add a lo-fi mode
...
Fixes #113
10 years ago
Timothy Stack
ba83382b38
[vdsm_log] missed the level field
10 years ago
Pablo Iranzo Gómez
98e8f1b1c3
Add support for RHEV/oVirt engine.log file
10 years ago
Timothy Stack
fc31831286
[vdsm_log] add new format
10 years ago
Timothy Stack
244ee2717f
[vmw_log] fix full message read for continued messages
10 years ago
Timothy Stack
7664b75a87
missed invalidating shared buffer refs when loading new data
10 years ago
Suresh Sundriyal
fb4eb36796
[vmw_log] 'panic' is an 'error' too.
...
VPXD prints out the stackframes in the log files when it terminates
abnormally. These log messages have a log level of 'panic'. I guess
these qualify as 'error' as well.
10 years ago
Timothy Stack
82ada5103a
fix an uninitialized var
10 years ago
Timothy Stack
c5c37a3202
[vmw_log] update the formats for the vmw_log format
10 years ago
Timothy Stack
a06d620018
[filter] add tests for filtering with append
10 years ago
Timothy Stack
80cbe192cb
[filter] fix a filtering bug during tailing
10 years ago
Timothy Stack
671dca60dc
[cmd] do not error out if filter exists, just enable it
...
Defect Number:
Reviewed By:
Testing Done:
10 years ago
Suresh Sundriyal
f8ad3479db
Reduce session_data filesize and some minor cleanup.
...
After a year of not cleaning up the '~/.lnav' folder, the folder was
consuming ~8Mb of disk space. This change tries to reduce the disk
consumption by the session_data files.
- The json data in the session_data is beautified. The extra characters
contribute to some of the file size. After removing the beautification
option, the file size reduces by 60-20%, depending on how many files
are open.
Without knowing much about the functionality of these files, my
cursory tests seem to show that lnav can still restore the sessions
after this change. I don't know if these files are meant for human
consumption or not but they can easily be run through a linter to
beautify them again.
- While I was in the file, I noticed that there was a scope declared
with no code inside it. Seems like a remnant of a cleanup.
10 years ago
Timothy Stack
deeac1a5db
[formats] add a "-i" flag to make it easier to install formats
10 years ago
Timothy Stack
f9098e6bc4
[build] automate building the linux static binary
10 years ago
Timothy Stack
c7cd0961ab
[build] make dist fixes
10 years ago
Timothy Stack
0d6f067aab
[coverity] a couple of fixes
10 years ago