Hi :)

I try to import a existing log file and i don't know why it doesn't work.

my configuration is
..
# Describe/configure the source
a1.sources.r1.type = exec
a1.sources.r1.command = cat ~/logfile
..

ERROR:
2013-02-27 12:12:11,831 (pool-4-thread-1) [INFO -
org.apache.flume.source.ExecSource$ExecRunnable.run(ExecSource.java:307)]
Command [cat ~/logfile] exited with 1
2013-02-27 12:12:11,838 (StderrReader-[cat ~/logfile]) [INFO -
org.apache.flume.source.ExecSource$StderrReader.run(ExecSource.java:347)]
StderrLogger exiting
java.io.IOException: Bad file descriptor




i tried a second conf:
..
# Describe/configure the source
a1.sources.r1.type = exec
a1.sources.r1.command = tail -F ~/tempfile
..
-> start agent, open second terminal and use "cat logfile >> tempfile"

ERROR:
Nothing happens...

Can anybody help me?

Regards,
Simon

Reply via email to