Refine your search:

4
1

I would like to talk to the Splunk backend directly in order to run searches, and then feed that data into my own application. I noticed that the UI makes REST calls to the Splunk backend, which is relatively easy for me to interact with.

1) Is there documentation on the REST API?

2) Are there any SDKs available? If so, what languages?

asked 09 Nov '09, 18:20

Johnvey's gravatar image

Johnvey ♦♦
2.2k1217
accept rate: 58%


4 Answers:

There is now an update to the REST API documentation available here: http://docs.splunk.com/Documentation/Splunk/latest/RESTAPI/RESTintro

The new Python SDK is available on GitHub: https://github.com/splunk/splunk-sdk-python

Java and JavaScript SDKs will be coming soon.

link

answered 09 Sep '11, 16:51

psanford_splunk's gravatar image

psanford_splunk
1792
accept rate: 8%

As of November 2009, Splunk has not yet published API documentation for the 4.0 product, though we expect to have it soon. There are enough differences between versions 3 and 4 that the existing version 3 documentation and SDKs are only partially correct.

For information about using the built-in Python SDK, see: http://splunk.stackexchange.com/questions/14/can-i-use-splunks-built-in-python-sdk-in-my-own-scripts

For reference, here are pointers to version 3 resources:

1) Splunk 3.x REST documentation is located at: http://www.splunk.com/base/Documentation/3.4.11/Developer/SplunksRESTAPI.

2) Community-suppoted SDKs for version 3.x are located at: http://code.google.com/p/splunk-labs/. SDKs have been posted in Python, .NET, Java, PHP, and Perl. Splunk uses the Python SDK internally, and should be considered the reference implementation.

link

answered 09 Nov '09, 18:29

Johnvey's gravatar image

Johnvey ♦♦
2.2k1217
accept rate: 58%

edited 09 Nov '09, 19:19

Hello, We have now May 2011 and i also would like to know when there will be a Java SDK für Splunk 4.2, as we would like to do the same and include Splunk searches in our own developments.

Thank you!

link

answered 05 May '11, 02:28

tpaulsen's gravatar image

tpaulsen
92114
accept rate: 8%

Splunk still has a REST API. For 4.X, we are making this API bigger and better. Part of this process means we've removed the REST API documentation until our QA and development groups have completely solidified and certified each endpoint.

  1. The documentation for the REST API will be available as soon as a given endpoint is certified. We're starting with the search endpoint, which will be available when 4.1 is released in q1 2010. Other endpoints will be documented as they're certified. If you have a use case for an endpoint other than the search endpoint, please send that in as an enhancement request to the support team.

  2. SDKs will be available later this year. As we stabilize our endpoints, we will also be releasing SDKs. Languages up for consideration are Python, Ruby, PHP, Perl, Java, .NET...If you have a language you'd like to request, please submit an enhancement request to our support team.

link

answered 15 Jan '10, 01:41

emma's gravatar image

emma ♦
7331412
accept rate: 42%

Post your answer
toggle preview

Follow this question

Log In to enable email subscriptions

RSS:

Answers

Answers + Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×101
×93
×26
×23

Asked: 09 Nov '09, 18:20

Seen: 1,588 times

Last updated: 09 Sep '11, 16:51

Copyright © 2005-2012 Splunk, Inc. All rights reserved.