flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zhiwen Sun <pens...@gmail.com>
Subject Re: Can I use variables in config file?
Date Fri, 22 Mar 2013 02:22:52 GMT
Hi Felix:

do you want this?


where %{host} is the header named host.

Furthermore, It support arbitrary header name.

Zhiwen Sun

On Fri, Mar 22, 2013 at 9:58 AM, Felix.徐 <ygnhzeus@gmail.com> wrote:

> Hi,
> I'm wondering if I can use some variables in the config file so as to
> specify sinks' HDFS directory dynamically according to the hostname of
> deployed server. For example , I want to set the
> agent.sinks.***.hdfs.path=hdfs://../flume/${hostname}/..., and the
> ${hostname} will be initialized as the hostname of that server while
> starting up flume.

View raw message