FluentD : Tags : Prefix : Suffix

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

 

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You can also access to a certain portion of a tag using the following notations:

  • tag_parts[N] refers to the Nth part of the tag.
  • tag_prefix[N] refers to the [0..N] part of the tag.
  • tag_suffix[N] refers to the [N..] part of the tag.

All indices are zero-based. For example, if you have an incoming event tagged debug.my.app, then tag_parts[1] will represent my. Also in this case, tag_prefix[N] and tag_suffix[N] will work as follows:

tag_prefix[0] = debug          tag_suffix[0] = debug.my.app
tag_prefix[1] = debug.my       tag_suffix[1] = my.app
tag_prefix[2] = debug.my.app   tag_suffix[2] = app

Comments

Popular posts from this blog

FluentD - Parse

Fluentd :