fluent / fluentd-docs

This repository is deprecated. Go to fluentd-docs-gitbook repository.
49 stars 119 forks source link

Getting error: BUG: both type and conf are not specified (ArgumentError) #626

Open adamcheney opened 5 years ago

adamcheney commented 5 years ago

I'm trying to use a storage plugin within the systemd plugin (https://github.com/reevoo/fluent-plugin-systemd). My conf looks like this:

    <source>
      @type systemd
      tag kubelet
      path /var/log/journal
      matches [{ "_SYSTEMD_UNIT": "kubelet.service" }]
      read_from_head true
      <storage kubeletpos>
        @type local
      </storage>
      <entry>
        fields_strip_underscores true
        fields_lowercase true
      </entry>
    </source>

The error I get is:

/var/lib/gems/2.3.0/gems/fluentd-1.3.2/lib/fluent/plugin_helper/storage.rb:54:in `storage_create': BUG: both type and conf are not specified (ArgumentError)

But, type is specified, right?

flixr commented 5 years ago

Running into the same problem here... @adamcheney did you figure out a solution?

repeatedly commented 5 years ago

It seems <storage kubeletpos>'s argument causes a problem. Using <storage> is temporal solution.

flixr commented 5 years ago

Thanks, that seems to work.

repeatedly commented 5 years ago

This seems a regression. We will fix the problem

adamcheney commented 5 years ago

Hi Felix - I did get a working config, but don't have it to hand right now. I'll try to take a look and get you a response...

Adam.

On Fri, 26 Apr 2019, 02:57 Felix Ruess, notifications@github.com wrote:

Running into the same problem here... @adamcheney https://github.com/adamcheney did you figure out a solution?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fluent/fluentd-docs/issues/626#issuecomment-486708504, or mute the thread https://github.com/notifications/unsubscribe-auth/AIXTDQI2QNM4Y4PIEEP6WX3PSHBEBANCNFSM4HAYHHSA .