nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
63 lines (58 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",
"config" : {
"path" : "/var/log/**/*.log",
"watch" : true,
"readmode" : "offset",
"offset" : "start"
}
}
},
"processors" : {
"event" : {
"type" : "properties",
"config" : {
"extend" : false,
"set" : {
"sev" : 3,
"fn" : "${path}",
"basemsg" : "${originalMessage}"
}
}
},
"array" : {
"type" : "array",
"max" : 1000,
"timeout" : 0,
"field" : "array"
}
},
"transporters" : {
"http" : {
"type" : "http",
"config" : {
"url" : "https://192.168.134.90:6083",
"format" : "${array}",
"tls" : {
"key" : "server.key",
"cert" : "server.crt"
}
}
},
"null" : {
"type" : "null"
}
},
"flows" : [
{"from":"*", "processors":["event","array"], "transporters":"http"}
]
}