Check prerequisites

Beyond Splunk® Enterprise, you'll need a few more things before you can install and use the Splunk SDK for JavaScript:

  • Node.js is required for server-side scripting, building files, running server and client examples, running unit tests, and generating documentation. Download Node.js from the Node.js website and install the version for your platform.

    Notes

    • The current version of the Splunk SDK for JavaScript requires version 0.8.x or 0.10.x of Node.js. Using the SDK with earlier versions will no longer work. If you are upgrading to the latest version of the SDK, be sure to update your install of Node.js as well.
    • These versions of Node.js also include the Node Package Manager (NPM), which is required for the SDK.
  • A compatible browser. We've tested the Splunk SDK for JavaScript with the following browsers:

    • Apple Safari
    • Google Chrome
    • Microsoft Internet Explorer 8 (and version 7 in compatibility mode)
    • Mozilla Firefox
  • JSON support. When running in a web browser, the SDK's only dependency is JSON support. If your site supports older browsers, you might need to include JSON handling for compatibility. To learn more, see the JSON website.