<?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 Get Python to Communicate with Splunk in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36586#M427</link>
    <description>&lt;P&gt;I am trying to get Splunk to be my one source for our team's needs. Right now we have 3 different sites providing services in PHP. I am rewriting these apps in Python (basic MySQL reads and writes) and want to display the results in a Splunk app. I have been digging through the various documentation online and get more and more confused every time I start try to write the code.&lt;/P&gt;

&lt;P&gt;My question is, how can I get Python to return data to Splunk? Is there a specific module I can use?&lt;/P&gt;

&lt;P&gt;If I can just get to the point where I have a button in my app, then click it and "Hello World!" is displayed in a div, I can run from there.&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2013 16:24:07 GMT</pubDate>
    <dc:creator>the4tress</dc:creator>
    <dc:date>2013-05-16T16:24:07Z</dc:date>
    <item>
      <title>Get Python to Communicate with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36586#M427</link>
      <description>&lt;P&gt;I am trying to get Splunk to be my one source for our team's needs. Right now we have 3 different sites providing services in PHP. I am rewriting these apps in Python (basic MySQL reads and writes) and want to display the results in a Splunk app. I have been digging through the various documentation online and get more and more confused every time I start try to write the code.&lt;/P&gt;

&lt;P&gt;My question is, how can I get Python to return data to Splunk? Is there a specific module I can use?&lt;/P&gt;

&lt;P&gt;If I can just get to the point where I have a button in my app, then click it and "Hello World!" is displayed in a div, I can run from there.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 16:24:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36586#M427</guid>
      <dc:creator>the4tress</dc:creator>
      <dc:date>2013-05-16T16:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Get Python to Communicate with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36587#M428</link>
      <description>&lt;P&gt;You have 2 options:&lt;/P&gt;

&lt;P&gt;1- Scripted Input: Manager » Data inputs » Add data » Run and collect the output of a script: From the dock:&lt;BR /&gt;
"there are times when you want to use scripts to feed data to Splunk for indexing, or prepare data from a non-standard source so Splunk can properly parse events and extract fields."&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/ScriptedInputsIntro"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/ScriptedInputsIntro&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;2- Modular Input: From the doco...&lt;BR /&gt;
"Modular Inputs allows you to extend the Splunk framework to define a custom input capability. &lt;STRONG&gt;Splunk treats your custom input definitions as if they were part of Splunk's native inputs.&lt;/STRONG&gt;"  **Asterisks mine&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/ModInputsIntro"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.1/AdvancedDev/ModInputsIntro&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Your decision will be based on your use case.  Try to use a modular input over a scripted one.  Regardless, Splunk will work with your data either way.&lt;/P&gt;

&lt;P&gt;I would first recommend creating a small test index, such as "zdev" Manager &amp;gt; Indexes to hold your data until you get the desired results.  I always keep test indexes for this sort of thing.&lt;/P&gt;

&lt;P&gt;I hope this helps.  Don't forget to vote or accept this answer.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 17:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36587#M428</guid>
      <dc:creator>barakreeves</dc:creator>
      <dc:date>2013-05-16T17:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Get Python to Communicate with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36588#M429</link>
      <description>&lt;P&gt;Option 3 would be a custom search command.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 18:20:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36588#M429</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-05-16T18:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get Python to Communicate with Splunk</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36589#M430</link>
      <description>&lt;P&gt;Have you taken a look at our &lt;A href="http://dev.splunk.com/view/SP-CAAAEBB"&gt;Python SDK&lt;/A&gt; ?&lt;/P&gt;

&lt;P&gt;You can use this to execute Splunk searches and integrate the results into your application and also send events from your Python app directly into Splunk. There is also a PHP SDK.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2013 23:34:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Get-Python-to-Communicate-with-Splunk/m-p/36589#M430</guid>
      <dc:creator>Damien_Dallimor</dc:creator>
      <dc:date>2013-05-16T23:34:12Z</dc:date>
    </item>
  </channel>
</rss>

