Splunk Search

Difficult extracting fields

jcioffari
Explorer

I have events that look like this and I am using the field extractor 

 

"timestamp": "2020-12-09T18:05:03.6664112Z",

"scopeType": "organization", "scopeDisplayName": "1D (Organization)",

"scopeId": "920941ec-025f-4d4c-9944-e7d357de7d94",

"actionId": "Deleted",

"data": {

"ProjectName": "ATI Libs",

"RepoId": "eb1e2a37-0833-462a-b3e6-031aa1d1f006",

"RepoName": "libs-01"

},

I tried to extract fields using both delimited option ":" as well as using regex.  When I use delimiter of "," it creates the first field 'timestamp' correctly but then lumps everything after that into a single field.   When I try to use regex to extract a field, for example I highlight the value "ATI Libs", I get this error:  

"The extraction failed. If you are extracting multiple fields, try removing one or more fields. Start with extractions that are embedded within longer text strings."

Please advise, thanks.

Labels (1)
0 Karma

somesoni2
Revered Legend

You might need a field transform to handle this field extraction. Have a read at this Splunk documentation:

https://docs.splunk.com/Documentation/Splunk/8.1.0/Knowledge/Exampleconfigurationsusingfieldtransfor...

 

0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

This looks a bit like JSON. Is this part of a larger event? Could you use spath to extract the fields? Also, are you using max_match=0 option in your rex command to extract multiple fields?

0 Karma

jcioffari
Explorer

I've tried spath but not seeing fields getting extracted properly.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...

Upgrade Prep for 10.4, Network Observability Deep Dives, and More from Splunk Lantern

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...