Dashboards & Visualizations

word document data in splunk dashboard

surekhasplunk
Communicator

Hi,

I have some data in word document and i want to read that file and show the content of the file in splunk dashboard which i have created.
How to do that what should i write in the source code be it xml or html to get the data in shown in the dashboard in one of the panels.

Thanks
Surekha

0 Karma

bowesmana
SplunkTrust
SplunkTrust

I've done similar to what @esix_splunk suggests, i.e. saving the Word document as non MS HTML and then pasting the resultant HTML to an <html> panel in the dashboard. Removing the horrendous MS HTML is a real pain, so if you can start off with raw text, and do the formatting inside Splunk, that's a better option.

Also, you can include the text from a file so you can externalise it from the dashboard itself and use tokens for the data.

 

0 Karma

surekhasplunk
Communicator

I tried with .txt file and it worked but .doc isn't working i want .doc only as i want to show bullets and all.
Please help me with the html/xml code patch if you can.

0 Karma

esix_splunk
Splunk Employee
Splunk Employee

You cannot do it. You cant post binary documents in a splunk dashboard.

esix_splunk
Splunk Employee
Splunk Employee

So MS Word is a proprietary format and will need to be preprocessed for Splunk to read it (its binary...) I would recommend you check out this article:

http://blogs.splunk.com/2016/06/30/splunking-a-microsoft-word-document-for-metadata-and-content-anal...

That will guide you to Splunking Word documents and indexing it.

However, I am wondering you mean you just want a Dashboard Panel that contains HTML text. In that case, you cannot include a word file in a panel without alot of customization. Your best bet would be to save that word file as text and import that into your panel.

marycordova
SplunkTrust
SplunkTrust

It would have been nice I there had been some instructions or a link on how to add a pdf or plain text doc into a dashboard panel.

@marycordova
0 Karma
Get Updates on the Splunk Community!

Introducing the Splunk Community Dashboard Challenge!

Welcome to Splunk Community Dashboard Challenge! This is your chance to showcase your skills in creating ...

Get the T-shirt to Prove You Survived Splunk University Bootcamp

As if Splunk University, in Las Vegas, in-person, with three days of bootcamps and labs weren’t enough, now ...

Wondering How to Build Resiliency in the Cloud?

IT leaders are choosing Splunk Cloud as an ideal cloud transformation platform to drive business resilience,  ...