Splunk Dev

Can I access datamodel endpoints using python SDK

luhadia_aditya
Path Finder

Can I access datamodel objects using python SDK ?
I am aware that I can access them via Java and Javascript SDK.

Another question is, can I access the aggregated data sets generated out of accelerated data models or reports using python SDK and feed those data sets to the integerating components ?
Its like, making available that aggregated data to the analytics platform via python SDK.

Please advise and thanks in advance!

0 Karma

jlin
Splunk Employee
Splunk Employee

I am also looking for a way to do this.

Depends on what you need and what you want to do, but a way to access them would be using Entity and Collections classes.

DATAMODEL_ENDPOINT = 'datamodel/model'
datamodels = Collection(self.service_wrapper.service, DATAMODEL_ENDPOINT)
for datamodel in datamodels:
  // do stuff


Get Updates on the Splunk Community!

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 ...

Welcome to the Splunk Community!

(view in My Videos) We're so glad you're here! The Splunk Community is place to connect, learn, give back, and ...