logstash-udp
Your log messages go to logstash UDP input (almost) without any overhead.
Installation
npm i lsudp --save
Usage
Somewhere in the app entry module:
var logstash = ;logstash;
In any module then:
var logstash = 'my-folder/my-module';logstash;
Will cause logstash receive following over UDP:
If you want to log structured data, then:
logstash;
Resulting message object will have mydata
assigned as value of property data
.
This still works if you want to use placeholders inside message:
logstash;
Notes
If lsudp
encounters transport level error, it will output it to stderr
in stringified form.
License
MIT