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!

Brains, Bytes, and Boston: Learn from the Best at .conf25

When you think of Boston, you might picture colonial charm, world-class universities, or even the crack of a ...

Splunk AppDynamics Agents Webinar Series

Mark your calendars! On June 24th at 12PM PST, we’re going live with the second session of our Splunk ...

SplunkTrust Application Period is Officially OPEN!

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