<?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: How do I push or pull from Enterprise Security notable events? in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401183#M4552</link>
    <description>&lt;P&gt;For number 2, I was thinking you would be writing a custom search command in Python. Thus, it wouldn't be doing it without coding.&lt;/P&gt;

&lt;P&gt;For this reason, I would try to get number three to work first.&lt;/P&gt;</description>
    <pubDate>Thu, 04 Oct 2018 21:18:14 GMT</pubDate>
    <dc:creator>LukeMurphey</dc:creator>
    <dc:date>2018-10-04T21:18:14Z</dc:date>
    <item>
      <title>How do I push or pull from Enterprise Security notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401180#M4549</link>
      <description>&lt;P&gt;I have a scenario which I can explain with an example. I am implementing a 3rd party service which takes action based on notable events in Splunk Enterprise Security.&lt;/P&gt;

&lt;P&gt;For example, every time there is a new "Geographically Improbable Access Detected" notable event, I want to extract the user details and process them.&lt;/P&gt;

&lt;P&gt;What is the best way to get notified by Splunk?&lt;/P&gt;

&lt;P&gt;(1) Is it that I run a query remotely using Splunk REST API regularly for the relevant notable events?&lt;/P&gt;

&lt;P&gt;(2) Is there a way Splunk can invoke my REST end point every time there is a new relevant event?&lt;/P&gt;

&lt;P&gt;(3) Splunk alerts + webhook? (this way, I think I can get only first matching relevant event instead of all).&lt;/P&gt;

&lt;P&gt;Thanks a ton in advance&lt;/P&gt;</description>
      <pubDate>Wed, 26 Sep 2018 23:23:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401180#M4549</guid>
      <dc:creator>alpsholic</dc:creator>
      <dc:date>2018-09-26T23:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: How do I push or pull from Enterprise Security notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401181#M4550</link>
      <description>&lt;P&gt;Here are some thoughts&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(1) Is it I run a query remotely using Splunk REST API regularly for the relevant notable events?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;You can do this by remotely a search. I wrote a script showing how this can be done using the Python library that is built into Splunk: &lt;A href="https://gist.github.com/LukeMurphey/cbd8a4093e2a9e922038117cd4eceb00"&gt;https://gist.github.com/LukeMurphey/cbd8a4093e2a9e922038117cd4eceb00&lt;/A&gt;. You ought to be able to reuse the get_notables() function to get what you need.&lt;/P&gt;

&lt;P&gt;You can also use the &lt;A href="http://dev.splunk.com/view/python-sdk/SP-CAAAEE5"&gt;Splunk Python SDK&lt;/A&gt; to do this.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(2) Is there a way Splunk can invoke my REST end point every time there is a new relevant event?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;There are multiple ways you could do this. I think you could do this using a search command which would run in a search that examines the notable index (via the notable macro, &lt;CODE&gt;notable&lt;/CODE&gt;).&lt;/P&gt;

&lt;P&gt;You can see an example of how to write a custom search command here: &lt;A href="https://github.com/LukeMurphey/splunk-search-command-example"&gt;https://github.com/LukeMurphey/splunk-search-command-example&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;In the end, you would have a search that looks something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;`notable` | mysearchcommand
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;You would want to make sure that the search does not overlap in execution in order to prevent it from processing the same results repeatedly.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;(3) Splunk alerts + webhook? (this way, I think I can get only first matching relevant event instead of all).&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;If it were me, I would likely choose this route. I think this would avoid having to do any coding. I think you could get it trigger for each result by changing the value for the trigger to "For each result".&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 17:33:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401181#M4550</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2018-09-27T17:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do I push or pull from Enterprise Security notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401182#M4551</link>
      <description>&lt;P&gt;In (2) I did not get how Splunk can send the results to my REST end point by itself? Say something like, I tell Splunk "Send every new 'Geographically Improbable Access Detected' event to &lt;A href="https://myapp.com/newevent"&gt;https://myapp.com/newevent&lt;/A&gt;"??&lt;/P&gt;</description>
      <pubDate>Fri, 28 Sep 2018 00:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401182#M4551</guid>
      <dc:creator>alpsholic</dc:creator>
      <dc:date>2018-09-28T00:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I push or pull from Enterprise Security notable events?</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401183#M4552</link>
      <description>&lt;P&gt;For number 2, I was thinking you would be writing a custom search command in Python. Thus, it wouldn't be doing it without coding.&lt;/P&gt;

&lt;P&gt;For this reason, I would try to get number three to work first.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 21:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/How-do-I-push-or-pull-from-Enterprise-Security-notable-events/m-p/401183#M4552</guid>
      <dc:creator>LukeMurphey</dc:creator>
      <dc:date>2018-10-04T21:18:14Z</dc:date>
    </item>
  </channel>
</rss>

