UNPKG

nsyslog

Version:

Modular new generation log agent. Reads, transform, aggregate, correlate and send logs from sources to destinations

45 lines (40 loc) 729 B
{ "config" : { "datadir" : "/tmp/nsyslog3" }, "inputs" : { "file" : { "type" : "file", "config" : { "path" : "/var/log/**/*.log", "watch" : true, "readmode" : "offset", "offset" : "start" } } }, "processors" : { "throttle" : { "type" : "throttle", "config" : { "timeout" : 1000 } } }, "transporters" : { "http" : { "type" : "http", "config" : { "url" : "http://localhost:8888/store/${filename}", "format" : "${originalMessage}", "method" : "post", "headers" : { "Content-Type" : "text/plain" } } } }, "flows" : [ {"from":"file", "processors":["throttle"], "transporters":"http"} ] }