<?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: How to use python scripts as a scripted input for parsing? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239336#M46529</link>
    <description>&lt;P&gt;Thanks Richgalloway, let me try this&lt;/P&gt;</description>
    <pubDate>Wed, 18 Jan 2017 12:40:37 GMT</pubDate>
    <dc:creator>hkmurali</dc:creator>
    <dc:date>2017-01-18T12:40:37Z</dc:date>
    <item>
      <title>How to use python scripts as a scripted input for parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239334#M46527</link>
      <description>&lt;P&gt;I have a set of log files that has to be parsed using python. I Have this file "scriptedfile.py"&lt;BR /&gt;
As a newbie, I tried going through documentation, especially this link : &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Getdatafromscriptedinputs#Where_to_place_the_scripts_for_scripted_inputs"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.1/Data/Getdatafromscriptedinputs#Where_to_place_the_scripts_for_scripted_inputs&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;But I am not able to follow much of the steps here , especially modifying some "inputs.conf" file. So I'd hope if someone can translate this in some simpler words and tell me the steps to about parsing my log files with the script and then use it for further analysis in Splunk.&lt;/P&gt;

&lt;P&gt;In case this helps, I found this In the below path&lt;BR /&gt;
C:\Program Files\Splunk\etc\system\local, i found an inputs.conf with just two lines : &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[default]
host = ATA1CJSKCR
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
Karthik&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2017 14:27:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239334#M46527</guid>
      <dc:creator>hkmurali</dc:creator>
      <dc:date>2017-01-16T14:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python scripts as a scripted input for parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239335#M46528</link>
      <description>&lt;P&gt;Scripted inputs are usually associated with an app rather than the system.  It's a good to create a company app for this purpose.&lt;/P&gt;

&lt;P&gt;Once you've decided on a location for your script, it's a simple matter to edit the relevant inputs.conf file and insert the following lines.  They will cause your script to run every 5 minutes with the output sent to index "foo".  You'll want to change the index and sourcetype names and the interval to suit your environment.  Restart Splunk after editing the file.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[script:///opt/splunk/etc/app/ourapp/bin/scriptedfile.py]
disabled = 0
index = foo
interval = 300
sourcetype = bar
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 16 Jan 2017 18:02:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239335#M46528</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2017-01-16T18:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python scripts as a scripted input for parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239336#M46529</link>
      <description>&lt;P&gt;Thanks Richgalloway, let me try this&lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 12:40:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239336#M46529</guid>
      <dc:creator>hkmurali</dc:creator>
      <dc:date>2017-01-18T12:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to use python scripts as a scripted input for parsing?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239337#M46530</link>
      <description>&lt;P&gt;Note: 'interval' value is in &lt;STRONG&gt;seconds&lt;/STRONG&gt;, not in minutes.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Dec 2017 22:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-use-python-scripts-as-a-scripted-input-for-parsing/m-p/239337#M46530</guid>
      <dc:creator>gesman_splunk</dc:creator>
      <dc:date>2017-12-06T22:14:36Z</dc:date>
    </item>
  </channel>
</rss>

