1.0.4 • Published 2 years ago

node-logql v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

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

  • go binding
  • function mapping
  • optimize size
1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago