<?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 execute a script and display results on a search page? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452752#M168210</link>
    <description>&lt;P&gt;Hi  @tusharsaran1&lt;/P&gt;

&lt;P&gt;Yes, you can do that&lt;/P&gt;

&lt;P&gt;as you mentioned create a command which calls the python script, in the python script import the Intersplunk.py module which is availabale in $SplunkHome$/lib/python2.7/sitepackages/splunk.&lt;/P&gt;

&lt;P&gt;This Intersplunk can do all the work for you, call the functions in the file like -- outputResults(),getOrganizedResults(),getKeywordsAndOptions() &lt;/P&gt;

&lt;P&gt;in your case outputResults is the function which prints the results from python file to splunk UI.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 20 Jul 2018 16:36:15 GMT</pubDate>
    <dc:creator>PowerPacked</dc:creator>
    <dc:date>2018-07-20T16:36:15Z</dc:date>
    <item>
      <title>How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452748#M168206</link>
      <description>&lt;P&gt;I need to execute a python script from Splunk search and display the return value on the same page. How can this be done?&lt;BR /&gt;
I read about script command which allows us to pass an argument to an external script which has an entry in commands.conf. Does it also support displaying the values returned from this script?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 11:02:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452748#M168206</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2018-07-20T11:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452749#M168207</link>
      <description>&lt;P&gt;Hi @tusharsaran1,&lt;/P&gt;

&lt;P&gt;Please check out my app: &lt;A href="https://splunkbase.splunk.com/app/3950/"&gt;https://splunkbase.splunk.com/app/3950/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 11:05:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452749#M168207</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2018-07-20T11:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452750#M168208</link>
      <description>&lt;P&gt;I am not sure I understand how is this app similar to what I am looking for. Can you please explain exactly what your app does?&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 11:15:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452750#M168208</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2018-07-20T11:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452751#M168209</link>
      <description>&lt;P&gt;This app is used to check any email id is pwned or not in haveibeenpwned.com site.&lt;/P&gt;

&lt;P&gt;Input - it takes any field contains email id and calls haveibeenpwened.com to query email id details and result will be parsed in python script and parsed result will be sent back to search.&lt;/P&gt;

&lt;P&gt;please go through hipb.py in the TA. you will understand if you have coding background.&lt;/P&gt;

&lt;P&gt;To understand more how this TA-works please read the description provided in splunkbase.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 11:23:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452751#M168209</guid>
      <dc:creator>thambisetty</dc:creator>
      <dc:date>2018-07-20T11:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452752#M168210</link>
      <description>&lt;P&gt;Hi  @tusharsaran1&lt;/P&gt;

&lt;P&gt;Yes, you can do that&lt;/P&gt;

&lt;P&gt;as you mentioned create a command which calls the python script, in the python script import the Intersplunk.py module which is availabale in $SplunkHome$/lib/python2.7/sitepackages/splunk.&lt;/P&gt;

&lt;P&gt;This Intersplunk can do all the work for you, call the functions in the file like -- outputResults(),getOrganizedResults(),getKeywordsAndOptions() &lt;/P&gt;

&lt;P&gt;in your case outputResults is the function which prints the results from python file to splunk UI.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 20 Jul 2018 16:36:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452752#M168210</guid>
      <dc:creator>PowerPacked</dc:creator>
      <dc:date>2018-07-20T16:36:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to execute a script and display results on a search page?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452753#M168211</link>
      <description>&lt;P&gt;Thanks! This is exactly what I needed.&lt;BR /&gt;
I wrote a quick script to test this and it worked !&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:10:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-execute-a-script-and-display-results-on-a-search-page/m-p/452753#M168211</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2018-07-23T09:10:44Z</dc:date>
    </item>
  </channel>
</rss>

