Splunk Search

How to extract fields in Splunk

sanyam
New Member

Hi ,

Can anyone let me know how to extract fields in Splunk ? I have one sourcetype file that contains data of Attacker Address , Device Address , Device Vendor and Device Product . These fields are not the regular and interesting fields .

Want to extract these fields so that i may use them during search to obtain the desired results .

Regards ,
Sanyam

0 Karma

somesoni2
Revered Legend

kmccririe_splun
Splunk Employee
Splunk Employee

Here is our documentation on extracting fields https://docs.splunk.com/Documentation/Splunk/latest/Scenarios/Extractfields. This goes over how to use our field extraction tool in Splunk to extract the fields you want from the data.

If you are good with regex you can use the rex command in Splunk's search language to temporarily extract fields with regex http://docs.splunk.com/Documentation/Splunk/latest/SearchReference/Rex. You can then save the regex you used with that command as a field extraction by going to settings > Fields > Field extrations and saving it there.

Here is some more documentation you might find useful https://docs.splunk.com/Documentation/Splunk/6.5.1/Search/Extractfieldswithsearchcommands

Get Updates on the Splunk Community!

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...

.conf24 | Personalize your .conf experience with Learning Paths!

Personalize your .conf24 Experience Learning paths allow you to level up your skill sets and dive deeper ...

Threat Hunting Unlocked: How to Uplevel Your Threat Hunting With the PEAK Framework ...

WATCH NOWAs AI starts tackling low level alerts, it's more critical than ever to uplevel your threat hunting ...