Dashboards & Visualizations

How to display the content of text file on splunk UI

disha
Contributor

I am writing in my view as

dowmload.html

I am writing download.html in ../etc/app/appname/appserver/static as


Also I am putting data.txt in same folder as ../etc/app/appname/appserver/static

When I see on my view page it open an iframe but in iframe it says
404 Not Found
Return to Splunk home page
Splunk cannot find the "data.txt" view.

It is searching data.txt as view name. Can you please help me how I can display the content of data.txt on Splunk UI. Please help. Its very urgent and I am lost.:(

Tags (1)
0 Karma
1 Solution

the_wolverine
Champion

Try putting your file within the app context of search. If you don't know where to put it, put it here:

$SPLUNK_HOME/etc/apps/search/appserver/static/data.txt

Then make sure your view references it correctly. Here's a simple example that will work if you copy it.




*
False
2


data.txt
True
100

View solution in original post

the_wolverine
Champion

Try putting your file within the app context of search. If you don't know where to put it, put it here:

$SPLUNK_HOME/etc/apps/search/appserver/static/data.txt

Then make sure your view references it correctly. Here's a simple example that will work if you copy it.




*
False
2


data.txt
True
100

disha
Contributor

Thankyou.Appreciated.!!

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...