Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Flume exec tail -f date on apache log - Follow-up

$
0
0
Can anyone explain why does this not work? I'm using the `date +%Y%m%d` because we're piping our logs to rotatelogs with a date stamp so the name will change daily.

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.

-- Guyle

Viewing all articles
Browse latest Browse all 5648

Trending Articles