{
	"config" : {
		"datadir" : "/tmp/nsyslog2",
		"input" : {"maxPending" : 1000},
		"buffer" : {"maxPending": 1000},
		"processor" : {"maxPending": 1000},
		"transporter" : {"maxPending": 1000}
	},

	"inputs" : {
		"file" : {
			"type" : "file",
			"attach" : ["flow_fork1"],
			"config" : {
				"path" : "/var/log/**/*.log",
				"watch" : true,
				"readmode" : "offset",
				"offset" : "start"
			}
		}
	},

	"processors" : {
		"throttle" : {
			"type" : "throttle",
			"config" : {
				"timeout" : 1000
			}
		}
	},

	"transporters" : {
		"file" : {
			"type" : "file",
			"config" : {
				"path" : "/var/logout/${filename}.log",
				"format" : "${filename} => ${originalMessage}"
			}
		},
		"null" : {
			"type" : "null",
			"config" : {}
		},
		"logger" : {
			"type" : "console",
			"config" : {
				"format" : "[${null||process.pid}] ------> ${null || new Date()} => ${originalMessage}"
			}
		}
	},

	"flows" : [
		{"id":"flow_fork1", "from":"*", "fork":true, "processors":["throttle"], "transporters":"logger"}
	]
}
