Splunk Search

Can you help me extract the following field using regular expression?

Deepz2612
Explorer

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 :

event_1

tsx1_d

Kindly help

Tags (2)
0 Karma

woodcock
Esteemed Legend

Re-edit your question; it makes no sense and is missing details that you imply should be present.

0 Karma

493669
Super Champion

Try this:

|rex "Autosys_Job:\s*(?<Autosys_Job>\w+)"
0 Karma
Get Updates on the Splunk Community!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...