nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
56 lines (51 loc) • 1.08 kB
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog2",
"input" : {"maxPending" : 1000},
"buffer" : {"maxPending": 1000},
"processor" : {"maxPending": 1000},
"transporter" : {"maxPending": 1000}
},
"inputs" : {
"file" : {
"type" : "file",
"attach" : ["flow_fork1"],
"config" : {
"path" : "/var/log/**/*.log",
"watch" : true,
"readmode" : "offset",
"offset" : "start"
}
}
},
"processors" : {
"throttle" : {
"type" : "throttle",
"config" : {
"timeout" : 1000
}
}
},
"transporters" : {
"file" : {
"type" : "file",
"config" : {
"path" : "/var/logout/${filename}.log",
"format" : "${filename} => ${originalMessage}"
}
},
"null" : {
"type" : "null",
"config" : {}
},
"logger" : {
"type" : "console",
"config" : {
"format" : "[${null||process.pid}] ------> ${null || new Date()} => ${originalMessage}"
}
}
},
"flows" : [
{"id":"flow_fork1", "from":"*", "fork":true, "processors":["throttle"], "transporters":"logger"}
]
}