Splunk SDK for Java now has maven support
Splunk SDK for Java now has maven support
Splunk SDK for CSharp now in Public Preview
Newest member of the Splunk’s SDK family – CSharp was finally released to the public last week.
Splunk SDK for CSharp is now available for download. The SDK enables all the basic use cases, some of which are listed below:
- Connect to Splunk
- Get data out from Splunk by running the blocking and asynchronous searches
- Export data from Splunk using the /export endpoint
- Write data into Splunk
- Manage Splunk objects
- and more …
Learn more and find out how to get started at Splunk SDK for CSharp. Download the SDK and let us know what you think at DevInfo.
Let’s take a look at some sample code …
Connect to Splunk
// Define
…
Splunk SDK for Ruby now in Public Preview
Another day in the life of SplunkDev and another SDK under Splunk’s Developer Platform.
Splunk SDK for Ruby is now publicly available. Thanks to the every one in the external Ruby community for their feedback and their contribution to the open source project!
So what can you do with the SDK? Below are some highlights:
OData for Splunk
OData users? If so, read on…
Now available on Splunkbase, we have a new app – OData for Splunk that allows you to access your data in Splunk from applications like Excel and Tableau where you can build dashboards and other report visualizations outside of the Splunk’s web interface.
This app provides OData endpoints to your Saved Searches. Using this endpoints, you can pull data from Splunk into Excel, Tableau or any other applications that support Open Data Protocol.
This application is currently in beta, and works with Splunk 5.0 and above. If you would like access, please contact us at DevInfo.
Splunk PHP SDK now available
This one goes out to all the developers waiting for the Splunk PHP SDK. Well, the wait has finally ended.
A public preview of PHP SDK 0.1.0 is now available on Github. While in its early stages, you can do a lot with this SDK. It allows you to run any saved searches or ad-hoc searches. It supports various search modes – normal, oneshot, blocking etc. giving you the control to run both synchronous as well as asynchronous searches.
Below are a few code snippets showing what you can do with the SDK:
Connect to Splunk
// Import Splunk.php
require_once 'Splunk.php';
// Create an instance of Splunk_Service to connect to a Splunk server
$service = new Splunk_Service(array(
'host' =>
…
Java SDK and Same-Origin Policy
We all know about the limitations at the browser level that prevents any communication between 2 different domains, aka Same-Origin Policy. The examples below show how you can use the Java SDK to work around this policy by communicating with Splunk server (splunkd) in your server side code. This way your client side code gets the data served on a silver plate from the server and can focus on building awesome UIs using css, js etc.
Sample Java code for the method in your server side class that can be invoked directly from the JSP:
public String getSearchResults(String query, String outputMode) {
// instantiate Service and connect
Args args = new Args();
args.add("username", "admin");
args.add("password",
…









