<?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 Re: Unable to use python sdk with summary index for routine run of search query in Splunk Enterprise</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698081#M20127</link>
    <description>&lt;P&gt;There is no such thing as "summary index" as a separate type of index &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyway, are you sure the user you're running your search with can use the collect command?&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2024 14:21:17 GMT</pubDate>
    <dc:creator>PickleRick</dc:creator>
    <dc:date>2024-09-03T14:21:17Z</dc:date>
    <item>
      <title>Unable to use python sdk with summary index for routine run of search query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698071#M20125</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can splunk python sdk be used along with a summary index? How?&lt;/P&gt;&lt;P&gt;I wish to schedule periodic querying and extracting the data from Splunk for which I usually used the SDK like this and it works for 1 time run as I removed my "collect index ..." code from my query -&lt;/P&gt;&lt;P&gt;service = client.connect( host=HOST,&amp;nbsp; port=PORT,&amp;nbsp; username=USERNAME,&amp;nbsp; password=PASSWORD)&lt;/P&gt;&lt;P&gt;kwargs_oneshot = {"earliest_time": "-1h",&amp;nbsp; &amp;nbsp;"latest_time": "now",&amp;nbsp; &amp;nbsp;"output_mode": 'json', "count" : 100}&lt;/P&gt;&lt;P&gt;searchquery_oneshot = "search &amp;lt;query&amp;gt;"&amp;nbsp; # if i want collected index results to be used below periodically i.e. every 1 hour, what change do I make in my code?&lt;/P&gt;&lt;P&gt;oneshotsearch_results = service.jobs.oneshot(searchquery_oneshot, **kwargs_oneshot)&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 13:17:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698071#M20125</guid>
      <dc:creator>MK3</dc:creator>
      <dc:date>2024-09-03T13:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use python sdk with summary index for routine run of search query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698079#M20126</link>
      <description>&lt;P&gt;Summary indexes are no different from other indexes so the code you use to access one should work for the other.&lt;/P&gt;&lt;P&gt;How does the existing code fail?&amp;nbsp; What error messages do you see?&amp;nbsp; Have you checked search.log?&lt;/P&gt;&lt;P&gt;It's possible the query is being caught by the "risky code" trap because the &lt;FONT face="courier new,courier"&gt;collect&lt;/FONT&gt; command is considered a risky one.&amp;nbsp; To avoid that, add the following lines to a command.conf file (not system/default)&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[collect]
is_risky = false&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 03 Sep 2024 14:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698079#M20126</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2024-09-03T14:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use python sdk with summary index for routine run of search query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698081#M20127</link>
      <description>&lt;P&gt;There is no such thing as "summary index" as a separate type of index &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Anyway, are you sure the user you're running your search with can use the collect command?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2024 14:21:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise/Unable-to-use-python-sdk-with-summary-index-for-routine-run-of/m-p/698081#M20127</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-09-03T14:21:17Z</dc:date>
    </item>
  </channel>
</rss>

