icon/x Created with Sketch.

Splunk Cookie Policy

We use our own and third-party cookies to provide you with a great online experience. We also use these cookies to improve our products and services, support our marketing campaigns, and advertise to you on our website and other websites. Some cookies may continue to collect information after you have left our website. Learn more (including how to update your settings) here.
Accept Cookie Policy

Accept License Agreements

This app is provided by a third party and your right to use the app is in accordance with the license provided by that third-party licensor. Splunk is not responsible for any third-party apps and does not provide any warranty or support. If you have any questions, complaints or claims with respect to this app, please contact the licensor directly.

Thank You

Downloading Splunk Dev For All
SHA256 checksum (splunk-dev-for-all_122.tgz) ea8ef6efe136fef8a2261504c0d64c4f102501d5c3aaf2bbb64d5bfa11b1375b SHA256 checksum (splunk-dev-for-all_121.tgz) c6d209fd3bbb2c6e29a9ca7b2767cb25c8104b9e97d7a856797d8e0e4ba669b8 SHA256 checksum (splunk-dev-for-all_12.tgz) b43aedc1e55e62f2a3e94505c2f585be3787c3f80dd2df341a377dba92ee84b6 SHA256 checksum (splunk-dev-for-all_111.tgz) 657c200bd6b65a659dec4b93f584747687d7f6be5ec9c2446878e937d8741576 SHA256 checksum (splunk-dev-for-all_110.tgz) 6f456381525f51fb08c3cec098b4445e482a012ee521c47137b89fb236b001c4 SHA256 checksum (splunk-dev-for-all_100.tgz) ec990a00cbf9c88ea7ee98ba8e7855dde40cb51bec6584dbe9ac95b6292b8696 SHA256 checksum (splunk-dev-for-all_091.tgz) 64235cb2c8092b886119122c7ef2253b7f26a0dcc0a94ed6807b60047be42c97 SHA256 checksum (splunk-dev-for-all_090.tgz) abca7a75009bc3511a025b0832d6b19d8d9f1a2003c7f9f2e52ed10fa71ef5f6
To install your download
For instructions specific to your download, click the Details tab after closing this window.

Flag As Inappropriate

Splunk Dev For All

Overview
Details
Welcome to the Splunk Dev for All app! This app provides you with working snippets of content to make it easier to use SplunkJS, Splunk Python, and related capabilities such as some of the internals of Splunk. This app contains 30+ pre-packaged working code samples that you can put together to turn your Splunk dashboards into real applications with great user experience, more interactivity, and a richer feel. In addition, there are pointers to many places where you can learn more, or see the samples working in action.

This app pairs with a talk at .conf18 by David Veuve and Dave Herrald: DEV1545 - Go From Dashboards to Applications With Ease: SplunkJS And Splunk Python for Non-Developers, the top rated Dev talk at .conf18! Check out the recording: https://conf.splunk.com/conf-online.html?search=dev1545#/

There's also a hosted no-auth version -- check it out, if you want to explore before you install! https://www.davidveuve.com/SA-devforall/home

OVERVIEW

Welcome to the Splunk Dev for All app! This app provides you with working snippets of content to make it easier to use SplunkJS, Splunk Python, and related capabilities such as some of the internals of Splunk. This app contains 30+ pre-packaged working code samples that you can put together to turn your Splunk dashboards into real applications with great user experience, more interactivity, and a richer feel. In addition, there are pointers to many places where you can learn more, or see the samples working in action.

This app pairs with a talk at .conf18 by David Veuve and Dave Herrald: DEV1545 - Go From Dashboards to Applications With Ease: SplunkJS And Splunk Python for Non-Developers -- catch us in Orlando!

Installation

Installation of this app is recommended only in development environments, as it does ship with a scripted input (though with minimal data ingest). There are no known issues installing alongside other apps and all techniques in the app have been tested in broader scenarios, but none the less the app is intended for developers and shouldn't live alongside everything you expose to your entire user community.

Contents

Guidance

  • Setting Up Your Development Environment: When you're getting started developing on Splunk, there are a few key things that you should know. Read through this for the benefit of the experience of many people to help you start building right!
  • Powerful Third Party (and jQuery) Plug-Ins: Plugins can help you accomplish more, more quickly, and make your dashboard feel more like a real application. See what our favorites are, and pick up a few good tips regardless.
  • Splunk Style Guidelines (and Icons and such): Splunk ships with a style guide include icons, working HTML for form elements, modals, and all kinds of other capabilities. If you've never looked at this, it will help you avoid lots of work and have consistency with the general Splunk feel.
  • Logging and Debugging: Getting visibility into what's happening with your code is key for any kind of development. How have we done this?

Basics

  • Including a JS file: Hello World, SplunkJS Style
  • Running a Search from Javascript: The foundation of all SplunkJS, running a search and then outputing the results into an HTML element. Also includes examples generating a SimpleXML Viz from a Javascript search, and a Javascript Output from a SimpleXML search.
  • Reading JSON Files from appserver/static: This is built into some of these core concepts, but why not make it explicit!
  • Dynamically Updating Search String: Dynamically set the search string for any existing search managers.
  • Indexing Events from Javascript: It's possible you may with to ingest data via Javascript. Consider log events to show what happened, audit events to show what the user did, or even small JSON data sources you download from the internet!
  • Automatically Running Javascript on Every Page: Sometimes you need to run a script on every page, every time. Or similarly for stylesheets. Fortunately, Splunk makes that easy with dashboard.css and dashboard.js.
  • Tooltips and Popovers: Want to embed helpful descriptions? Fortunately Splunk makes it fairly easy to do so with Bootstrap's tooltip and popover.

Intermediate

  • Creating Modal Dialogs: Modal Dialogs allow you to warn users about problems, get input from users, and more. Javascript natively has ugly alerts.. but modals are pretty and great!
  • Querying REST API from Javascript: How can you directly query elements of Splunk's REST API from Javascript (without launching a search with the | rest search command, which would be silly and we would never use that in published apps on Splunkbase.. 😐).
  • Using kvstore Collections: Reading the Splunk kvstore directly from SplunkJS, or adding entries.
  • Authenticated Custom Search Commands: A basic search command that will run Splunk searches on your behalf, or hit the Splunk REST API.
  • Authenticated Scripted Input: A scripted input that runs as an authenticated user to accomplish periodic tasks.
  • Creating Zip Files with third party Javascript Libraries: This isn't really SplunkJS, but it's fun! And it gives us an opportunity to show how we can use third party libraries in our Javascript.
  • Instantiating SplunkJS Service Object: Many of Splunk's docs talk about using SplunkJS from other websites which requires a service object. This will instantiate one within a SimpleXML Dashboard.
  • Combining JSON Files from kvstore: If you have a static configuration file that you want to override with locally, it may be easiest to load your static JSON and then pull custom entries from the kvstore.
  • Using localStorage: Do you need to really, really easily maintain state and are okay with it being limited to a single browser window? Then you'll love localStorage.
  • Hiding Admin Functions in Help Menu: Don't let your drive for a simple user experience prevent you from building easy admin functionality. Just hide it in the help menu!
  • Stored Credentials: Do you need to store a username and password, but don't want to hardcode it unencrypted on the local file system? Stored credentials are here for you!
  • Dynamically Adding Panels: Dynamically add new rows or panels to your dashboard, all from Javascript.

Advanced

  • Comparing Streaming SDK Methods: For streaming search commands, there are two primary methods for implementation. One uses the Python SDK, and one uses a new Chunked Encoding library. We walk through these.
  • Posting to HEC via Javascript: Implement your own client-side tracking by sending beacons from a non-Splunk website to the HTTP Event Collector via Javascript.
  • Editing .conf Files from Javascript: Sometimes you may with to add a new lookup, new props, new .. anything .. from Javascript. This is the only known end-to-end example of doing that.
  • Javascript Diag: When you build out a lot of Javascript, you inevitably fear someone saying "it doesn't work" but it works on your system. Fortunately, you can get a diag, making it easier to troubleshoot!
  • Javascript App Setup: Want to have a lightweight app setup that checks whether data exists? This may be just the way for you.
  • Localizing Apps With jquery.i18n: Use Wikimedia's jquery.i18n to localize portions of your app.

Third Party Licensing

Please consult LICENSE.txt in the app for all third party licenses.

Release Notes

Version 1.2.2
March 25, 2019

1.2.2 Release Notes:
* Expanded ex09-collections to show how to update a specific element in a kvstore
* Expanded ex13-editing-conf-files-from-javascript to provide a full CRUD for conf files. Now freely pull, update, change, or delete configurations.

Version 1.2.1
Jan. 10, 2019

Release Notes for 1.2.0:
* Added new example walking through an escalation / approval workflow using just SimpleXML and Tokens

Release Notes for 1.2.1:
* Fixed one logic bug in new example

Version 1.2
Jan. 9, 2019

Release Notes for 1.2:
* Added new example walking through an escalation / approval workflow using just SimpleXML and Tokens

Version 1.1.1
Dec. 7, 2018

1.1.1 Release Notes:
* Three bug fixes (embarrassing XML error on home page, two synchronous requests that should have been async)

Version 1.1.0
Nov. 27, 2018

1.1.0 Release Notes:
* Added sourceURL to all the JS files (look at the last line) so that it will show up in the debug console. Credit to Andreas Zientek for the great suggestion (and for teaching us about this!): https://www.davidveuve.com/apps/sa-jsforall/sourceURL_suggestion.pdf
* Adjusted some text and URL errors
* A few bug fixes
* Noted the hosted no-auth version.

Version 1.0.0
Sept. 30, 2018

09-30-2018 Release:
* Added ex04 - Passing Data Between Dashboards with Tokens
* Addex ex23 - Python Controllers in Splunk Web
* David Veuve, who has not done anything like this before, took Dave Herrald's ex23, and in about 10 minutes built a python code reader controller that extended the Code Viewer module to show you python code. (The model works!)
* Fixed a silly typo that prevented you from successfully reviewing content (apologies!)

Version 0.9.1
Sept. 26, 2018

.conf Release

Version 0.9.0
Sept. 21, 2018

Initial Release for Splunk Dev for All. Come see us at .conf for all the details!

285
Installs
1,784
Downloads
Share Subscribe LOGIN TO DOWNLOAD

Subscribe Share

AppInspect Tooling

Splunk AppInspect evaluates Splunk apps against a set of Splunk-defined criteria to assess the validity and security of an app package and components.

Are you a developer?

As a Splunkbase app developer, you will have access to all Splunk development resources and receive a 50GB license to build an app that will help solve use cases for customers all over the world. Splunkbase has 1000+ apps and add-ons from Splunk, our partners and our community. Find an app or add-on for most any data source and user need, or simply create your own with help from our developer portal.

Follow Us:
© 2005-2019 Splunk Inc. All rights reserved.
Splunk®, Splunk>®, Listen to Your Data®, The Engine for Machine Data®, Hunk®, Splunk Cloud™, Splunk Light™, SPL™ and Splunk MINT™ are trademarks and registered trademarks of Splunk Inc. in the United States and other countries. All other brand names, product names, or trademarks belong to their respective owners.