Splunk Search

How to extract fields and remove quotes from values in a multi-line event?

a212830
Champion

Hi,

I need to do a field extraction on a multi-line event. The values have quotes, and I'm having problems getting the last quotes removed.

Here's the data:

Bandwidth:
ClusterUsage: "0"
LocalUsage: "0"
Name: "IC999 Zenos"

And here's my extraction - it does everything except remove the last quote.
[\r\n]\s*Name:\s*"(?P[^\r\n]*)(?:[\r\n]|$)

0 Karma

kml_uvce
Builder

[rn]s*Name:s*\"(?P[^rn]*)\"(?:[rn]|$)

kamal singh bisht
0 Karma

a212830
Champion

I think the forum stripped out part of the answer. Is there a way to see it in "plain text"

0 Karma
Get Updates on the Splunk Community!

[Puzzles] Solve, Learn, Repeat: Dynamic formatting from XML events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Enter the Agentic Era with Splunk AI Assistant for SPL 1.4

  🚀 Your data just got a serious AI upgrade — are you ready? Say hello to the Agentic Era with the ...

Stronger Security with Federated Search for S3, GCP SQL & Australian Threat ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...