# fluent-plugin-config-expander This is a plugin for [Fluentd](http://fluentd.org). ## ConfigExpanderInput, ConfigExpanderOutput ConfigExpanderInput, ConfigExpanderFilter and ConfigExpanderOutput plugins provide simple configuration template to write items repeatedly. In section, you can write actual configuration for actual input/filter/output plugin, with special directives for loop controls. And also supports built-in placeholders below: * hostname (ex: \_\_HOSTNAME\_\_, \_\_hostname\_\_, ${hostname}, ${HOSTNAME}) ## Configuration For all of input, filter and output (for , and ), you can use 'config_expander' and its 'for' directive like below: @type config_expander @type forward flush_interval 30s host worker__x__.local port 24224 Configuration above is equal to below: @type forward flush_interval 30s host worker01.local port 24224 host worker02.local port 24224 host worker03.local port 24224 As placeholder, you can use '${varname}' style: @type config_expander @type forward flush_interval 30s host worker${node}.local port 24224 Nested 'for' directive is valid: @type config_expander @type forward flush_interval 30s host worker__x__.local port __p__ Set hostname into tag in 'tail' input plugin: @type config_expander @type tail @label @access_events format /..../ path /var/log/access.log tag access.log.${hostname} ## TODO * more tests * patches welcome! ## Copyright * Copyright (c) 2012- TAGOMORI Satoshi (tagomoris) * License * Apache License, Version 2.0