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?

jramos123
Engager

This worked for me

highsplunker
Contributor

worked for me too! thanks!

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 Brute Force Account Takeover Fraud with Splunk

This article is the second in a three-part series exploring advanced fraud detection techniques using Splunk. ...

Buttercup Games: Further Dashboarding Techniques (Part 9)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Buttercup Games: Further Dashboarding Techniques (Part 8)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...