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!

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...

Let’s Get You Certified – Vegas-Style at .conf24

Are you ready to level up your Splunk game? Then, let’s get you certified live at .conf24 – our annual user ...