nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
47 lines (42 loc) • 736 B
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog",
"input" : {"buffer" : 1000},
"process" : {"buffer": 1000}
},
"inputs" : {
"file" : {
"type" : "file",
"config" : {
"path" : "/var/log/**/*.log",
"watch" : true,
"readmode" : "offset",
"offset" : "start"
}
}
},
"processors" : {
"split" : {
"type" : "split",
"config" : {
"input" : "${originalMessage}",
"output" : "arr",
"separator" : " "
}
}
},
"transporters" : {
"console" : {
"type" : "console",
"config" : {
"format" : "${JSON}"
}
},
"null" : {
"type" : "null"
}
},
"flows" : [
{"from":"*", "processors":["split"], "transporters":["null"]}
]
}