<?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 Python Rest API script in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Python-Rest-API-script/m-p/398233#M70999</link>
    <description>&lt;P&gt;After connecting to the splunk Rest API, I would like to run a search query built like this and stored in a variable. &lt;BR /&gt;
hostname is equal to a string variable&lt;/P&gt;

&lt;P&gt;searchQuery= "Search | sourcetype=Audit agent_name=hostname| head 5" &lt;/P&gt;

&lt;P&gt;I would also like to add in the earliest time as a variable... not sure where to add this. I would then like to return the SID and data in a json format.&lt;/P&gt;

&lt;P&gt;Thanks for helping!&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2019 14:52:13 GMT</pubDate>
    <dc:creator>travismonta</dc:creator>
    <dc:date>2019-07-16T14:52:13Z</dc:date>
    <item>
      <title>Python Rest API script</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Python-Rest-API-script/m-p/398233#M70999</link>
      <description>&lt;P&gt;After connecting to the splunk Rest API, I would like to run a search query built like this and stored in a variable. &lt;BR /&gt;
hostname is equal to a string variable&lt;/P&gt;

&lt;P&gt;searchQuery= "Search | sourcetype=Audit agent_name=hostname| head 5" &lt;/P&gt;

&lt;P&gt;I would also like to add in the earliest time as a variable... not sure where to add this. I would then like to return the SID and data in a json format.&lt;/P&gt;

&lt;P&gt;Thanks for helping!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2019 14:52:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Python-Rest-API-script/m-p/398233#M70999</guid>
      <dc:creator>travismonta</dc:creator>
      <dc:date>2019-07-16T14:52:13Z</dc:date>
    </item>
  </channel>
</rss>

