Hi all. I am having json data in the following format -
Format-1: counters_applevel_A
Format-2: counters_5_A
So in format-2, data can have any integer inplace of 5 like counters_1_A or anything but it will be a integer. Format-1 applevel is permanent. So i am using processor plugin to create a new tag named “cell”;
Format-1: cell = "applevel"
Format-2: cell = "5"
now i want to remove substring counters_${cell} from field. Any ways to achieve this.
[[processors.strings]]
order = 8
[[processors.strings.trim_prefix]]
field_key = "*"
prefix = "counters_"
Using this i am able to reduce fields to say; applevel_A and 5_A. Now how do i further remove this 5 given that this changes; and that value i am storing in tag called “cell”.
Thanks