<?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 Error while Invoking Search Macro using REST API in Knowledge Management</title>
    <link>https://community.splunk.com/t5/Knowledge-Management/Error-while-Invoking-Search-Macro-using-REST-API/m-p/677502#M9878</link>
    <description>&lt;P&gt;Does anyone know how to invoke a macro on Splunk Cloud using Rest API?&amp;nbsp; I am using following command but it always returns the output as "No matching fields exist." .&lt;BR /&gt;&lt;BR /&gt;I am able to run the same macro directly from Splunk Search Page and it does return results.&lt;BR /&gt;&lt;BR /&gt;curl -k -u uswer:"password" -k &lt;A href="https://company.splunkcloud.com:8089/services/search/v2/jobs/export" target="_blank" rel="noopener"&gt;https://company.splunkcloud.com:8089/services/search/v2/jobs/export&lt;/A&gt; -d exec_mode=oneshot -d search="\`lastLoginStatsByUserProd(userid,7)\`" -d output_mode=json&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2024 01:04:37 GMT</pubDate>
    <dc:creator>ngohel</dc:creator>
    <dc:date>2024-02-14T01:04:37Z</dc:date>
    <item>
      <title>Error while Invoking Search Macro using REST API</title>
      <link>https://community.splunk.com/t5/Knowledge-Management/Error-while-Invoking-Search-Macro-using-REST-API/m-p/677502#M9878</link>
      <description>&lt;P&gt;Does anyone know how to invoke a macro on Splunk Cloud using Rest API?&amp;nbsp; I am using following command but it always returns the output as "No matching fields exist." .&lt;BR /&gt;&lt;BR /&gt;I am able to run the same macro directly from Splunk Search Page and it does return results.&lt;BR /&gt;&lt;BR /&gt;curl -k -u uswer:"password" -k &lt;A href="https://company.splunkcloud.com:8089/services/search/v2/jobs/export" target="_blank" rel="noopener"&gt;https://company.splunkcloud.com:8089/services/search/v2/jobs/export&lt;/A&gt; -d exec_mode=oneshot -d search="\`lastLoginStatsByUserProd(userid,7)\`" -d output_mode=json&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2024 01:04:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Knowledge-Management/Error-while-Invoking-Search-Macro-using-REST-API/m-p/677502#M9878</guid>
      <dc:creator>ngohel</dc:creator>
      <dc:date>2024-02-14T01:04:37Z</dc:date>
    </item>
  </channel>
</rss>

