<?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 REST API Saved Searches POST Duplicating Searches in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Saved-Searches-POST-Duplicating-Searches/m-p/490581#M83860</link>
    <description>&lt;P&gt;I'm trying to use the REST API to update a large number of alerts/saved searches across multiple environments. Specifically, I want to update to ensure that CSV's are attached to emails. I'm testing this in a lab on Splunk 8.0.2.&lt;/P&gt;

&lt;P&gt;I've tried using both of these:&lt;BR /&gt;
'curl -u splunk_user:splunk_pass -X POST -sk "&lt;A href="https://splunk_ip:8089/services/saved/searches/(search" target="_blank"&gt;https://splunk_ip:8089/services/saved/searches/(search&lt;/A&gt; title URL encoded)" -d action.email.sendcsv=1'&lt;BR /&gt;
'curl -u splunk_user:splunk_pass -X POST -sk "&lt;A href="https://splunk_ip:8089/servicesNS/(owner)/(app)/saved/searches/(search" target="_blank"&gt;https://splunk_ip:8089/servicesNS/(owner)/(app)/saved/searches/(search&lt;/A&gt; title URL encoded)" -d action.email.sendcsv=1' &lt;/P&gt;

&lt;P&gt;However, what seems to be happening is that the alerts are being cloned into a report instead of being updated themselves. The name is identical, and the search is being copied over despite not being in the curl request. &lt;/P&gt;

&lt;P&gt;Not sure what is going wrong with these API calls. They look correct by my reading of the API documentation, but I may be overlooking something.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2020 05:17:47 GMT</pubDate>
    <dc:creator>stranjer</dc:creator>
    <dc:date>2020-09-30T05:17:47Z</dc:date>
    <item>
      <title>REST API Saved Searches POST Duplicating Searches</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Saved-Searches-POST-Duplicating-Searches/m-p/490581#M83860</link>
      <description>&lt;P&gt;I'm trying to use the REST API to update a large number of alerts/saved searches across multiple environments. Specifically, I want to update to ensure that CSV's are attached to emails. I'm testing this in a lab on Splunk 8.0.2.&lt;/P&gt;

&lt;P&gt;I've tried using both of these:&lt;BR /&gt;
'curl -u splunk_user:splunk_pass -X POST -sk "&lt;A href="https://splunk_ip:8089/services/saved/searches/(search" target="_blank"&gt;https://splunk_ip:8089/services/saved/searches/(search&lt;/A&gt; title URL encoded)" -d action.email.sendcsv=1'&lt;BR /&gt;
'curl -u splunk_user:splunk_pass -X POST -sk "&lt;A href="https://splunk_ip:8089/servicesNS/(owner)/(app)/saved/searches/(search" target="_blank"&gt;https://splunk_ip:8089/servicesNS/(owner)/(app)/saved/searches/(search&lt;/A&gt; title URL encoded)" -d action.email.sendcsv=1' &lt;/P&gt;

&lt;P&gt;However, what seems to be happening is that the alerts are being cloned into a report instead of being updated themselves. The name is identical, and the search is being copied over despite not being in the curl request. &lt;/P&gt;

&lt;P&gt;Not sure what is going wrong with these API calls. They look correct by my reading of the API documentation, but I may be overlooking something.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 05:17:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Saved-Searches-POST-Duplicating-Searches/m-p/490581#M83860</guid>
      <dc:creator>stranjer</dc:creator>
      <dc:date>2020-09-30T05:17:47Z</dc:date>
    </item>
  </channel>
</rss>

