fluent-plugin-mongo icon indicating copy to clipboard operation
fluent-plugin-mongo copied to clipboard

Built-in placeholders for dynamic collection are not work

Open askstw opened this issue 5 years ago • 2 comments

Hi, the placeholders for dynamic collection name are not work.

collection ${tag[1]}-%Y%m%d

Is there a bug are any suggestion ?

We got collection name "testfile-%Y%m%d" , not our excepted

image

askstw avatar Dec 23 '20 07:12 askstw

@askstw in the buffer section try adding tag, I added a note a while back on needing them defined in buffer to use as placeholder for the HTTP endpoint - I might need to add to all docs

Example in buffer section

<buffer tag,key>
  # buffer parameters
</buffer>

agup006 avatar Dec 23 '20 16:12 agup006

If you want to use time based placeholders, need to specify time in buffer keys. Here is an example in official article: https://docs.fluentd.org/configuration/buffer-section#placeholders

repeatedly avatar Dec 23 '20 19:12 repeatedly