I have a Json array of strings. I want to find the one entry that starts with “xx” and create a new field with it as the value. The text after “xx” can vary.
Not sure how to use the dissect directive on an array of strings to do this.
Example Json log:
{“array”:[“blah”, “not this”, “xxThis”,”not this either”]}
Result:
{“array”:[“blah”, “not this”, ”not this either”], “new_field”:”xxThis”}
Thanks