<?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 Custom Command Curl in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Command-Curl/m-p/539546#M9689</link>
    <description>&lt;P&gt;I have a requirement to write the custom curl command and stream the output as success/fail and sendemail if the output is success.&lt;/P&gt;&lt;P&gt;I have a python script to achieve this as pretty simple.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import os
result = os.popen("curl -ILk https://user-prdserver.domain.com/wrapper.json --resolve user-prdserver@domain.com:$port$:$vip$ -H 'Host:$host$' -v").read()
print result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Also I have pretty good reference on how to set it up. But I am not sure how to convert this script with Splunk command requirement. so that it will be compatible in SPL and can stream the output.&lt;/P&gt;&lt;P&gt;When I add this as it is and run from SPL as&lt;/P&gt;&lt;P&gt;....my search|curlit&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could not locate the time (_time) field on some results returned from the external search command 'curlit'.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2021 18:01:35 GMT</pubDate>
    <dc:creator>orca</dc:creator>
    <dc:date>2021-02-11T18:01:35Z</dc:date>
    <item>
      <title>Custom Command Curl</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Custom-Command-Curl/m-p/539546#M9689</link>
      <description>&lt;P&gt;I have a requirement to write the custom curl command and stream the output as success/fail and sendemail if the output is success.&lt;/P&gt;&lt;P&gt;I have a python script to achieve this as pretty simple.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;import os
result = os.popen("curl -ILk https://user-prdserver.domain.com/wrapper.json --resolve user-prdserver@domain.com:$port$:$vip$ -H 'Host:$host$' -v").read()
print result&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;Also I have pretty good reference on how to set it up. But I am not sure how to convert this script with Splunk command requirement. so that it will be compatible in SPL and can stream the output.&lt;/P&gt;&lt;P&gt;When I add this as it is and run from SPL as&lt;/P&gt;&lt;P&gt;....my search|curlit&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could not locate the time (_time) field on some results returned from the external search command 'curlit'.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 18:01:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Custom-Command-Curl/m-p/539546#M9689</guid>
      <dc:creator>orca</dc:creator>
      <dc:date>2021-02-11T18:01:35Z</dc:date>
    </item>
  </channel>
</rss>

