I want to extract the Autosys_Job from the below log snippet and so used the below rex.
Log Snippet :
Query :
rex "(?:(\nAutosys_Job:)?\s(?\S+))"
the results are not as expected
Expected Result :
tsx1_d
Kindly help
Re-edit your question; it makes no sense and is missing details that you imply should be present.
Try this:
|rex "Autosys_Job:\s*(?<Autosys_Job>\w+)"