<?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: Script python with search SPL in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Script-python-with-search-SPL/m-p/567131#M10078</link>
    <description>&lt;P&gt;Yes, it's possible to perform a search in a Python script.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTsearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTsearch&lt;/A&gt;&amp;nbsp;for the details.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Sep 2021 15:25:26 GMT</pubDate>
    <dc:creator>richgalloway</dc:creator>
    <dc:date>2021-09-15T15:25:26Z</dc:date>
    <item>
      <title>Script python with search SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Script-python-with-search-SPL/m-p/567071#M10077</link>
      <description>&lt;P&gt;Hello Splunk team,&lt;/P&gt;&lt;P&gt;do you know if it's possible to do a splunk search in a python script? taking into account the selection of the desired period (last week, last month ...).&lt;/P&gt;&lt;P&gt;for example for a simple search :&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;| append [search sourcetype=ESP_Histo env="Web" service="Application" apps="Web Sharepoints" fn="*" managed_entity="*- URL" sampler="SHAREPOINT - URL" ID_EVENT | eval Applications=case( apps like "%Web Sharepoints%","WEB SHAREPOINTS") | `transactions` ]&lt;/P&gt;&lt;P&gt;| eval max_time=if(info_max_time == "+Infinity", now(), info_max_time) | eval min_time=if(info_min_time == "0.000", 1577836800, info_min_time) | eval periode1=max_time-min_time&lt;BR /&gt;| stats sum(duration) AS durationindispo by Applications, periode1&lt;/P&gt;&lt;P&gt;| outputcsv append=true override_if_empty=false web_search&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 08:17:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Script-python-with-search-SPL/m-p/567071#M10077</guid>
      <dc:creator>wcastillocruz</dc:creator>
      <dc:date>2021-09-15T08:17:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script python with search SPL</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Script-python-with-search-SPL/m-p/567131#M10078</link>
      <description>&lt;P&gt;Yes, it's possible to perform a search in a Python script.&amp;nbsp; See&amp;nbsp;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTsearch" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.2/RESTREF/RESTsearch&lt;/A&gt;&amp;nbsp;for the details.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Sep 2021 15:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Script-python-with-search-SPL/m-p/567131#M10078</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2021-09-15T15:25:26Z</dc:date>
    </item>
  </channel>
</rss>

