<?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 Adaptive Response Variables in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Adaptive-Response-Variables/m-p/463210#M6760</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I utilize Adaptive Response quite a bit for automatically creating incident tickets and dumping all of the relevant data in there. &lt;/P&gt;

&lt;P&gt;Overall this has worked out pretty well with help.get and pulling variables from the notable event that I created. The issue I'm running into is that I can only pull specific variables that I define in the notable event. I have a few use cases that I'd like to dump rows from the notable event or rows from a drill down search vs. just a basic variable.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario One&lt;/STRONG&gt;&lt;BR /&gt;
How can I pull rows vs. just variables and make those rows a variable that I can put into a ticket? I know there is the helper.get_events() but it's a dictionary format I believe and I had some issues with making it a variable where I can paste the string into a ticket. As well as only doing X rows or rows with Y criteria. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario Two&lt;/STRONG&gt;&lt;BR /&gt;
I want to pull rows down from the drill down search I have for the notable event. For this I assume I need to setup HEC or do some sort of Python search API call into Splunk and then pull that back into Adaptive Response and convert it to a string? Has anyone done that and could share their code?&lt;/P&gt;

&lt;P&gt;I love the emails you get from a notable event that has the data in a column format. I want to be able to put that "pretty" data into my tickets.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Fri, 18 Oct 2019 15:54:23 GMT</pubDate>
    <dc:creator>ericl42</dc:creator>
    <dc:date>2019-10-18T15:54:23Z</dc:date>
    <item>
      <title>Adaptive Response Variables</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Adaptive-Response-Variables/m-p/463210#M6760</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I utilize Adaptive Response quite a bit for automatically creating incident tickets and dumping all of the relevant data in there. &lt;/P&gt;

&lt;P&gt;Overall this has worked out pretty well with help.get and pulling variables from the notable event that I created. The issue I'm running into is that I can only pull specific variables that I define in the notable event. I have a few use cases that I'd like to dump rows from the notable event or rows from a drill down search vs. just a basic variable.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario One&lt;/STRONG&gt;&lt;BR /&gt;
How can I pull rows vs. just variables and make those rows a variable that I can put into a ticket? I know there is the helper.get_events() but it's a dictionary format I believe and I had some issues with making it a variable where I can paste the string into a ticket. As well as only doing X rows or rows with Y criteria. &lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Scenario Two&lt;/STRONG&gt;&lt;BR /&gt;
I want to pull rows down from the drill down search I have for the notable event. For this I assume I need to setup HEC or do some sort of Python search API call into Splunk and then pull that back into Adaptive Response and convert it to a string? Has anyone done that and could share their code?&lt;/P&gt;

&lt;P&gt;I love the emails you get from a notable event that has the data in a column format. I want to be able to put that "pretty" data into my tickets.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2019 15:54:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Adaptive-Response-Variables/m-p/463210#M6760</guid>
      <dc:creator>ericl42</dc:creator>
      <dc:date>2019-10-18T15:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Adaptive Response Variables</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Adaptive-Response-Variables/m-p/463211#M6761</link>
      <description>&lt;P&gt;for scenario 1, as you pointed, we could use get_events(). Lets assume, your correlation search returns 2 results. So, in that case&lt;BR /&gt;
    events = helper.get_events()&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for event in events:
     helper.log_info("myevent={}.format(event))

So, you can get both the results which you can iterate through and take the dictionary object and/or parse it to select the field you need from the event to sent to ticketing system
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:01:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Adaptive-Response-Variables/m-p/463211#M6761</guid>
      <dc:creator>lakshman239</dc:creator>
      <dc:date>2020-09-30T03:01:04Z</dc:date>
    </item>
  </channel>
</rss>

