Hello
I have had a few fields with deliniter seperated strings that I have expanded into their own fields
With grok
Is that the best method ?
Explanation:
You have a field: ":foo:bar:goat"
I want the first field, I can do a grok filter ":%{WORD:fieldIwant}"
But is there a better method ?
In a standard POSIX shell I would just do "awk -F ":" '{print $1}"
Just seems weird to me to use something I think of more like regex to simply delimeter data
So yeah, is the grok approach the right one or would it be better to use something like split and then addressing the field by position ?
I am processing over 10K messages per second so my primary concern is efficiency