Exec issue in fluentd

120 views
Skip to first unread message

Hari Prasanth

unread,
Apr 1, 2018, 4:41:50 AM4/1/18
to Fluentd Google Group
Hi Guys,

I am using @type exec in fluentd, For testing I have a simple use case where I need to execute the test.sh which just prints the current time to a file.

<match csv.**>
   @type exec
   command bash test.sh
   keys k1
   <buffer>
      @type file
      path  /var/log/td-agent/test
      flush_interval 1s
    </buffer>
   <store>
       type stdout
   </store>
</match>

When it is executed, I  get the following error, What does it mean?

2018-04-01 13:46:38.507199701 +0530 fluent.warn: {"prog":"bash test.sh /var/log/td-agent/test/buffer.q568c4e2c5e5894ab3103c40b077e0022.log","status":127,"signal":null,"message":"command exits with error code prog=\"bash test.sh /var/log/td-agent/test/buffer.q568c4e2c5e5894ab3103c40b077e0022.log\" status=127 signal=nil"}

If someone could explain what is buffer path I would be very happy.

Anyhelp is appreciated.

Thanks


Mr. Fiber

unread,
Apr 2, 2018, 8:54:39 AM4/2/18
to Fluentd Google Group
The error said the program is failed.
There are several cases:

- your program has a problem
- bash can't find your test.sh program
- etc...

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