Flume-ng tail a file

后端 未结 4 1788
生来不讨喜
生来不讨喜 2021-01-07 09:10

I am trying to understand how to tail a file with flume-ng so that I can push the data into HDFS. In the first instance I have setup a simple conf file:

tail         


        
4条回答
  •  误落风尘
    2021-01-07 09:30

    Because /var/log/apache2/access.log is not big enough to let flume print the lines of file So just try thisas following,you can find out the output in console

    for i in {1..100}; do echo "tail log test$i" >> var/log/apache2/access.log;done
    

提交回复
热议问题