fluent/fluentd — Issue #30: Can not "Tail" a file using tail plugin
Author: yingfeng
Created: 2012-01-04 08:48:13+00:00
State: open

Hi, I found that the tail plugin can not "tail" a file, here's the configuration:

type tail
path /home/ld-desktop/tmp/test.txt
tag test
format /^(?.*)$/

type stdout

And I added to "test.txt" LINE BY LINE:

request:hello
request:echo server
request:blabla

However, I can see the outputs of fluentd is not a "Tail" one:

2012-01-04 15:33:37 +0800 test: {"request":"request:hello"}
2012-01-04 15:33:37 +0800 test: {"request":""}

2012-01-04 15:33:58 +0800 test: {"request":"request:hello"}
2012-01-04 15:33:58 +0800 test: {"request":"request:echo server"}
2012-01-04 15:33:58 +0800 test: {"request":""}

2012-01-04 15:35:02 +0800 test: {"request":"request:hello"}
2012-01-04 15:35:02 +0800 test: {"request":"request:echo server"}
2012-01-04 15:35:02 +0800 test: {"request":"request:blabla"}
2012-01-04 15:35:02 +0800 test: {"request":""}

Am I wrong in configuring the fluentd, or the "tail" plugin has some bugs?