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
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.
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.
You cannot do it. You cant post binary documents in a splunk dashboard.
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:
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.
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.