Splunk Search

Can you help me with a problem I'm having parsing fields?

TitanAE
New Member

I'm new to parsing fields in splunk. And, in truth, I'm not great at regex yet. I'm trying to parse an event in Splunk like this.

[ EVENT_NUMBER = 4768 ]

That way my selected field is Event_Number and the value is 4768. I'm considering 2 options:

  1. Parsing the field with regex. But once that's accomplished i'm not sure what config types I'd need in Splunk.
  2. Identifying the field with a simple parse/transfrom config. Again not sure what I need to accomplish this.

Any advice on the best course of action is appreciated.

TitanAE

0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi TitanAE,
try to use the Splunk Field Extractor that guides you in field extraction without knowing Regexes.

You can access it in an easy way:

  • run a search,
  • identify an event wher there's the field you want to extract,
  • on this event, click on the ">" button on "i" column,
  • click on Event actions button and Extract Fields option,
  • Splunk opens a new window,
  • click on "Regular Expressions" button and then on "Next" button,
  • using your mouse select the value you want to extract,
  • add the field name and click on "Add extraction" button,,
  • check results and then "Next",
  • che if you need some exclusion and then "Next",
  • save your field (I suggest always in App),
  • "Finish"
  • usually you need ro reload page to have the field and don't fear if you don't see it immediately it needs a few time to be ready.

Bye.
Giuseppe

P.S. I suggest to study regexes: when you'll know them you'll use only them (personal experience)!

0 Karma
Get Updates on the Splunk Community!

What the End of Support for Splunk Add-on Builder Means for You

Hello Splunk Community! We want to share an important update regarding the future of the Splunk Add-on Builder ...

Solve, Learn, Repeat: New Puzzle Channel Now Live

Welcome to the Splunk Puzzle PlaygroundIf you are anything like me, you love to solve problems, and what ...

Building Reliable Asset and Identity Frameworks in Splunk ES

 Accurate asset and identity resolution is the backbone of security operations. Without it, alerts are ...