<?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: passing search result to empty python file in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45781#M10905</link>
    <description>&lt;P&gt;That actually made me more confused than I was before &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Aug 2013 13:41:59 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-08-26T13:41:59Z</dc:date>
    <item>
      <title>passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45778#M10902</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
i am running a  query &lt;/P&gt;

&lt;P&gt;index="dataload" in search and i want to transfer it result in empty python file ..For that i hv uploaded a python sdk and created an empty file in aap-search-bin folder..&lt;/P&gt;

&lt;P&gt;but i dont know the correct way,how can i transfer my search result to empty python file,i hv to again perform some operation on this python file..but first want to transfer my search result in python file&lt;/P&gt;

&lt;P&gt;index="dataload" | tabel python.py&lt;BR /&gt;
like this.....&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 04:40:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45778#M10902</guid>
      <dc:creator>harsh1734</dc:creator>
      <dc:date>2013-08-26T04:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45779#M10903</link>
      <description>&lt;P&gt;What do you mean by transferring to an empty Python file? Why would you want to do that? What's the desired end result?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 07:25:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45779#M10903</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-26T07:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45780#M10904</link>
      <description>&lt;P&gt;i want to perform some python programming on that index because their is problem in extracting some of the fields.so by writing a script means i know that on 3rd line, my this output will be there so cutting all that field value... some thing like that&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 08:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45780#M10904</guid>
      <dc:creator>harsh1734</dc:creator>
      <dc:date>2013-08-26T08:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45781#M10905</link>
      <description>&lt;P&gt;That actually made me more confused than I was before &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 13:41:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45781#M10905</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-26T13:41:59Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45782#M10906</link>
      <description>&lt;P&gt;And oh, if I recall correctly you were the guy who had field extraction problems and wanted to solve them by writing custom Python commands. I still don't think that sounds like a good solution.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Aug 2013 13:42:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45782#M10906</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-26T13:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45783#M10907</link>
      <description>&lt;P&gt;yup,but this is the  only solution i think..because splunk is not able to make the regex for these fileds values like if the field has values like (720),(65,123,457) so it will make regex of (65,123,457) its a single value but splunk is cosidering  it as different value  and breaking it into 65  123 and 457 as individual  unit&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 05:43:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45783#M10907</guid>
      <dc:creator>harsh1734</dc:creator>
      <dc:date>2013-08-27T05:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45784#M10908</link>
      <description>&lt;P&gt;I'm very sure Splunk can do this. My advice would be to open up a separate question about this, with examples and good information on what you want to do.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 07:34:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45784#M10908</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-08-27T07:34:10Z</dc:date>
    </item>
    <item>
      <title>Re: passing search result to empty python file</title>
      <link>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45785#M10909</link>
      <description>&lt;P&gt;Your request for a python script command is quite confusing.&lt;/P&gt;

&lt;P&gt;I see 2 alternate simple options :&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;export all your data in a csv file, and work out of splunk.&lt;BR /&gt;
see the command "mysearch | table field1 field2 field3 | exportcsv mycsvfile.csv"&lt;BR /&gt;
or the export options for the UI&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;or find the correct regex to extract your fields in splunk (see the command "rex" )&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Rex"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/SearchReference/Rex&lt;/A&gt;&lt;BR /&gt;
and if needed,  use multivalue fields commands,&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Search/Parsemultivaluefields"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/Search/Parsemultivaluefields&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.4/Knowledge/ConfigureSplunktoparsemulti-valuefields"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.4/Knowledge/ConfigureSplunktoparsemulti-valuefields&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;In this case, provide a useful sample. And the expected result.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 14:39:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/passing-search-result-to-empty-python-file/m-p/45785#M10909</guid>
      <dc:creator>yannK</dc:creator>
      <dc:date>2013-08-27T14:39:41Z</dc:date>
    </item>
  </channel>
</rss>

