{ "name": "lnav", "version": "0.14.1", "summary": "lnav: the log file navigator; merges, colours and filters logs by time and level, with SQL over them", "category": "tool", "license": "BSD-2-Clause", "homepage": "https://lnav.org/", "source": { "url": "https://github.com/tstack/lnav/releases/download/v0.14.1/lnav-0.14.1.tar.bz2", "sha256": "7072b45e74b9d5e2d1316f49e13d200e05ccde52631a4d4b5469bbaba5e159b2" }, "watch": {"kind": "github-release", "repo": "tstack/lnav", "tag_regex": "^v([0-9]+(?:\\.[0-9]+)+)$"}, "deps": [ "ncurses", "pcre2", "sqlite", "curl", "libarchive", "zlib", "bzip2", "libunistring" ], "env_packages": [], "static": true, "nss": true, "check": "bin/lnav -V | has 'lnav 0.14.1' && t=$(mktemp -d) && printf 'Oct 3 10:00:01 nas kernel: bvs check one\\nOct 3 10:00:02 nas sshd[123]: error: bvs check two\\nOct 3 10:00:03 nas sshd[124]: bvs check three\\n' > \"$t/syslog\" && HOME=$t bin/lnav -n -c ';SELECT count(*) AS bvs_n FROM syslog_log' \"$t/syslog\" > \"$t/out\" 2>&1 && has 'bvs_n' < \"$t/out\" && has '\\b3\\b' < \"$t/out\" && HOME=$t bin/lnav -n -c ';SELECT log_procname FROM syslog_log WHERE log_level = \"error\"' \"$t/syslog\" 2>&1 | has 'sshd' && echo 'lnav: a syslog file read as a table; a count and the error line found by SQL'" }