Extract with regex

hello, I want to extract the error which is “Connection timed out”
this is the log message:

011AD11111: to=<aaa@gmaile.com>, relay=none, delay=111111, delays=11111/0.01/110/0, dsn=1.1.1, status=deferred (connect to gmaile.com[111.11.111.111]:11: Connection timed out)

this is what I’ve got so far:
\:\d*\:(\s|\w)*\)
the result is :

t

Any help would be appreciated,

This one works:
`

[^<]\:\s+(?<error_msg>[^<]+)\)

`

1 Like

thanks,
I have also found another way:

\:\d*\:(.*)\)

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