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!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...