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!

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

Ready to make your IT operations smarter and more efficient? Discover how to automate Splunk alerts with Red ...