Splunk Search

Embed Saved Search with API (preferably Python SDK)

zcianflone
Engager

I'm programmatically generating saved searches with the Python SDK, which is great.

I then want to embed those saved searches on an external website (confluence). Embed-able dashboards would obviate the need for the saved search generation, but alas that feature is seemingly never coming.

Is it possible to embed saved saved searches with the API? I can't figure out a way to do that.

Tags (1)
0 Karma

sethc
New Member

I realize this is an old thread, but I was looking the same thing and came across this post. As of 2024, the Splunk Python SDK doesn't support an "embed()" method on the saved search object, but you can call the post() method with the "embed" or "unembed" parameter.

For example,

s = service.saved_searches[
"my_report", splunklib.client.namespace(app="my_app", owner="me", sharing="app")
]

s.post("embed")
s.refresh()
is_embedded = bool(int(s.content.embed.enabled))
report_token = s.content.embed.token

s.post("unembed")
s.refresh()
is_embedded = bool(int(s.content.embed.enabled))

 

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...