nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
44 lines (37 loc) • 662 B
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog"
},
"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" : [
{"from":"*", "processors":["myproc"], "transporters":"console"}
]
}