Can I pass filename created by match tag to source tag in Fluentd?

24 views
Skip to first unread message

Pietro Zanella

unread,
Feb 8, 2018, 5:41:05 AM2/8/18
to Fluentd Google Group
Hi,

can I pass filename created by match tag to source tag as argument of script.sh in Fluentd? For example:

<source>...</source>

<match log.usage>
  @type file
  path /var/tmp/cm_
  buffer_path /var/tmp/buffer
  format csv
  delimiter |
  fields date,name
  time_format %Y%m%dT%H%M%S
  time_slice_format %Y%m%d_%H%M%S
  time_slice 2m
</match>

<source>
  @type exec
  format none
  tag none
  command sh /var/tmp/script.sh
  run_interval 5m
</source>

Is it possible? How can I do? Help me!

Thanks!

Mr. Fiber

unread,
Feb 12, 2018, 10:51:32 PM2/12/18
to Fluentd Google Group
Is it possible? How can I do? Help me!

No way. You need to write such routine in script.sh.


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.

Pietro Zanella

unread,
Feb 13, 2018, 3:45:54 AM2/13/18
to flu...@googlegroups.com
Thanks!

--
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/9viPK-Oo7Y0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to fluentd+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages