Commit Graph

285 Commits (fc79d703b19a450d2637b9cd1e2e9abf6b689435)

Author SHA1 Message Date
Timothy Stack e7f5bf3a6a [3rd-party] import ghc/filesystem 4 years ago
Suresh Sundriyal 3a9967cbf5 [build] Get rid of BUILT_SOURCES 4 years ago
Suresh Sundriyal cc6f0a06dd [build] Add some explicit dependencies.
This should fix the individual make targets.
4 years ago
Timothy Stack 6ec90c521b [build] dump crash log during build 4 years ago
Suresh Sundriyal f8e990cf76 [dist] Some more distribution related cleanup.
Remove init-sql.h from the distributed package and remove the redundant
files from DISTCLEAN.
4 years ago
Suresh Sundriyal 8b2bcca752 [dist] Stop packaging builtin-scripts.h 4 years ago
Timothy Stack f43d05a49a [build] more dist fixes 4 years ago
Suresh Sundriyal 63ed3ee677 [dist] Prevent distributing built sources 4 years ago
Timothy Stack a5171058c7 [build] some built files were being included in the dist 4 years ago
Suresh Sundriyal 2062a0c740 [cross-compile] Use 'BUILD_EXEEXT' as the suffix for build binaries.
Some compilers automatically append the system binary suffix. If lnav is
cross compiled on such systems; then we should be using this suffix for
the binaries that are built and run as part of the build process.
4 years ago
Suresh Sundriyal bc0dc337ef [cross-compiling] Disable document generation during cross-compilation
Document generation requires exec'ing lnav which might not be possible
while cross-compiling.
4 years ago
Suresh Sundriyal 4946f79ec1 [ptimec] Rename ptimec.cc -> ptimec.c 4 years ago
Suresh Sundriyal 57e0b9f3f3 [cross-compiling] Fix distcheck target 4 years ago
Suresh Sundriyal d118a60a36 [cross-compile] Allow build artifacts to be built with build compilers.
While cross-compiling; bin2c and ptimec need to run during build on the
build-host. Currently; the host compiler is picked and the generated
binaries cannont be exec'ed causing the build to fail.

The change fixes the bin2c and ptimec compilation units to use the
build host compatible compiler.
4 years ago
Timothy Stack da772a6486 [build] try to fix distclean issue 4 years ago
Timothy Stack 9773efd3a5 [keymap] add german keymap 4 years ago
Timothy Stack f3d172c831 [keymap] add a french keymap 4 years ago
Timothy Stack 8734795505 [keymap] handle unicode keys and add UK keymap
Fixes #392
4 years ago
Timothy Stack 84a7079e3f [main] capture stderr only after initscr() and fix curl configure detection 4 years ago
Timothy Stack c6196fe79f [build] missed TEXT2C_FILES 4 years ago
Timothy Stack 8f4149db94 [build] need to dist the format files 4 years ago
Timothy Stack 8e9ef5765f [formats] break up default-log-formats.json into separate files for each file format
Defect Number:
    Reviewed By:
   Testing Done:
4 years ago
Timothy Stack 7e36c6b3d0 [build] do not fail if syslog is not readable during build 4 years ago
Timothy Stack 8413dd13d8 [config] add configs directory 4 years ago
Timothy Stack 3da3ec799a [session] allow the name 4 years ago
Timothy Stack 73e902f7d8 [json-log] handle invalid json log lines
Header from folded patch 'foldme1.patch':

[local] foldme
5 years ago
Timothy Stack 3669b73e5b [highlight] avoid highlighting keywords in comments and strings 5 years ago
Timothy Stack b81b35c866 [log-view] in time-offset mode, show negative times for messages before the first mark
Prototype for #395
5 years ago
Timothy Stack e27cf3b158 [data-parser] limit the number of pairs produced
Fixes #645
5 years ago
Timothy Stack 02c53976b4 Some refactoring for the line buffer and other cleanups
Fixes #649
5 years ago
Timothy Stack 1fc24ecabf [bin2c] improve building of data files that are incorporated into the binary 5 years ago
Timothy Stack 65d9240300 [theme] add eldar theme 5 years ago
Timothy Stack fb7d6eafaf [build] some refactoring of files 5 years ago
Timothy Stack 63e53377c3 [theme] add monocai theme 5 years ago
Timothy Stack a8e1f62da6 [build] add fmt lib 5 years ago
Timothy Stack 06d1098211 [config] initial support for themes
For #422

Still more to do
5 years ago
Timothy Stack 153b59ea8a [status] some fixes for the bottom status bar
Fixes #603
Fixes #578
6 years ago
Timothy Stack 104b8736e8 [vtab] fix for failed update to log_tags column and fix filtering with json logs 6 years ago
Timothy Stack 7c95941920 [build] add ring_span.hh to makefile 6 years ago
Timothy Stack 814ad03ec9 [view] keep a history of view positions
Fixes #577
6 years ago
Timothy Stack 2345a32423 [filter] add panel that shows the set of filters
Initial version, still needs some cleanup
6 years ago
Timothy Stack 80456791ac [build] missed adding header to makefile 6 years ago
Timothy Stack 2589345e5c [perf] improve initial indexing times 6 years ago
Timothy Stack 5f5e2d5c4e [cleanup] prune some includes and some other cleaning
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack d1856b53ba [build] avoid adding -I/usr/include to CPPFLAGS
Defect Number:
    Reviewed By:
   Testing Done:
6 years ago
Timothy Stack f241704a93 [readline] do a fuzzy match if the prefix match fails to find anything
Prototype for #541
6 years ago
Timothy Stack 5689984702 [yajlpp] use pointer to member over nullobj() 6 years ago
Timothy Stack 2070c669de [ptime] fix PM offset
Fixes #517
6 years ago
Timothy Stack 7fb881222d [pretty] highlight log messages in the pretty view as in the normal log view 6 years ago
Timothy Stack 9f91d3b447 [log-view] display the unique parts of the file name instead of just the base
Instead of just displaying the base name of the file, try to include some
additional parts of the path that make a unique string.
7 years ago
Timothy Stack 74b58ed9fc [highlights] allow the highlight color to be specified in log formats
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Medina Maza b4152056af Added time format for day month year hour:minutes:seconds and optional millis 7 years ago
Timothy Stack 4b40b3f9f5 [date-time] add a formatter for 0x0p+0
Defect Number:
    Reviewed By:
   Testing Done:
7 years ago
Timothy Stack 689bcadc94 [time_fmts] add a default time format
Fixes #467
7 years ago
Timothy Stack 2e095fb03e [time] add a time format 7 years ago
Timothy Stack 9d249004ac [time-offset] add days to offset
Fixes #435
8 years ago
Timothy Stack 8ea51a6fd8 [formats] support for CSV/TSV log formats
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack d2d7f78827 [build] missed header 8 years ago
Timothy Stack 16fd7ec785 [help] remove old command help and add some more filesystem extensions 8 years ago
Timothy Stack b25a7e8b86 [build] fix path to release script 8 years ago
Timothy Stack 21f964b642 [build] zip up the travis artifact
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 240d71246c [travis] try to publish builds on github
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 78119dc9f1 fixing some minor issues
Fixes #255
8 years ago
Timothy Stack 00ebd10d71 [cmds] do a dry-run of a command to check for errors
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack cd76eae5b8 [build] convert some C files to C++
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 8776f6a703 [sql] do some minimal parsing/annotation of SQL statements
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 0b157ff867 [sql] add function adapter template
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack c0684a97cc [sql] add a regexp_capture tablue-valued function
Fixup the release makefile a bit.
8 years ago
Timothy Stack fa296fca1b [listview] get a batch of rows from the source instead of a single one at a time
Also: bump to c++14 and added a helper template for creating sqlite virtual tables
8 years ago
Timothy Stack 32c9dacd0a [files_vtab] add a vtable for opened files
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack c180c44e49 [vtab] add an lnav_view_stack table to get programmatic access to the view stack
More progress towards #377
8 years ago
Timothy Stack 34d1422b76 [highlight] only highlight keywords in text files
Fixes #408
8 years ago
Timothy Stack 89f8ef9c2b [hotkeys] hotkey configuration
First steps to implementing #350
8 years ago
Adam Spiers baa4ec0eb2 add two more common time formats
Since 26cd9f59 introduced stricter timestamp parsing so that
the full string now has to be matched, several of the 3rd party
formats installable via "lnav -i extra" broke.  So add a couple
more very common timestamp formats to address these.
8 years ago
Timothy Stack 26cd9f5930 [ptime] make sure the full time stamp is matched
Fixes #389
Fixes #390
8 years ago
Timothy Stack b392886f0c [highlight] choose highlight color based on the regex
Defect Number:
    Reviewed By:
   Testing Done:
8 years ago
Timothy Stack 41854cf637 [json-log] custom date formats
Fixes #341
8 years ago
Suresh Sundriyal 6cea55ae3d [freebsd] More out of source build related fixes. 8 years ago
Suresh Sundriyal 7c670bc730 [freebsd] Fix out of source builds 8 years ago
Timothy Stack 3167302722 [data-parser] fix some issues with parsing hierarchical data and improve the debugger 9 years ago
Timothy Stack 4f05af6408 [time] add support for TAI64N timestamps
Fixes #300
9 years ago
Timothy Stack 0e2d204be4 missed a new file in the makefile 9 years ago
Timothy Stack cdd43549ab [cmds] automatically capture echo/write output from scripts so they can generate reports
Add another example script, dhclient-summary.

Add a 'search-table' section to formats so you can automatically
define a search-based table.
9 years ago
Timothy Stack d12fe9e0a9 [json] add some schema validation code 9 years ago
Timothy Stack fb7225ed3f add a time format 9 years ago
Timothy Stack a2b381ca19 [config] initial impl with clock-format as the only option at the moment 9 years ago
Timothy Stack e5f786bc2c [script] add metadata to script files 9 years ago
Timothy Stack e07b4e448f [exec] add a prompt to execute lnav scripts 9 years ago
Timothy Stack 224a7196e4 [cmd] hide lines commands 9 years ago
Timothy Stack f11cca2366 [sql] add a timeslice() function 9 years ago
Timothy Stack ec473edc85 [cmd] add support for times in goto 9 years ago
Timothy Stack 2b5447f59c [sql] add a log_search table 9 years ago
Timothy Stack f286950854 [curl] add a curl looper to handle url requests 9 years ago
Timothy Stack d2d8c75135 [sql] add an lnav_views table 9 years ago
Timothy Stack 4573964fd2 always build papertrail_proc 9 years ago
Timothy Stack f1dd99328d [lnav.cc] move more stuff out of lnav.cc 9 years ago
Timothy Stack 6b971ccd66 move stuff out of lnav.cc
Defect Number:
    Reviewed By:
   Testing Done:
9 years ago
Timothy Stack 879bbd581e [pt] rough draft of tail for papertrail 9 years ago
Timothy Stack 054e8d489b [data-scanner] convert to using re2c 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
Timothy Stack 100e4233d5 [ptime] fix parsing for double digit year 9 years ago
Timothy Stack cec3d0cb72 [generic_log] add time format that includes zone 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
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
Timothy Stack 245a3c3d1b [fmt] allow timestamp to be specified in the log format
Fixes #155
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
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
Suresh Sundriyal 707ccce9c0 [build] Stop readline macro from polluting the environment variables. 10 years ago
Timothy Stack 44d2e12403 [text] add filtering support to the plain text view
Fixes #149 #148
10 years ago
Suresh Sundriyal acd913b9f9 [Compile errors] test_override.cc -> test_override.c 10 years ago
Suresh Sundriyal ed0baf7c1c [build] Add custom silent rules.
Add custom silent rules for ptime/bin2c/sqlite3/rm commands.
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 6a90dd9bc2 copy search terms to OS-Xs find clipboard
Fixes #108
10 years ago
Timothy Stack cfa628f6c4 various fixes
Defect Number:
    Reviewed By:
   Testing Done:
10 years ago
Timothy Stack c7cd0961ab [build] make dist fixes 10 years ago
Timothy Stack d4bea593b7 [perf] optimize json log loading 10 years ago
Timothy Stack a71ca1f1ca [filter] some improvements to the core filtering code 10 years ago
Timothy Stack d557002724 [format] add OpenAM log formats 10 years ago
Timothy Stack 9220c3c926 [timefmt] some more time formats
Handle month/day/hour formats without a leading zero.
10 years ago
Timothy Stack 353dfec878 [sql] add an environ virtual table
Defect Number:
    Reviewed By:
   Testing Done:
11 years ago
Timothy Stack 1974e1f1ae [jsonptr] initial impl 11 years ago
Timothy Stack 72e3a4d8df [format] add TCF file format and some fixes to make it work
Defect Number:
    Reviewed By:
   Testing Done:
11 years ago
Timothy Stack 8372cef11c [date] code generator for strptime formats 11 years ago
Timothy Stack 4ce9a1e871 [elapsed-time] add a visual indicator for sharp changes in message rate 11 years ago
Timothy Stack 9ff6a3cbe9 [write-json] add a command to write results as json 11 years ago
Timothy Stack f94015e5b5 [readline] highlight pcre syntax in the search prompt 11 years ago
Timothy Stack c347485834 [config] add more config directories to search 11 years ago
Timothy Stack 64fe8175a6 [log] add an internal logger instead of using redirected stderr 11 years ago
Timothy Stack 034bde1854 Add term_extra.hh to noinst_HEADERS 11 years ago
Suresh Sundriyal cd49dc5226 Static linking related cleanup.
* Remove traces of libcrypto, since we don't use OpenSSL anymore.
* Add libgpm and libtinfo to the list of static_lib_list.
11 years ago
Suresh Sundriyal 35584d6482 Fix Makefile.am to use Spookyhash code. 11 years ago
Timothy Stack 5ef8a168a7 [perf] reduce copies of log messages 11 years ago
Timothy Stack 59c1d4313b [mouse] more mouse support and other fixes 11 years ago
Timothy Stack b4ed348428 [build] mostly static linking stuff 11 years ago
Timothy Stack 2cd356b4c5 [log format] some more work to externalize log formats; color identifiers in logs 11 years ago
Timothy Stack db963c16cb [perf] use k-way merge instead of stable_sort when building the index of all lines 11 years ago
Timothy Stack 025ca0586b [sql] add some more internal state functions 11 years ago
Timothy Stack af3d2a432f [sql] add a logline_datetime function 11 years ago
Timothy Stack eee43efd5a [build] bsd build 11 years ago
Timothy Stack c93172824c [logline] cache log line schemas to make subsequent queries faster and other tweaks 11 years ago
Timothy Stack 61d3af6e62 [parsing] fix some bugs and improve performance of the scanner 11 years ago
Vagrant User 988fe187b6 [build] freebsd build fixes 11 years ago
Timothy Stack 8f0aac9dbd [test] add a test for the ansi scrubber 11 years ago
Timothy Stack 5d478fc17a [cleanup] start a tracer/debugger for the data parser 11 years ago
Timothy Stack 5ba3097ee7 [cleanup] move some code around and try to pretty things up a bit 11 years ago
Timothy Stack e5d9779cde [session] save bookmarks 11 years ago
Timothy Stack 9304add25b [session] start session support 11 years ago
Timothy Stack 5bc8ebea96 [fs sql func] multi-argument joinpath and add some tests 12 years ago
Timothy Stack 0dba72db71 [nits] fix some minor bugs and add some path manipulation functions to sqlite 12 years ago