UNPKG

nsyslog

Version:

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

55 lines (50 loc) 1.02 kB
{ "config" : { "datadir" : "/tmp/nsyslog2", "input" : {"maxPending" : 1000}, "buffer" : {"maxPending": 1000}, "processor" : {"maxPending": 1000}, "transporter" : {"maxPending": 1000} }, "inputs" : { "http" : { "type" : "httpserver", "config" : { "url" : "http://0.0.0.0:8888/post", "format" : "json" } }, "https" : { "type" : "httpserver", "config" : { "url" : "https://0.0.0.0:8889/post", "format" : "json" } } }, "processors" : { "props" : { "type" : "properties", "config" : { "set" : { "message" : "User ${originalMessage.user} has stablished connection to ${originalMessage.ip_addr}:${originalMessage.dst_port}" } } } }, "transporters" : { "logger" : { "type" : "console", "config" : { "level" : "debug", "format" : "${JSON}" } }, "null" : { "type" : "null" } }, "flows" : [ {"from":"*", "processors":["props"], "transporters":"logger"} ] }