A collection of lnav log format definitions and analysis scripts for all things Stackable related. These scripts help analyze logs from various Stackable components.
For first-time lnav users:
# Install the scripts repository
$ lnav -i https://github.com/stackabletech/lnav_scripts.git
# Load your log file (example with HBase logs)
$ lnav hbase.ndjson
# Example: In lnav, filter by Kubernetes pod name
:filter-expr :kubernetes_pod_name = 'etu1-hbase-regionserver-default-0'
vector-json.json
- Parses JSON logs from the Vector aggregatorgraylog-json.json
- Parses JSON logs exported from Graylog (TODO: Is this customer specific?)graylog-json-extended.json
- Extended Graylog format with additional fields (TODO: Is this customer specific?)
- Apache NiFi
- Apache ZooKeeper
- Graylog
hide-containerdebug.lnav
* - Filters out containerdebug container logs
vector-json-filters.sql
- Auto-applies (is this correct? I assumed based on the TRIGGER) filters when vector_json format is detected
# Load NiFi logs and run analysis
$ lnav nifi-app.log
# In lnav, view GC performance:
:switch-to-view db
select log_time,generation,duration from gctime order by duration desc
# Check request processing times by type:
select type, avg(duration), max(duration) from requests group by type
lnav -i https://github.com/stackabletech/lnav_scripts.git
TODO: I have no idea where this is installed to or how to update it later.
TODO: I'm not sure if this actually works. I looked at the lnav help but am not entirely sure.
git clone https://github.com/stackabletech/lnav_scripts.git
cd lnav_scripts
lnav -I .