UNPKG

nsyslog

Version:

Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations

46 lines (39 loc) 766 B
{ "config" : { "datadir" : "/tmp/nsyslog", "input" : {"buffer" : 100} }, "register" : [ {"type":"processor","id":"myproc","require":"examples/custom/custom-asymmetric.js"} ], "inputs" : { "file" : { "type" : "file", "config" : { "path" : "/var/log/*.log", "watch" : true, "readmode" : "offset", "offset" : "start" } } }, "processors" : { "myproc" : { "type" : "myproc", "config" : { } } }, "transporters" : { "console" : { "type" : "console", "config" : { "format" : "${JSON}" } } }, "flows" : [ {"id":"flow1","from":"file", "processors":["myproc"], "transporters":"#"}, {"id":"test","from":"${$reemit}","transporters":"console"} ] }