Error response from daemon: unknown log opt 'fail-on-startup-error' for fluentd log driver

204 views
Skip to first unread message

Marc Kamerbeek

unread,
Nov 17, 2016, 9:48:58 AM11/17/16
to Fluentd Google Group
Hi,

I'm running Fluentd in docker container with this output:

2016-11-17 14:34:21 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf"
2016-11-17 14:34:21 +0000 [info]: starting fluentd-0.14.7
2016-11-17 14:34:21 +0000 [info]: spawn command to main: /usr/bin/ruby -Eascii-8bit:ascii-8bit /usr/bin/fluentd -c /fluentd/etc/fluent.conf -p /fluentd/plugins --under-supervisor
2016-11-17 14:34:21 +0000 [info]: reading config file path="/fluentd/etc/fluent.conf"
2016-11-17 14:34:21 +0000 [info]: starting fluentd-0.14.7 without supervision
2016-11-17 14:34:21 +0000 [info]: gem 'fluent-plugin-concat' version '2.0.0'
2016-11-17 14:34:21 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '1.9.0'
2016-11-17 14:34:21 +0000 [info]: gem 'fluentd' version '0.14.7'
2016-11-17 14:34:21 +0000 [info]: adding filter in @mainstream pattern="docker.**" type="concat"
2016-11-17 14:34:21 +0000 [info]: adding match in @mainstream pattern="docker.**" type="elasticsearch"
2016-11-17 14:34:21 +0000 [info]: adding filter pattern="**" type="stdout"
2016-11-17 14:34:21 +0000 [info]: adding source type="forward"
2016-11-17 14:34:21 +0000 [info]: using configuration file: <ROOT>
  <source>
    @type forward
    @id input1
    @label @mainstream
    port 24224
  </source>
  <filter **>
    @type stdout
  </filter>
  <label @mainstream>
    <filter docker.**>
      @type concat
      key "log"
      stream_identity_key "container_id"
      multiline_start_regexp "/^\\d{4}-\\d{1,2}-\\d{1,2}/"
    </filter>
    <match docker.**>
      @type elasticsearch
      host "localhost"
      port 9200
      include_tag_key true
      tag_key "@log_name"
      logstash_format true
      flush_interval 10s
      <buffer tag>
        flush_mode interval
        retry_type exponential_backoff
        flush_interval 10s
      </buffer>
      <inject>
        tag_key @log_name
      </inject>
    </match>
  </label>
</ROOT>
2016-11-17 14:34:21 +0000 [info]: listening fluent socket on 0.0.0.0:24224

I'm running another docker instances with:

docker run --log-driver=fluentd --log-opt fail-on-startup-error=false --log-opt fluentd-address=localhost:24224 --name gateway-8000 --restart=always -p 8000:8000

I get this output: 

Error response from daemon: unknown log opt 'fail-on-startup-error' for fluentd log driver.


As you can see I'm running on the latest version 0.14.7. Why do I get an 'unknown log opt'?

Running docker on Windows 10




Mr. Fiber

unread,
Nov 17, 2016, 12:16:59 PM11/17/16
to Fluentd Google Group
> Error response from daemon: unknown log opt 'fail-on-startup-error' for fluentd log driver.

This is docker error, not fluentd error.
Check docker and logging driver.


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