How to Fluentd read file log or text ?

1,547 views
Skip to first unread message

Henry Vo

unread,
Apr 28, 2016, 6:10:46 AM4/28/16
to Fluentd Google Group
I'm new to learn about fluentd elasticsearch and kibana. I have a problem to ask for help:
My problem is import some logs or text into fluentd, I have find  in_tail plugin but it's just log the location of the log file, I'm looking forward to receiving help from people. Thanks!

Mr. Fiber

unread,
Apr 28, 2016, 6:17:27 AM4/28/16
to Fluentd Google Group
Sorry I can't understand your situation correctly.
Could you tell me your detailed situation?
Why in_tail can't handle your file?


Masahiro

On Thu, Apr 28, 2016 at 7:10 PM, Henry Vo <phatv...@gmail.com> wrote:
I'm new to learn about fluentd elasticsearch and kibana. I have a problem to ask for help:
My problem is import some logs or text into fluentd, I have find  in_tail plugin but it's just log the location of the log file, I'm looking forward to receiving help from people. Thanks!

--
You received this message because you are subscribed to the Google Groups "Fluentd Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fluentd+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vo Tan Phat

unread,
Apr 28, 2016, 6:42:14 AM4/28/16
to flu...@googlegroups.com
I have logs format json and when I run with in_tail, my collect.pos file just show like this: 
/var/log/test/log  000000000011995   00000000000540307
I have input is file log and want to output is log zip(out_file).
I have use out_file to log my data, I don't know that I missing understand in_tail or config not correct (config like example on page fluentd)

--
You received this message because you are subscribed to a topic in the Google Groups "Fluentd Google Group" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/fluentd/Bckg39dsnus/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Thanks & Best Regards.


VO TAN PHAT

Mr. Fiber

unread,
Apr 28, 2016, 6:45:50 AM4/28/16
to Fluentd Google Group
Could you set "read_from_head true"?


Removing previous pos_file is needed.

Vo Tan Phat

unread,
Apr 28, 2016, 7:00:25 AM4/28/16
to flu...@googlegroups.com
Thank you so much Mr. Fiber, You help me so much! 
Reply all
Reply to author
Forward
0 new messages