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]|$)

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!

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 ...