Skip to content

How to dynamically retrieve match tag #9

Description

@james-stallard

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions