Not really understanding what you want besides parsing a string with key_value.
What is the outcome you are looking for in this pipeline?
Are you trying to manipulate the World Map widget? if so, I haven’t been able to do this yet.
if I parse this, I’d get three new string values written to elastic, right?
key1: “some string”
key2: “17”
key3: “another string”
I could create a second stage that removes key2 and then adds it again after casting it to_long(). But elastic would treat this still as a string (because the first time it was written to elastic, it was a string), right? I would have to write it to a new field and then delete the old field.
Another thing is: do a lookup with the value from key3 and use this in the output:
Parse the string into a map
do the lookup
modify the value
call set_fields()
done
This would come easier to my mind than:
Parse the string into a map
call set_fields()
go to next stage
grab the field in question again
modify the value or take the value and write to a new field
optional: remove the original field
done
I imagine that modifying the field in the first place would be faster, too. Furthermore (maybe as an alternative), it would be cool if we could remove an entire key from the map, before it gets written. This would also handle my use cases.
In short: There is nothing I couldn’t do right now, but for me it would be easier and faster if I could mess with my map before it gets written.
Hello,
I just want to sum it up for a better understanding.
You have pipeline that extracts 3 different parts of the string and creates three different fields?