node-logql
v1.0.4
Published
Native LogQL parser binding
Downloads
5
Readme
node-logql
Native node binding for LogQL
Build Module
make
Install
npm install -g node-logql
Usage
See example.js for a full query example
const logql = require('node-logql');
const parsed = logql.parse(query, log);
Pipe stdin through logql.js
echo "level=debug ts=2020-10-02T10:10:42.092268913Z ABC" | logql.js '{job="stdin"} | logfmt | line_format "{{.level}}"'
Todo
- [x] go binding
- [x] function mapping
- [ ] optimize size