Splunk Search

Field extraction

syedabuthahir
Explorer

Hi All,

I want to extract one particular filed under the description column but when i tried to extract the field i am getting the below 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."

 

i tried to extract through regex 

 

Defined","category":"Not Defined","resolution_time":"Not Defined","response_sla_exclusion":"","sla_contract":"Met","long_description":"Contact Number: 9967795614Type: Error/FailureWebsite/URL: https://xxxxxxProduct Name: Automatic Ticket AssignmentWorkstation/Cubicle/Bay: xxxxxDescription: Kindly check Health Status alertCountry/Location: xxxxVersion Number: NA","problem_abstract":"Kindly check Health Status alert"}

 

in the above i want to extract only the Product name field

 

Can someone help me on this 

Labels (1)
0 Karma
1 Solution

thambisetty
SplunkTrust
SplunkTrust

| rex "Product\sName\:\s+(?<ProductName>.*)Workstation"

————————————
If this helps, give a like below.

View solution in original post

thambisetty
SplunkTrust
SplunkTrust

| rex "Product\sName\:\s+(?<ProductName>.*)Workstation"

————————————
If this helps, give a like below.

isoutamo
SplunkTrust
SplunkTrust
Can you post full (json?) event or raw, so we could see from where this extractions should do? Also your current spl query could help us to point you to right direction.
r. Ismo
0 Karma
Get Updates on the Splunk Community!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...