Splunk Search

Formatting output of XML

spicynuggs
Engager

spicynuggs_0-1602397291206.png


Hi, can I check how can I output this row in a  proper format? 
E.g.
<LogonTriggers>
      <Enabled>
              ..........
       </Enabled>
</LogonTriggers>

My file source type is csv format if that is of any help.

| rex "(?ms)\<Triggers\>(?<Triggers>.*?)\</Triggers\>"
| table Triggers

Labels (1)
0 Karma

niketn
Legend

@spicynuggs try one of following answer of mine: https://community.splunk.com/t5/Dashboards-Visualizations/XML-to-display-in-a-proper-format-with-tag...

____________________________________________
| makeresults | eval message= "Happy Splunking!!!"
0 Karma

ITWhisperer
SplunkTrust
SplunkTrust

Chrome has a splunk XML formatter you could try

0 Karma
Get Updates on the Splunk Community!

Splunk Answers Content Calendar, June Edition

Get ready for this week’s post dedicated to Splunk Dashboards! We're celebrating the power of community by ...

What You Read The Most: Splunk Lantern’s Most Popular Articles!

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

See your relevant APM services, dashboards, and alerts in one place with the updated ...

As a Splunk Observability user, you have a lot of data you have to manage, prioritize, and troubleshoot on a ...