Skip to main content

Split Tags action

Available for event workflows

This action splits a value from a tag field into multiple tags in the same object. This action is useful when there is a lack of control on the format of ingestion and there are multiple values in a single field as part of the object.

The action takes the following inputs:

  • Input fields

    The object field to split.

  • Split string

    The string pattern to split input field into key/value pairs with.

  • Separator string

    The string pattern to split out keys/values.

Event example

Your monitor tool generates an event payload with tags like this:

{
    ...,
    "allTags": "a=1;b=2;c=3",
    ...,
}

You want to break out the allTags field into multiple tags:

  • Input field = allTags

  • Split string = ;

  • Separator string = =

Event before

Event after

{
    ...,
    "tags": {
        "allTags": "a=1;b=2;c=3",
    },
    ...,
}
{
    ...,
    "tags": {
	"a": 1,
        "b": 2,
        "c": 3
    },
    ...,
}