Example strings:
thing: xabc123def.testing
thing: xghi456jkl.testing
Given:
- String will always begin with x
- there will be 3 alpha characters
- there will be 3 numeric characters
- it may or may not have additional characters after.
I need to extra the first 3 alpha characters (after x) into a new field using a metric/filebeat processor (dissect)
Obviously this will not work:
- dissect:
tokenizer: "x%{item1}%{?first number}
field: "extractedfield"
I couldn't find any info on dissect/tokenizer relating to individual characters or wildcards. For example, if I could say make item1 3 characters long, the rest would be easy. Or if I could use a wild card for any number, I could use that as the delimiter.