Dashboards & Visualizations

Why the error "Failed to load resource: the server responded with a status of 404" when following the tutorial?

faustf
Communicator

I'm evaluating the Splunk Enterprise product.
I'm following the tutorial: Create a custom Splunk view - http://dev.splunk.com/view/SP-CAAAEQ8
but I have the following error:

[Error] Failed to load resource: the server responded with a status of 404 (Not Found) (customview.js, line 0) http://192.168.56.101:8000/en-US/static/@59c8927def0f/app/customviewtutorial/customview.js

the content of /opt/splunk/etc/apps/customviewtutorial is this:

drwxr-xr-x  3 splunk splunk 4096 Nov 21 18:44 appserver
drwxr-xr-x  2 splunk splunk 4096 Nov 21 18:41 bin
drwxr-xr-x  3 splunk splunk 4096 Nov 21 18:41 default
drwxr-xr-x  3 splunk splunk 4096 Nov 21 18:42 local
drwxr-xr-x  2 splunk splunk 4096 Nov 21 18:43 metadata

and the content of /opt/splunk/etc/apps/customviewtutorial/appserver/static is this:

-rwxr-xr-x 1 splunk splunk  287 Nov 21 18:45 customview.js
-rwxr-xr-x 1 splunk splunk  670 Nov 21 18:45 demoview.js

What am I doing wrong?

Labels (1)

jramos123
Engager

This worked for me

0 Karma

kazu123
New Member

Im using splunk7.x and have same error.
So, i change the URL x.x.x.x/ja-JP to x.x.x.x/en-US and this error was resolved

0 Karma

samhodgson
Path Finder

Same here, working in Firefox but not in Chrome. Path is confusing would be helpful if this were mentioned/explained in the doc.

0 Karma

phillipsg
Engager

Had similar issue on 6.5.1. In my case, the problem happened when using Chrome Version 43.0.2357.81 (64-bit). There was no problem with Firefox or Safari.

faustf
Communicator

I've updated the version of Splunk enterprise form 6.5.0 to 6.5.1 and now it's working fine

0 Karma

xersist
New Member

still having the issue on 6.5.1

0 Karma

phillipsg
Engager

I'm also seeing this issue on 6.5.1 (build f740366626f0c).
GET http://10.2.8.230:8000/en-US/static/@f74036626f0c/app/customviewtutorial/customview.js 404 (Not Found)

What is confusing is that the HTTP get request is for en-US/static/@f74036626f0c/app/customviewtutorial/customview.js, and yet the file is located at /opt/splunk/etc/apps/customviewtutorial/appserver/static/customview.js. In my case the customview.js is owned by root, rather than splunk. Not sure if that is the problem.

0 Karma
Get Updates on the Splunk Community!

Detecting Remote Code Executions With the Splunk Threat Research Team

REGISTER NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If ...

Observability | Use Synthetic Monitoring for Website Metadata Verification

If you are on Splunk Observability Cloud, you may already have Synthetic Monitoringin your observability ...

More Ways To Control Your Costs With Archived Metrics | Register for Tech Talk

Tuesday, May 14, 2024  |  11AM PT / 2PM ET Register to Attend Join us for this Tech Talk and learn how to ...