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!

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,  ...