I'm trying to use flume on Windows as a class assignment, I did the exercise first on Ubuntu and I didn't have any problems. On windows I have installed coreutils to use linux commands on windows. The agent gets to run but gets stuck at Exec source started and then checks to see if the execute file has been updated. I use the following code: It is displaying the content of a file inside C:/logs/log.txt and displays it in cmd.
Ag_Monitor.sources = s1
Ag_Monitor.sinks = k1
Ag_Monitor.channels = c1
Ag_Monitor.sources.s1.type = exec
Ag_Monitor.sources.s1.command = tail -F C:\logs\log.txt
Ag_Monitor.sources.s1.shell = cmd.exe /c
Ag_Monitor.sources.s1.channels = c1
Ag_Monitor.sinks.k1.type = logger
Ag_Monitor.sinks.k1.channel = c1
Ag_Monitor.channels.c1.type = memory
I upload an image of the problem in addition to executing the tail command incorrectly since it indicates another directory.
I have used powershell modifying the file with : Get-Content C:\logs\log.txt -Tail 10 powershell.exe /c
I have the following result:
has executed it well but it does not appear on the screen.