<?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: Use script to format file while uploading in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205736#M40606</link>
    <description>&lt;P&gt;Kinda sorta... You can run your script as a scripted input and then monitor the location you're dropping the modified file in.  See scripted inputs in inputs.conf documentation.  Then see monitor in the same document.  &lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 10:28:44 GMT</pubDate>
    <dc:creator>jkat54</dc:creator>
    <dc:date>2016-09-22T10:28:44Z</dc:date>
    <item>
      <title>Use script to format file while uploading</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205735#M40605</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;
I have  a python script which formats the json file and create a new file in another location. My splunk instance reads this new formatted file.&lt;BR /&gt;
Is there any way we can use Splunk to take the not formatted file, run script on it and upload the same?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 09:15:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205735#M40605</guid>
      <dc:creator>harshal_chakran</dc:creator>
      <dc:date>2016-09-22T09:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: Use script to format file while uploading</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205736#M40606</link>
      <description>&lt;P&gt;Kinda sorta... You can run your script as a scripted input and then monitor the location you're dropping the modified file in.  See scripted inputs in inputs.conf documentation.  Then see monitor in the same document.  &lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 10:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205736#M40606</guid>
      <dc:creator>jkat54</dc:creator>
      <dc:date>2016-09-22T10:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use script to format file while uploading</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205737#M40607</link>
      <description>&lt;P&gt;You need to use &lt;CODE&gt;unarchive_cmd&lt;/CODE&gt;.  Here is a good tutorial:&lt;/P&gt;

&lt;P&gt;&lt;A href="http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/"&gt;http://blogs.splunk.com/2011/07/19/the-naughty-bits-how-to-splunk-binary-logfiles/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 13:54:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Use-script-to-format-file-while-uploading/m-p/205737#M40607</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2016-09-22T13:54:53Z</dc:date>
    </item>
  </channel>
</rss>

