Grok Expression "match anything until you find a number"

Hi everyone, and thank you for your help.

I'm struggling a bit because I can't write a correctly matching for Grok for this kind of pattern.
The logs I'm trying to process are structured like this (they're IP addresses):

2022-02-17 08:31:32 11.12.13.14 one_word 15.16.17.18 otherstuff
2022-02-17 09:31:32 11.12.13.14 one or more word 15.16.17.18 otherstuff

I'm trying to extrapolate just the "one_word" and the "one or more words" between the two IP addresses, but so far i can just either pick the first word either pick all as greedy data.
Thank you for any help!

Regards,

Andrea

To “match anything until you find a number” you could use \D*

1 Like

Thank you @Badger, this was actually what I was looking for :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.