Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Built-in placeholders for dynamic collection are not work #152

Open
askstw opened this issue Dec 23, 2020 · 2 comments
Open

Built-in placeholders for dynamic collection are not work #152

askstw opened this issue Dec 23, 2020 · 2 comments

Comments

@askstw
Copy link

askstw commented Dec 23, 2020

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 askstw changed the title Built-in placeholders are not work Built-in placeholders for dynamic collection are not work Dec 23, 2020
@agup006
Copy link
Member

agup006 commented Dec 23, 2020

@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>

@repeatedly
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants