UNPKG

nsyslog

Version:

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

45 lines (40 loc) 730 B
{ "config" : { "datadir" : "/tmp/nsyslog", "input" : {"buffer" : 100} }, "inputs" : { "file" : { "type" : "file", "config" : { "path" : "/var/log/*.log", "watch" : true, "readmode" : "offset", "offset" : "start" } } }, "processors" : { "myproc" : { "type" : "throttle", "config" : { "timeout" : 1000 } } }, "transporters" : { "console" : { "type" : "console", "config" : { "format" : "${JSON}" } }, "null" : { "type" : "null" } }, "flows" : [ {"id":"flow1", "from":"file", "fork":true, "cores":4, "processors":[], "transporters":"#test"}, {"id":"test", "fork":true, "transporters":"null"} ] }