Hi anelson1,
This question needs more background information, details to get a correct answer. For example, when you say but only if the term is in the last entry in the paragraph do you want to match the time stamp before as well or not? There are many other question to be answered before this answer can be answered correctly - if that make sense.
As an example, if your _raw contains the message like this:
Paragraph = "25.12.2019 07:24:06 UTC Initial text entry 25.12.2019 09:50:52 UTC Should this be cancelled? No additional information found 26.12.2019 05:55:51 UTC No issues from this machine today, this should be cancelled"
you could use a field extraction like this:
| rex "\s(?<last>\w+)\"" | search last="cancelled" | ...
But if this will yield the correct results as you expect it is hard to tell without more context.
cheers, MuS
PS: question, SPL posted here are from a chat with cp-regex-guru and martin_mueller
... View more