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

Use tag as dynamic database name

Open sgohl opened this issue 5 years ago • 0 comments

Consider a fluent configuration 30-ish lines starting with this:

  <store>
    @type couch
    host couch
    port 5984
    database <tag-name>

   ... more stuff

now imagine your application want to log messages having hundrets of different tags. You don't want to copy the same configuration all over and over again, as only the database name changes. How to take the tag out of the message to set the database name ?

sgohl avatar Jan 23 '20 09:01 sgohl