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 Splunk Enterprise 9.2

WATCH HERE! Watch this Tech Talk to learn about the latest features and enhancements shipped in the new Splunk ...

Adoption of RUM and APM at Splunk

    Unleash the power of Splunk Observability   Watch Now In this can't miss Tech Talk! The Splunk Growth ...

Routing logs with Splunk OTel Collector for Kubernetes

The Splunk Distribution of the OpenTelemetry (OTel) Collector is a product that provides a way to ingest ...