Phil Hord
eee7d0ddfc
Squash a bunch of signed/unsigned warnings
2018-03-29 10:49:38 -07:00
Timothy Stack
7d7060ae4c
[generic_log] fix recognition for generic logs
...
The generic format picks up extra text in the timestamp, which
caused the date time scanner to reject some matches. I think
it's okay to allow for some trailing junk, so it no longer
ensures the size of the match is the same as the input.
2018-02-04 22:21:18 -08:00
Timothy Stack
a6d4563d7d
[build] missing header
2017-12-29 07:02:19 -08:00
Timothy Stack
4b40b3f9f5
[date-time] add a formatter for 0x0p+0
...
Defect Number:
Reviewed By:
Testing Done:
2017-12-07 06:36:12 -08:00
Suresh Sundriyal
0c88eeeb07
Fix lnav builds on OpenBSD.
...
* Remove all the wordexp related unused headers and code.
* stdout does not appear to be reassignable on OpenBSD.
* defining _WCHAR_H_CPLUSPLUS_98_CONFORMANCE_ seems to fix the const
correctness related redefinitions between wchar.h imported from
the system libc and the one imported by clang++ STL.
2017-10-28 05:21:02 -07:00
Timothy Stack
7240aaa127
[time] an epoch timestamp should not have whitespace
2017-05-13 06:53:58 -07:00
Timothy Stack
8ea51a6fd8
[formats] support for CSV/TSV log formats
...
Defect Number:
Reviewed By:
Testing Done:
2017-04-23 07:11:21 -07:00
Adam Spiers
43ac6366cb
fix -Wformat time_t warnings ( #368 )
...
Fix warnings like:
ptimec.hh: In function ‘void ftime_i(char*, off_t&, ssize_t, const exttm&)’:
ptimec.hh:387:57: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
snprintf(&dst[off_inout], len - off_inout, "%lld", t);
^
In this case we know that the `t` returned by `tm2sec` is a number of
seconds, so a long should be long enough, and anyway there is already
code checking for overflow.
Fixes #368 .
https://github.com/tstack/lnav/issues/368
2016-11-22 19:42:41 +00:00
Timothy Stack
26cd9f5930
[ptime] make sure the full time stamp is matched
...
Fixes #389
Fixes #390
2016-11-22 08:38:45 -08:00
Timothy Stack
4c0a8d0376
[ptime] need to clear the zone from the base when using a custom time format
2016-11-04 11:00:51 -07:00
Timothy Stack
41a2eed239
[pretty-print] fix printing of quoted strings that have escaped characters
...
Fixes #354
2016-10-14 11:18:00 -07:00
Timothy Stack
876b37ade0
[log-format] add "truncate" overflow value
2016-08-22 23:28:14 -07:00
Timothy Stack
c05dfafae8
[log-format] abbreviate long fields when formatting JSON logs
...
Fixes #340
2016-08-22 06:45:27 -07:00
Timothy Stack
41854cf637
[json-log] custom date formats
...
Fixes #341
2016-08-18 22:15:35 -07:00
Timothy Stack
96191badf3
[release] update versions for release and fix some time issues
2016-04-04 23:55:43 -07:00
Timothy Stack
4f05af6408
[time] add support for TAI64N timestamps
...
Fixes #300
2016-04-02 20:58:20 -07:00
Timothy Stack
7a6429519f
[summary-line] change error count to error rate and do some cleanup on message levels
2016-03-24 23:58:25 -07:00
Timothy Stack
7c74ecf1e7
[logview] add a "time span" section to the summary and right justify the summary
2016-03-15 09:53:04 -07:00
Timothy Stack
ff35d811e2
[logview] more summary line tweaks
2016-03-14 06:25:38 -07:00
Timothy Stack
80e5e8fcce
[logview] add a line with summary information to the log view
2016-03-13 22:22:27 -07:00
Timothy Stack
9213a6b58b
[out-of-order] some more tweaks for out-of-order
2016-03-07 21:17:57 -08:00
Timothy Stack
a2b381ca19
[config] initial impl with clock-format as the only option at the moment
2016-01-05 06:18:58 -08:00
Timothy Stack
87b07a0087
[sql] allow log_part to be updated
2015-12-22 05:27:36 -08:00
Timothy Stack
e07b4e448f
[exec] add a prompt to execute lnav scripts
2015-12-18 22:39:27 -08:00
Timothy Stack
c4ae8d158c
[fmt] minor fix for the generic_log format and add another pattern to vmw_log
2015-12-10 20:36:25 -08:00
Timothy Stack
64cbab1281
[sql] exec .sql files in format dirs
2015-11-26 22:19:53 -08:00
Timothy Stack
ec473edc85
[cmd] add support for times in goto
2015-09-14 08:56:42 -07:00
Timothy Stack
399c78d86d
[pretty] pretty-print the contents of strings
...
Fixes #250
2015-08-26 21:28:30 -07:00
Timothy Stack
bedae8c8c2
[fmt] install/update formats from git repos
...
Fixes #244
2015-08-09 21:03:23 -07:00
Timothy Stack
83b92c3b65
[papertrail] add support for time ranges
2015-08-04 08:39:32 -07:00
Timothy Stack
f286950854
[curl] add a curl looper to handle url requests
2015-08-02 06:43:57 -07:00
Timothy Stack
cec3d0cb72
[generic_log] add time format that includes zone
2015-05-17 05:15:41 -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
0452bc0438
[build] some more sign-compare stuff
2015-04-04 16:13:12 -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
Timothy Stack
1d3481c3fa
[cmd] add pipe-to and pipe-line-to commands
2015-03-16 09:16:49 -07:00
Timothy Stack
cd953a548c
[filter] update the UI during filtering again
...
Defect Number:
Reviewed By:
Testing Done:
2014-11-03 06:07:36 -08:00
Timothy Stack
2d23f8e809
[time] use the gmtime from newlib
...
Defect Number:
Reviewed By:
Testing Done:
2014-11-02 19:35:15 -08:00
Timothy Stack
0859f69c9f
try to fix a crash related to deleted files
2014-10-31 04:49:16 -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
8372cef11c
[date] code generator for strptime formats
2014-03-22 08:02:48 -07:00
Timothy Stack
9ff2d3774d
[line_buffer] split long lines
...
Fixes #81
2014-03-15 04:40:58 -07: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
e9d8172f61
instantiate templates for other number types
2014-02-01 09:53:29 -08:00
Timothy Stack
5ef8a168a7
[perf] reduce copies of log messages
2014-02-01 06:41:11 -08:00
Timothy Stack
13ecf0abf7
[date_time] temporary perf hack, parsing timezone is slow...
2014-01-21 06:45:27 -08:00
Timothy Stack
5e011a9203
[cygwin] misc fixes to get things building/running on windows
...
This change is just a first step, it should get the basics going. But,
the tests don't all build and there are probably other issues when
running.
2014-01-07 07:35:52 -08:00