<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Embed Saved Search with API (preferably Python SDK) in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Embed-Saved-Search-with-API-preferably-Python-SDK/m-p/484439#M195713</link>
    <description>&lt;P&gt;I'm programmatically generating saved searches with the Python SDK, which is great.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;Is it possible to embed saved saved searches with the API?  I can't figure out a way to do that.&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2019 07:29:28 GMT</pubDate>
    <dc:creator>zcianflone</dc:creator>
    <dc:date>2019-11-13T07:29:28Z</dc:date>
    <item>
      <title>Embed Saved Search with API (preferably Python SDK)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Embed-Saved-Search-with-API-preferably-Python-SDK/m-p/484439#M195713</link>
      <description>&lt;P&gt;I'm programmatically generating saved searches with the Python SDK, which is great.&lt;/P&gt;

&lt;P&gt;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.&lt;/P&gt;

&lt;P&gt;Is it possible to embed saved saved searches with the API?  I can't figure out a way to do that.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2019 07:29:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Embed-Saved-Search-with-API-preferably-Python-SDK/m-p/484439#M195713</guid>
      <dc:creator>zcianflone</dc:creator>
      <dc:date>2019-11-13T07:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Embed Saved Search with API (preferably Python SDK)</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Embed-Saved-Search-with-API-preferably-Python-SDK/m-p/690261#M235105</link>
      <description>&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;For example,&lt;/P&gt;&lt;PRE&gt;s = service.saved_searches[&lt;BR /&gt;"my_report", splunklib.client.namespace(app="my_app", owner="me", sharing="app")&lt;BR /&gt;]&lt;BR /&gt;&lt;BR /&gt;s.post("embed")&lt;BR /&gt;s.refresh()&lt;BR /&gt;is_embedded = bool(int(s.content.embed.enabled))&lt;BR /&gt;report_token = s.content.embed.token&lt;BR /&gt;&lt;BR /&gt;s.post("unembed")&lt;BR /&gt;s.refresh()&lt;BR /&gt;is_embedded = bool(int(s.content.embed.enabled))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Jun 2024 16:20:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Embed-Saved-Search-with-API-preferably-Python-SDK/m-p/690261#M235105</guid>
      <dc:creator>sethc</dc:creator>
      <dc:date>2024-06-10T16:20:06Z</dc:date>
    </item>
  </channel>
</rss>

