Getting Data In

When using the Field Extractor can you use the same name for a field? will it append or add to the original field create

Cheng2Ready
Communicator

When using the Field Extractor can you use the same name for a field? will it append or add to the original field create

Example
I am extracting from the _raw data
Found that some of the _raw data didn't match when I highlight when using regex match
I was getting the red x as the example below, that should of captured it since both logs are identical in patterns.

Cheng2Ready_1-1745958501934.png



So I extracted twice on a single field on two data sets.
will it append? And add it onto the field of data to look for?

Cheng2Ready_0-1745958387941.png

 

Labels (1)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

Hi @Cheng2Ready 

If you apply multiple field extractions then the one with the highest precedence will be used, instead you may wish to manually modify the regular expression to cover both events. 

When extracting the fields using the field extractor wizard, on the "Select fields" step, select the "Show regular expression" text as below:

livehybrid_0-1745959610832.png

This then allows you to click "Edit regular expression" button on the right, and clicking this gives you the regex which you can override.

livehybrid_1-1745959682868.png

At this point you should define a regex that matches all the relevant events. 

If you need help creating the regex please post raw examples/samples of the events and I'd be happy to help.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

 

 

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

Hi @Cheng2Ready 

If you apply multiple field extractions then the one with the highest precedence will be used, instead you may wish to manually modify the regular expression to cover both events. 

When extracting the fields using the field extractor wizard, on the "Select fields" step, select the "Show regular expression" text as below:

livehybrid_0-1745959610832.png

This then allows you to click "Edit regular expression" button on the right, and clicking this gives you the regex which you can override.

livehybrid_1-1745959682868.png

At this point you should define a regex that matches all the relevant events. 

If you need help creating the regex please post raw examples/samples of the events and I'd be happy to help.

🌟 Did this answer help you? If so, please consider:

  • Adding karma to show it was useful
  • Marking it as the solution if it resolved your issue
  • Commenting if you need any clarification

Your feedback encourages the volunteers in this community to continue contributing

 

 

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...