UNPKG

nsyslog

Version:

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

89 lines (84 loc) 1.64 kB
{ "config" : { "datadir" : "/tmp/nsyslog2", "input" : {"maxPending" : 1000}, "buffer" : {"maxPending": 1000}, "processor" : {"maxPending": 1000}, "transporter" : {"maxPending": 1000} }, "inputs" : { "file" : { "type" : "file", "config" : { "path" : "/var/log/**/*.log", "watch" : true, "readmode" : "offset", "offset" : "start" } } }, "processors" : { "timestamp" : { "type" : "timestamp", "config" : {} }, "seq" : { "type" : "sequence", "config" : { "start" : 0 } }, "totuple" : { "type" : "properties", "config" : { "deep" : false, "extend" : true, "set" : { "tuple" : ["${originalMessage}", "${timestamp}"] } } }, "fromtuple" : { "type" : "properties", "config" : { "deep" : false, "extend" : true, "set" : { "count" : "${tuple[0]}", "tokens" : "${tuple[1]}" } } }, "tokenize" : { "type" : "multilang", "config" : { "path" : "node examples/multilang/js/split.js", "cores" : 1, "wire" : "shuffle", "module" : false, "tuple" : "${tuple}", "options" : { "timeout" : 100 } } } }, "transporters" : { "log" : { "type" : "console", "config" : {"format" : "${seq} : ${count} => ${tokens}", "level" : "log"} }, "file" : { "type" : "file", "config" : { "path" : "/var/logout${path}" } }, "null" : { "type" : "null" } }, "flows" : [ {"from":"*", "processors":["totuple","tokenize","fromtuple"], "transporters":"null"} ] }