<?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: Python SDK Best Practices in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430881#M7722</link>
    <description>&lt;P&gt;Here's the corrected link for &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizationOptions"&gt;Advanced Dev Customization Options&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 14 Jul 2018 00:12:01 GMT</pubDate>
    <dc:creator>gjanders</dc:creator>
    <dc:date>2018-07-14T00:12:01Z</dc:date>
    <item>
      <title>Python SDK Best Practices</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430879#M7720</link>
      <description>&lt;P&gt;We are trying to develop an external application that pulls data from Splunk via the Python SDK.&lt;/P&gt;

&lt;P&gt;We had a couple of questions.&lt;BR /&gt;
whether we need to explicitly log-out of service calls (and if not what the implications are)&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;Service(_BaseService):&lt;BR /&gt;
       """A Pythonic binding to Splunk instances&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;Do we need to explicitly logout of&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;self.service.logout()&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;we’re finding we’re needing to make a lot of splunk restarts to pick-up changes – any hints/tips/guidance on compiler interaction with Splunk (or even general Best Practice) would help!&lt;/P&gt;

&lt;P&gt;Also, do we have some documented Best Practices for the Python SDK? &lt;/P&gt;

&lt;P&gt;Any input would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 12:57:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430879#M7720</guid>
      <dc:creator>snayak_splunk</dc:creator>
      <dc:date>2018-07-10T12:57:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK Best Practices</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430880#M7721</link>
      <description>&lt;OL&gt;
&lt;LI&gt;I think it was @mvanderlist_splunk who pointed out that the logout is not necessary since the session timeout should suffice and can be modified to constraint to your desired TTL.&lt;/LI&gt;
&lt;LI&gt;There are great tips on the &lt;CODE&gt;_bump&lt;/CODE&gt; and &lt;CODE&gt;/debug/refresh&lt;/CODE&gt; strategies, as well as how to customize other caching parameters that help minimize the need for any action documented at &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizationOptions"&gt;Customization options and caching&lt;/A&gt;. Just remember that if something doesn't seem to take effect through one of those approaches, always revert back to a classic restart rather than assuming it's broken - these approaches may not work 100% of all times you'd expect them to (simply because we expect too much lol).&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Fri, 13 Jul 2018 00:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430880#M7721</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2018-07-13T00:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK Best Practices</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430881#M7722</link>
      <description>&lt;P&gt;Here's the corrected link for &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/AdvancedDev/CustomizationOptions"&gt;Advanced Dev Customization Options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 14 Jul 2018 00:12:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430881#M7722</guid>
      <dc:creator>gjanders</dc:creator>
      <dc:date>2018-07-14T00:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Python SDK Best Practices</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430882#M7723</link>
      <description>&lt;P&gt;Good catch @garethatiag - the period snuck in on the url. Should be fixed now.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jul 2018 17:06:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Python-SDK-Best-Practices/m-p/430882#M7723</guid>
      <dc:creator>sloshburch</dc:creator>
      <dc:date>2018-07-17T17:06:26Z</dc:date>
    </item>
  </channel>
</rss>

