How to use the Splunk SDK for Ruby

The Splunk SDK for Ruby is deprecated. For more information, see Deprecation notice.

This section of the Splunk® SDK for Ruby shows how to start using Splunk to create your own apps with Ruby. Before continuing, be sure you've done the following:

We're assuming you know your way around Splunk Web and that you've gotten your feet wet. You've added some data and saved a search or two. (If not, check out the Splunk Tutorial.) Now you're ready to start using the SDK for Ruby to develop Splunk apps.

For simplicity, the code examples in this section avoid error handling, command-line processing, and complex logic, staying focused simply on showing you how to use the SDK APIs.

How to...

Introduces the basic process of connecting to splunkd and logging in.

Shows how to list, create, and run saved searches.

Shows how to list search jobs, create new jobs by running different types of searches, and display the results from searches in different formats.