nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
42 lines (37 loc) • 594 B
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog"
},
"inputs" : {
"cmd" : {
"type" : "command",
"config" : {
"cmd" : "ls -1 | wc -l",
"interval" : 2000,
"options" : {
"cwd" : "/"
}
}
}
},
"processors" : {
"json" : {
"type" : "jsonparser",
"config" : {
"field" : "${originalMessage}",
"output" : "originalMessage"
}
}
},
"transporters" : {
"console" : {
"type" : "console",
"config" : {
"format" : "${JSON}"
}
}
},
"flows" : [
{"from":"cmd", "transporters":"console"}
]
}