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!

Splunk Mobile: Your Brand-New Home Screen

Meet Your New Mobile Hub  Hello Splunk Community!  Staying connected to your data—no matter where you are—is ...

Introducing Value Insights (Beta): Understand the Business Impact your organization ...

Real progress on your strategic priorities starts with knowing the business outcomes your teams are delivering ...

Enterprise Security (ES) Essentials 8.3 is Now GA — Smarter Detections, Faster ...

As of today, Enterprise Security (ES) Essentials 8.3 is now generally available, helping SOC teams simplify ...