- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unable to make javascript examples work on remote computer
Hi,
I've downloaded the javascript api, and want to test the client code, to connect to a remote splunk server.
If I run the splunk-sdk-javascript/tests/tests.browser.html to verify the connection, specify the server name, and port, nothing happends, with a sniffer attached I can see that nothing is send to the server. Same pattern with the other examples.
Port 8089 is open and accessible, I can connect to it with https in a browser.
I'm fairly new to splunk, is there something I have missed?
thank you!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Ineeman was spot-on with his answer above, thanks!
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your help all, I'm sorry to report back on this issue so late, but I found out that I indeed missed xml2json app on the remote server.
Still though, from the page I'm building, maintaining some sort of connection state is hard, since there is no timeouts, or errors when the server for some reason dies.
Anybody have some input for this?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are you sure you have loaded test.browser.html from web server, not using your local file:// -URL? Using local files can not work because single origin policy, ie. javascript can only talk to host where it was loaded from.
See "Dependencies and cross domain communication" at
http://dev.splunk.com/view/splunk-javascript-sdk-getting-started/SP-CAAAEFM
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm having the same problem. I noticed that the "Run" button has no href.
Have you solved this yet?
- Mark as New
- Bookmark Message
- Subscribe to Message
- Mute Message
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Did you install the xml2json app on the remote server?
