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!

Index This | I am a number, but when you add ‘G’ to me, I go away. What number am I?

March 2024 Edition Hayyy Splunk Education Enthusiasts and the Eternally Curious!  We’re back with another ...

What’s New in Splunk App for PCI Compliance 5.3.1?

The Splunk App for PCI Compliance allows customers to extend the power of their existing Splunk solution with ...

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...