<?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 modify the saved splunk Alert using api in Security</title>
    <link>https://community.splunk.com/t5/Security/modify-the-saved-splunk-Alert-using-api/m-p/660950#M17329</link>
    <description>&lt;DIV class=""&gt;looking for help in editing the saved Alert query using the api/curl .&lt;BR /&gt;i would like to change the pod_count 9 to 12 . how can i do that using api/curl&lt;/DIV&gt;&lt;DIV class=""&gt;alertname = test_goski-list&lt;BR /&gt;alert query =&lt;/DIV&gt;&lt;PRE&gt;index=list-service source="&lt;A class="" href="eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service" target="_blank" rel="noopener noreferrer"&gt;eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service&lt;/A&gt;;" "kubernetes.namespace_name"="list-service" | stats dc(kubernetes.pod_name) as pod_count | where pod_count &amp;lt; 9&lt;/PRE&gt;&lt;DIV class=""&gt;i am trying to run the below curl to connect to the search head IP and getting the error response.&lt;/DIV&gt;&lt;DIV class=""&gt;curl -k -u admin:changeme -X POST&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://10.236.140.2:8089/servicesNS/admin/search/alerts/test_goski-list" target="_blank" rel="noopener noreferrer"&gt;https://10.236.140.2:8089/servicesNS/admin/search/alerts/test_goski-list&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-d "search=index=list-service"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Not Found&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 17 Oct 2023 00:35:23 GMT</pubDate>
    <dc:creator>venugoski</dc:creator>
    <dc:date>2023-10-17T00:35:23Z</dc:date>
    <item>
      <title>modify the saved splunk Alert using api</title>
      <link>https://community.splunk.com/t5/Security/modify-the-saved-splunk-Alert-using-api/m-p/660950#M17329</link>
      <description>&lt;DIV class=""&gt;looking for help in editing the saved Alert query using the api/curl .&lt;BR /&gt;i would like to change the pod_count 9 to 12 . how can i do that using api/curl&lt;/DIV&gt;&lt;DIV class=""&gt;alertname = test_goski-list&lt;BR /&gt;alert query =&lt;/DIV&gt;&lt;PRE&gt;index=list-service source="&lt;A class="" href="eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service" target="_blank" rel="noopener noreferrer"&gt;eventhub://sams-jupiter-prod-scus-logs-premium-1.servicebus.windows.net/list-service&lt;/A&gt;;" "kubernetes.namespace_name"="list-service" | stats dc(kubernetes.pod_name) as pod_count | where pod_count &amp;lt; 9&lt;/PRE&gt;&lt;DIV class=""&gt;i am trying to run the below curl to connect to the search head IP and getting the error response.&lt;/DIV&gt;&lt;DIV class=""&gt;curl -k -u admin:changeme -X POST&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://10.236.140.2:8089/servicesNS/admin/search/alerts/test_goski-list" target="_blank" rel="noopener noreferrer"&gt;https://10.236.140.2:8089/servicesNS/admin/search/alerts/test_goski-list&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;-d "search=index=list-service"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;lt;?xml version="1.0" encoding="UTF-8"?&amp;gt;&lt;BR /&gt;&amp;lt;response&amp;gt;&lt;BR /&gt;&amp;lt;messages&amp;gt;&lt;BR /&gt;&amp;lt;msg type="ERROR"&amp;gt;Not Found&amp;lt;/msg&amp;gt;&lt;BR /&gt;&amp;lt;/messages&amp;gt;&lt;BR /&gt;&amp;lt;/response&amp;gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Oct 2023 00:35:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/modify-the-saved-splunk-Alert-using-api/m-p/660950#M17329</guid>
      <dc:creator>venugoski</dc:creator>
      <dc:date>2023-10-17T00:35:23Z</dc:date>
    </item>
    <item>
      <title>Re: modify the saved splunk Alert using api</title>
      <link>https://community.splunk.com/t5/Security/modify-the-saved-splunk-Alert-using-api/m-p/660967#M17330</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;maybe this helps you&lt;A href="https://community.splunk.com/t5/Alerting/Why-can-t-I-change-alert-with-REST-It-change-permission-from-app/m-p/646456/thread-id/15104/highlight/false#M15117" target="_blank"&gt;https://community.splunk.com/t5/Alerting/Why-can-t-I-change-alert-with-REST-It-change-permission-from-app/m-p/646456/thread-id/15104/highlight/false#M15117&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It’s old answer where I change some parameters on query. I think that you could change the query just like those parameters on conf.&lt;/P&gt;&lt;P&gt;r. Ismo&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2023 06:15:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Security/modify-the-saved-splunk-Alert-using-api/m-p/660967#M17330</guid>
      <dc:creator>isoutamo</dc:creator>
      <dc:date>2023-10-17T06:15:21Z</dc:date>
    </item>
  </channel>
</rss>

