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.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...