<?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 for Notable Suppression in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709084#M12254</link>
    <description>&lt;P&gt;Is there a rest api available for Notable Suppression ? to get the suppresssion details and modify them via rest api&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2025 14:51:16 GMT</pubDate>
    <dc:creator>Vignesh</dc:creator>
    <dc:date>2025-01-17T14:51:16Z</dc:date>
    <item>
      <title>Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709084#M12254</link>
      <description>&lt;P&gt;Is there a rest api available for Notable Suppression ? to get the suppresssion details and modify them via rest api&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 14:51:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709084#M12254</guid>
      <dc:creator>Vignesh</dc:creator>
      <dc:date>2025-01-17T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709252#M12255</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241036"&gt;@Vignesh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;There is no documented REST API, but the SA-ThreatIntelligence app exposes the alerts/suppressions service to create, read, and update (including disable and enable) suppressions. To delete suppressions, use the saved/eventtypes/{name} endpoint (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTknowledge#saved.2Feventtypes.2F.7Bname.7D" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTREF/RESTknowledge#saved.2Feventtypes.2F.7Bname.7D&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;Search, Start Time, and End Time are joined to create SPL stored as an event type named notable_suppression-{name}, e.g.:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;`get_notable_index` _time&amp;gt;1737349200 _time&amp;lt;1737522000&lt;/LI-CODE&gt;&lt;P&gt;Description and status are stored as separate properties.&lt;/P&gt;&lt;P&gt;You can confirm this in $SPLUNK_HOME/etc/apps/SA-ThreatIntelligence/local/eventtypes.conf:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;[notable_suppression-foo]
description = bar
disabled = true
search = `get_notable_index` _time&amp;gt;1737349200 _time&amp;lt;1737522000&lt;/LI-CODE&gt;&lt;P&gt;Add &lt;STRONG&gt;-d output_mode=json&lt;/STRONG&gt; to any of the following examples to change the output from XML to JSON.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Name: &lt;STRONG&gt;foo&lt;/STRONG&gt;&lt;BR /&gt;Description (optional): &lt;STRONG&gt;bar&lt;/STRONG&gt;&lt;BR /&gt;Search: &lt;STRONG&gt;`get_notable_index`&lt;/STRONG&gt;&lt;BR /&gt;Start Time (optional): &lt;STRONG&gt;1/20/2025&lt;/STRONG&gt; (en-US locale in this example)&lt;BR /&gt;End Time (optional): &lt;STRONG&gt;1/22/2025&lt;/STRONG&gt; (en-US locale in this example)&lt;BR /&gt;Status: &lt;STRONG&gt;Enabled&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions \
    --data-urlencode name=notable_suppression-foo \
    --data-urlencode description=bar \
    --data-urlencode 'search=`get_notable_index` _time&amp;gt;1737349200 _time&amp;lt;1737522000' \
    --data-urlencode disabled=false&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Read a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin -X GET https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Modify a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Description: &lt;STRONG&gt;baz&lt;/STRONG&gt;&lt;BR /&gt;Search: &lt;STRONG&gt;`get_notable_index`&lt;/STRONG&gt;&lt;BR /&gt;Start Time (optional): &lt;STRONG&gt;(none)&lt;/STRONG&gt;&lt;BR /&gt;End Time (optional): &lt;STRONG&gt;(none)&lt;/STRONG&gt;&lt;BR /&gt;Status: &lt;STRONG&gt;(unchanged)&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo \
    --data-urlencode description=baz \
    --data-urlencode 'search=`get_notable_index`'&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Disable a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo \
    --data-urlencode disabled=true&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Enable a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo \
    --data-urlencode disabled=false&lt;/LI-CODE&gt;&lt;P&gt;&lt;STRONG&gt;Delete a suppression:&lt;/STRONG&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X DELETE https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/saved/eventtypes/notable_suppression-foo&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2025 18:03:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709252#M12255</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2025-01-20T18:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709422#M12258</link>
      <description>&lt;P&gt;Thank you for the detailed&amp;nbsp; answer its really helpful&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jan 2025 06:59:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/709422#M12258</guid>
      <dc:creator>Vignesh</dc:creator>
      <dc:date>2025-01-22T06:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/740746#M12402</link>
      <description>&lt;P&gt;Is it possible to change owner&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions \
    --data-urlencode name=notable_suppression-foo \
    --data-urlencode description=bar \
    --data-urlencode 'search=`get_notable_index` _time&amp;gt;1737349200 _time&amp;lt;1737522000' \
    --data-urlencode disabled=false
--data-urlencode owner="new_user"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Mar 2025 11:36:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/740746#M12402</guid>
      <dc:creator>Vignesh</dc:creator>
      <dc:date>2025-03-04T11:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/740753#M12403</link>
      <description>&lt;P&gt;is it possible to modify the owner&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;curl -k -u admin:pass -X POST &lt;A href="https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo" target="_blank"&gt;https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/alerts/suppressions/notable_suppression-foo&lt;/A&gt; \&lt;BR /&gt;--data-urlencode description=baz \&lt;BR /&gt;--data-urlencode 'search=`get_notable_index`'&lt;/DIV&gt;&lt;DIV&gt;--data-urlencode owner="test"&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Mar 2025 12:00:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/740753#M12403</guid>
      <dc:creator>Vignesh</dc:creator>
      <dc:date>2025-03-04T12:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/741893#M12431</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/241036"&gt;@Vignesh&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The &lt;SPAN&gt;alerts/suppressions&lt;/SPAN&gt; endpoint is hard-coded to use 'nobody' as the owner, which the internal saved/eventtypes/_new endpoint interprets as the current user context.&lt;/P&gt;&lt;P&gt;You can change the owner and sharing scope of the event type after it's created using the saved/eventtypes/{name}/acl endpoint (see &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Access_Control_List" target="_self"&gt;https://docs.splunk.com/Documentation/Splunk/latest/RESTUM/RESTusing#Access_Control_List&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/nobody/SA-ThreatIntelligence/saved/eventtypes/notable_suppression-foo/acl \
    --data-urlencode owner=jsmith \
    --data-urlencode sharing=global&lt;/LI-CODE&gt;&lt;P&gt;You can create the event type directly using the saved/eventtypes endpoint and an alternate owner; however, you'll need to call the&amp;nbsp;saved/eventtypes/{name}/acl endpoint separately to change sharing from private to global. The owner argument is required by the endpoint, so it's effectively the same number of steps as creating the suppression using the&amp;nbsp;&lt;SPAN&gt;alerts/suppressions endpoint:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/jsmith/SA-ThreatIntelligence/saved/eventtypes \
    --data-urlencode name=notable_suppression-foo \
    --data-urlencode description=bar \
    --data-urlencode search='`get_notable_index` _time&amp;gt;1737349200 _time&amp;lt;1737522000' \
    --data-urlencode disabled=false

curl -k -u admin:pass -X POST https://splunk:8089/servicesNS/jsmith/SA-ThreatIntelligence/saved/eventtypes/notable_suppression-foo/acl \
    --data-urlencode owner=jsmith \
    --data-urlencode sharing=global&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 19:42:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/741893#M12431</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2025-03-15T19:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Rest API for Notable Suppression</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/741894#M12432</link>
      <description>&lt;P&gt;... and the forum injected an unintended emoji. I really wish it wouldn't do that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Mar 2025 19:43:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Rest-API-for-Notable-Suppression/m-p/741894#M12432</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2025-03-15T19:43:33Z</dc:date>
    </item>
  </channel>
</rss>

