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

How to dynamically retrieve match tag #9

Open
james-stallard opened this issue Dec 14, 2022 · 0 comments
Open

How to dynamically retrieve match tag #9

james-stallard opened this issue Dec 14, 2022 · 0 comments

Comments

@james-stallard
Copy link

Hello @yokawasa,

Thank you for maintaining this plugin.

Some advice on how to achieve the following use case would be appreciated.

What I am tryint to achieve is, to somehow capture the content of "*" in the <match> tag, and to apply it to docdb_collection, such as the following.

<match tenant.*> # <------ Want to access *
  @type documentdb
  @log_level info
  docdb_endpoint https://abc.documents.azure.com:443
  docdb_account_key abc==
  docdb_database tenants
  docdb_collection ${tag} # <------ To use here...

Above example did not work, and resulted in creating a container called ${tag} in my Cosmos DB instance.

I was able to achieve this by using fluent-plugin-forest, however, the author of the plugin mentions that:

NOTE: This plugin will not be updated: Use Fluentd v0.14 native API to handle tags.

Is there a way to achieve this in fluent-plugin-documentdb natively?

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

1 participant