Splunk Enterprise

How to display the log events in an organised form using Simple XML

akarivaratharaj
Communicator

Hi Team,

We have recently upgraded the Splunk to version 8.0 . So the dashboards and reports whichever created in Advanced XML is not working so re-creating it in Simple XML. Earlier we were using a view called Flashtimeline, which will show the normal events in a very organised and user understandable way. This view was created in Advanced XML. Below is a sample log event, which is displayed in the view called flashtimeline (This displayed when we just give "index=xx sourcetype=yy host=zz").

 

Host:	xxx	Service:	DATABASE
Has Details:	N	Is Sample:	N
Process Name:	yyy
Request Id:	zzz
Request:	{call sp_name('*')}
Start Timestamp:	2020-09-07 04:29:56.986	End Timestamp:	2020-09-07 04:29:57.242
 
Timing Details (Total Exec Time=256 ms)
Name	Time since beginning (ms)	Execution Time(ms)	% of Total Time
BEGIN	0	0	0
preExecution	0	0	0
prepareStatement	0	0	0
setParameters	0	0	0
executeQuery	0	251	98
handleExecution	251	5	1
END	256	0	0

 

 
This is a very neat, organised and easily understandable format of an event. 
Here is the actual display of the same event, when we try to search in the Search app with the same query "index=xx sourcetype=yy host=zz"

 

"2020-09-07 04:29:00.995","10.241.140.193","DATABASE","sp_name","2020-09-07 04:29:01.197","xxx","1","202","","BEGIN","1599452940995","preExecution","1599452940995","prepareStatement","1599452940995","setParameters","1599452940995","executeQuery","1599452940995","handleExecution","1599452940998","END","1599452941197","-","-1","-","-1","-","-1","yyy","-","zzz","N"," {CALL sp_name(?, ?, ?, ?)}","N"

 

 
I am aware the Flashtimeline was deprecated during the Splunk 6.x version itself and it was replaced with Search app.
But I would like to display the events in a neat and organised way (as like the first sample event) with Simple XML code.

Could anyone please help me on getting this as soon as possible.

Labels (2)
0 Karma

akarivaratharaj
Communicator

Could someone help me on this please?

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Can’t Make It to Boston? Stream .conf25 and Learn with Haya Husain

Boston may be buzzing this September with Splunk University and .conf25, but you don’t have to pack a bag to ...

Splunk Lantern’s Guide to The Most Popular .conf25 Sessions

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

Unlock What’s Next: The Splunk Cloud Platform at .conf25

In just a few days, Boston will be buzzing as the Splunk team and thousands of community members come together ...