Consider using the Spooling Directory source.
-roshan

On Thu, Sep 19, 2013 at 6:31 AM, Kumar, Deepak8 <[email protected]>wrote:

> Hi,
>
> I am using flume 1.4. Do we have a way to indentify file names at sink if
> we are using regex in file name patterns in exec tail command, like tail -F
> *flume*.log. The flume-conf is as follows:
>
>
>
> agent.sources.1376976299847.batchSize = 1
>
> agent.sources.1376976299847.channels = fileChannel
>
> agent.sources.1376976299847.command = tail -F /var/log/flume-ng/*flume*
>
> agent.sources.1376976299847.interceptors = logIntercept
>
> agent.sources.1376976299847.interceptors.logIntercept.appId = 153299
>
> agent.sources.1376976299847.interceptors.logIntercept.env = regex
>
> agent.sources.1376976299847.interceptors.logIntercept.hostName =
> vm-e61b-fe34.nam.nsroot.net
>
> agent.sources.1376976299847.interceptors.logIntercept.logFileName = *flume*
>
> agent.sources.1376976299847.interceptors.logIntercept.logFilePath =
> /var/log/flume-ng/
>
> agent.sources.1376976299847.interceptors.logIntercept.logType = flume log
>
> agent.sources.1376976299847.interceptors.logIntercept.type =
> com.citi.sponge.flume.agent.source.LogInterceptor$Builder
>
> agent.sources.1376976299847.shell = /bin/bash -c
>
> agent.sources.1376976299847.type = exec
>
>
>
> How I would identify the individual file names?
>
>
>
> Regards,
>
> Deepak
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to