23 May 2023 10:06 PM
Hey everyone, I'm wondering if it is possible to create an auto tagging rule but apply some logic to it to remove some characters and insert a space, then use the result of that for the tag value. My example is below.
original value:
SERVERENV (via: server)
what i'm hoping to get:
SERVER ENV
OR i will accept:
SERVER\ENV
Solved! Go to Solution.
24 May 2023 02:01 PM
Hello,
What you could do for value is limited to a few predefined "properties" you can regex on .. or a static value.
Example:
{ProcessGroup:KubernetesNamespace/([^-].+?-.+?)-}
Unfortunately, the kind of functionality you are asking for with additional enhancements would be a very useful feature.
24 May 2023 06:51 PM
Hi @tibebe_m_digafe,
Do you know if that can be applied to tags as service naming rules?
Best regards
07 Jun 2023 01:04 PM
@AntonPineiro yes, you can apply it at the naming level, You can also add in strings with regex, Example, you could parse out the first part of the Services String and add in part of the Host Group Name for a Result of "EzTravel Check out - Front End"
07 Jun 2023 01:10 PM
Thank you @ChadTurner, yes, @tibebe_m_digafe was able to confirm it to me with his example.
Thank you both, appreciate it 😎
06 Jun 2023 10:08 PM
Hi @anton
If I understood your question, the example I provided earlier was for auto-tagging.
it will extract the first 2 "words" from k8s namespace (name uses "-" separator)
xyz-123-crf-456 => xyz-123 (this is then assigned as value for the tag).
06 Jun 2023 11:18 PM
Hi,
Yes, I was talking about that. That regex can be applied in more placeholders.
Thank you for your answer!
Best regards