Splunk Dev

splunk-sdk-python analytics sample not working

rroberts
Splunk Employee
Splunk Employee

Have splunk-sdk-python installed. Tests work i.e. /tests/runtest.py. Some examples work i.e. abc/a.py b.py... Am able to run /splunk-sdk/examples/analytics/server.py and Bottle server is running on http://localhost:8080. Have verified .splunkrc file. I have also verified I have events on Splunk:

2012-08-08T08:39:29.112076 application="analytics" event="list_applications in the sample_analytics index.

However, http://localhost:8080/applications show a blank webpage. Did I miss a step?

1 Solution

rroberts
Splunk Employee
Splunk Employee

Was working on Beta Splunk 5.0 (build 125564)

Switched to Splunk 4.3.3 and it worked like a charm.

View solution in original post

rroberts
Splunk Employee
Splunk Employee

Was working on Beta Splunk 5.0 (build 125564)

Switched to Splunk 4.3.3 and it worked like a charm.

psanford_splunk
Splunk Employee
Splunk Employee

Do you see anything in the console from which you started server.py?

0 Karma

rroberts
Splunk Employee
Splunk Employee

rickrob@ubuntu64:~/splunk-sdk-python/examples/analytics$ python server.py

Bottle server starting up (using WSGIRefServer())...

Listening on http://192.168.2.16:8080/

Use Ctrl-C to quit.

0 Karma
Get Updates on the Splunk Community!

Built-in Service Level Objectives Management to Bridge the Gap Between Service & ...

Wednesday, May 29, 2024  |  11AM PST / 2PM ESTRegister now and join us to learn more about how you can ...

Get Your Exclusive Splunk Certified Cybersecurity Defense Engineer Certification at ...

We’re excited to announce a new Splunk certification exam being released at .conf24! If you’re headed to Vegas ...

Share Your Ideas & Meet the Lantern team at .Conf! Plus All of This Month’s New ...

Splunk Lantern is Splunk’s customer success center that provides advice from Splunk experts on valuable data ...