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!

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud

Introduction to Splunk Observability Cloud - Building a Resilient Hybrid Cloud  In today’s fast-paced digital ...

Observability protocols to know about

Observability protocols define the specifications or formats for collecting, encoding, transporting, and ...

Take Your Breath Away with Splunk Risk-Based Alerting (RBA)

WATCH NOW!The Splunk Guide to Risk-Based Alerting is here to empower your SOC like never before. Join Haylee ...