nsyslog
Version:
Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations
55 lines (50 loc) • 953 B
JSON
{
"config" : {
"datadir" : "/tmp/nsyslog",
"input" : {"buffer" : 100},
"collector" : {
"_key" : "ctx",
"ival" : 1000
}
},
"inputs" : {
"lines" : {
"type" : "static",
"attach" : ["flow1"],
"config" : {
"loop" : true,
"lines" : [
{"res":"MAL","ct3":"4688","dun":"user$", "ct5":"algo asi como logagent.exe jejeje"},
{"res":"BIEN","ct3":"4688","dun":"user$","ct5":"Este tiene que pasar!"}
]
}
}
},
"processors" : {
},
"transporters" : {
"console" : {
"type" : "console",
"attach" : ["flow1"],
"config" : {
"format" : "${JSON:2}",
"json" : {
"format" : true,
"spaces" : 2,
"color" : true
}
}
},
"null" : {
"type" : "null"
}
},
"flows" : [
{
"id": "flow1", "from":"lines", "fork":true, "cores":1,"transporters":["#flow2"]
},
{
"id": "flow2", "transporters":["console"]
}
]
}