How to Read gz files using Fluentd

1,382 views
Skip to first unread message

its4...@gmail.com

unread,
Sep 27, 2017, 5:49:27 AM9/27/17
to Fluentd Google Group
Hello 

how we can input gz files into td-agent 

my config file looks like below 

<source>

  type exec

  command sh /home/temp/unzip.sh /home/clduser/temp/test/ <---- shell command to unzip the .gz files

  run_interval 5s

  path /home/temp/test/**/*.log <----- to pick up files from two different folders

  read_from_head true

  tag snmplog



here the command is not getting executed any kind of help ?


Thanks 
Arun

Mr. Fiber

unread,
Sep 27, 2017, 6:22:18 AM9/27/17
to Fluentd Google Group
If you want to read gzip files in in_tail, no way.
Need to write your input plugin for it.

If you want to use in_exec, you need to puts one line log inside script:


If you want to transfer exsiting gzip files to other place in batch way,
consider embulk or other bulk loading tool instead.


Masahiro

--
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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages