<?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 Re: Update notable event with splunklib (splunk-sdk for python) in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/529361#M9450</link>
    <description>&lt;P&gt;A curl based example is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/ES/latest/API/NotableEventAPIreference" target="_blank"&gt;https://docs.splunk.com/Documentation/ES/latest/API/NotableEventAPIreference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'd reference that doc and leave comments on the doc page if you still run into issues.&lt;/P&gt;</description>
    <pubDate>Fri, 13 Nov 2020 20:08:48 GMT</pubDate>
    <dc:creator>kchamplin_splun</dc:creator>
    <dc:date>2020-11-13T20:08:48Z</dc:date>
    <item>
      <title>Update notable event with splunklib (splunk-sdk for python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/528024#M9449</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm wondering if anyone has had success updating notable events using the Splunk SDK for Python (splunklib). I've seen a few examples of how to get it done with the splunk python package (for example &lt;A href="https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-edit-notable-events-in-es-programatically.html" target="_blank" rel="noopener"&gt;https://www.splunk.com/en_us/blog/tips-and-tricks/how-to-edit-notable-events-in-es-programatically.html&lt;/A&gt;), but I'd prefer to leverage the Python SDK.&lt;/P&gt;&lt;P&gt;I've formatted the POST request every way I can think of, but I can't get a proper request to the server. I always get the error:&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;splunklib.binding.HTTPError: HTTP 400 Bad Request -- b'"ValueError: One of comment, newOwner, status, urgency is required."'&lt;/P&gt;&lt;P&gt;```&lt;/P&gt;&lt;P&gt;I am passing a `comment` argument, but it must be doing it incorrectly.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Nov 2020 20:33:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/528024#M9449</guid>
      <dc:creator>breid1313</dc:creator>
      <dc:date>2020-11-04T20:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: Update notable event with splunklib (splunk-sdk for python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/529361#M9450</link>
      <description>&lt;P&gt;A curl based example is available here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/ES/latest/API/NotableEventAPIreference" target="_blank"&gt;https://docs.splunk.com/Documentation/ES/latest/API/NotableEventAPIreference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I'd reference that doc and leave comments on the doc page if you still run into issues.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Nov 2020 20:08:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/529361#M9450</guid>
      <dc:creator>kchamplin_splun</dc:creator>
      <dc:date>2020-11-13T20:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Update notable event with splunklib (splunk-sdk for python)</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/580080#M9451</link>
      <description>&lt;P&gt;A little late to the party here... I had the same issue when trying to post to Notables. I was able to solve it by structuring the calls this way:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data={&lt;/P&gt;&lt;P&gt;"ruleUIDs":"123456789" ,&lt;/P&gt;&lt;P&gt;"comment":"comment goes here",&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jan 2022 03:59:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Update-notable-event-with-splunklib-splunk-sdk-for-python/m-p/580080#M9451</guid>
      <dc:creator>splunker_dave</dc:creator>
      <dc:date>2022-01-06T03:59:28Z</dc:date>
    </item>
  </channel>
</rss>

