LokiPush

Push logs to loki from nodejs

MIT License

Downloads
5
Stars
1
Committers
2

LokiPush

Simple module to push logs to loki.

Usage

Basic

const Loki = require("lokipush"); // CommonJS

const loki = new Loki("https://ip:port/loki/api/v1/push");
loki.addLog("I will be pushed to loki!");

This will push a log to loki. Logs are queued for 1 second (can be changed) and sent in batches.

Package Rankings
Top 21.34% on Npmjs.org
Badges
Extracted from project README
Build Status