{
	"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"}
	]
}
