Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Flume exec tail -f date on apache log

Flume exec tail -f date on apache log

Explorer

I'm trying to setup a flume source using the exec type and using tail -F on a log file that will be date stamped. The docs indicate typical unix commands would work, but this is not working at all.

 

agent.sources.apache.command = tail -F /usr/local/apache/localhost/logs/access_log.`date +%Y%m%d`

 

If I use "tail -F /usr/local/apache/localhost/logs/access_log.`date +%Y%m%d`" at the shell it works perfectly, but used inside the flume.conf for this source, I get nothing.

 

Is there a way to use the unix date formatting in the source definition in flume.conf?

1 REPLY 1

Re: Flume exec tail -f date on apache log

Expert Contributor

currently, the answer is NO.

 

we have modified the source code to support variable in flume.conf and re-compile then it's ok now.