<?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 can I create an External Lookup that does not create a CSV but displays the results? in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348740#M5656</link>
    <description>&lt;P&gt;This doesn't look like something that would take in a custom query from Splunk, am I mistaken?&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2017 00:19:40 GMT</pubDate>
    <dc:creator>danfein</dc:creator>
    <dc:date>2017-12-20T00:19:40Z</dc:date>
    <item>
      <title>How can I create an External Lookup that does not create a CSV but displays the results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348738#M5654</link>
      <description>&lt;P&gt;I am looking to run a python script that will take the results of several API calls and make them into something that Splunk displays as if the data were retrieved from its own indexing.&lt;/P&gt;

&lt;P&gt;Is it possible to run on the fly queries like this?:&lt;/P&gt;

&lt;P&gt;Search in Splunk &amp;gt;&lt;BR /&gt;
External lookup is triggered &amp;gt;&lt;BR /&gt;
apidata.py is invoked &amp;gt;&lt;BR /&gt;
Data returned in some way to Splunk &amp;gt;&lt;BR /&gt;
Displayed in Splunk&lt;/P&gt;

&lt;P&gt;I believe this is possible, but the only way I have seen it thus far has been with CSVs, but the data returned will be high.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 04:15:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348738#M5654</guid>
      <dc:creator>danfein</dc:creator>
      <dc:date>2017-12-19T04:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an External Lookup that does not create a CSV but displays the results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348739#M5655</link>
      <description>&lt;P&gt;You want to use a scripted input. &lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/7.0.1/AdvancedDev/ScriptSetup"&gt;http://docs.splunk.com/Documentation/Splunk/7.0.1/AdvancedDev/ScriptSetup&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is very common and is simple to do. You can make you life even easier if your script returns a date and key=value pairs as its response, as Splunk would need no further extractions to fully interpret and index your data.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 09:48:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348739#M5655</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-12-19T09:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an External Lookup that does not create a CSV but displays the results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348740#M5656</link>
      <description>&lt;P&gt;This doesn't look like something that would take in a custom query from Splunk, am I mistaken?&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 00:19:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348740#M5656</guid>
      <dc:creator>danfein</dc:creator>
      <dc:date>2017-12-20T00:19:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I create an External Lookup that does not create a CSV but displays the results?</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348741#M5657</link>
      <description>&lt;P&gt;HI @danfein,&lt;/P&gt;

&lt;P&gt;I think Splunk Custom command will help you. You just create a custom command and write some python code to call APIs and display values as a result. There are few links which can be helpful you to create custom command.&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writeasearchcommand"&gt;http://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Writeasearchcommand&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Customsearchcommandshape"&gt;https://docs.splunk.com/Documentation/SplunkCloud/6.6.3/Search/Customsearchcommandshape&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEU2"&gt;http://dev.splunk.com/view/python-sdk/SP-CAAAEU2&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://www.splunk.com/blog/2014/04/14/building-custom-search-commands-in-python-part-i-a-simple-generating-command.html"&gt;https://www.splunk.com/blog/2014/04/14/building-custom-search-commands-in-python-part-i-a-simple-generating-command.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 03:57:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/How-can-I-create-an-External-Lookup-that-does-not-create-a-CSV/m-p/348741#M5657</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2017-12-20T03:57:31Z</dc:date>
    </item>
  </channel>
</rss>

