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!

SplunkTrust Application Period is Officially OPEN!

It's that time, folks! The application/nomination period for the 2025 SplunkTrust is officially open! If you ...

Splunk Answers Content Calendar, June Edition II

Get ready to dive into Splunk Dashboard panels this week! We'll be tackling common questions around ...

Splunk Observability Cloud's AI Assistant in Action Series: Auditing Compliance and ...

This is the third post in the Splunk Observability Cloud’s AI Assistant in Action series that digs into how to ...