nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
60 lines (55 loc) • 1.1 kB
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog2",
"input" : {"maxPending" : 1000},
"buffer" : {"maxPending": 1000},
"processor" : {"maxPending": 1000},
"transporter" : {"maxPending": 1000}
},
"inputs" : {
"file" : {
"type" : "file",
"when" : {
"filter": false,
"bypass": false
},
"config" : {
"path" : "/opt/nsyslog/examples/config/data/parser001.log",
"watch" : false,
"readmode" : "offset",
"offset" : "start"
}
}
},
"processors" : {
"parser" : {
"type" : "parser",
"config" : {
"path" : "data/parser001.json",
"cores" : 4,
"map" : true,
"singleval" : true,
"emptyval" : " - "
}
}
},
"transporters" : {
"log" : {
"type" : "console",
"config" : {"format" : "${JSON}", "level" : "log"}
},
"file" : {
"type" : "file",
"disabled" : true,
"config" : {
"path" : "/var/log/logout${path}"
}
},
"null" : {
"type" : "null"
}
},
"flows" : [
{"from":"*","fork":false, "processors":["parser"], "transporters":["log"]}
]
}