fluentd-docs icon indicating copy to clipboard operation
fluentd-docs copied to clipboard

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

Open adamcheney opened this issue 5 years ago • 5 comments

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?

adamcheney avatar Mar 25 '19 04:03 adamcheney

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

flixr avatar Apr 25 '19 14:04 flixr

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

repeatedly avatar Apr 25 '19 15:04 repeatedly

Thanks, that seems to work.

flixr avatar Apr 25 '19 16:04 flixr

This seems a regression. We will fix the problem

repeatedly avatar Apr 25 '19 17:04 repeatedly

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, [email protected] 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 .

adamcheney avatar Apr 27 '19 01:04 adamcheney