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!

Announcing Scheduled Export GA for Dashboard Studio

We're excited to announce the general availability of Scheduled Export for Dashboard Studio. Starting in ...

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...