<?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 Extract data in value in Cortex XSOAR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extract-data-in-value/m-p/601492#M3714</link>
    <description>&lt;P&gt;&lt;SPAN&gt;To extract the specified highlighted dictionary value from the context data mentioned below, which script command and transformer should be utilized....?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[{'type': 'events_fetched', 'value': '1'}, {'type': 'rules', 'value': '[{"id":112363,"name":112363,"type":"CRE_RULE"}]'}, {'type': 'event_count', 'value': '1'}, {'type': 'magnitude', 'value': '5'}, {'type': 'log_sources', 'value': '[{"id":63,"name":"Custom Rule Engine-8 :: PDC-SR-iSCO01","type_id":18,"type_name":"EventCRE"}]'}, {'type': 'first_persisted_time', 'value': '2024-10-16T05:12:02+00:00'}, {'type': 'domain_id', 'value': '0'}, {'type': 'events', 'value': '[{"categoryname_category":"Critical","categoryname_highlevelcategory":"System","credibility":7,"destinationgeographiclocation":"other","destinationip":"0.0.0.0","destinationport":0,"destinationv6":"0:0:0:0:0:0:0:0","devicetime":"2024-10-16T05:12:01.350000+00:00","eventDirection":"L2R","eventcount":1,"logsourcename_logsourceid":"Custom Rule Engine-8 :: PDC-SR-iSCO01","logsourcetypename_devicetype":"Custom Rule Engine","magnitude":7,"postNatDestinationIP":"0.0.0.0","postNatDestinationPort":0,"postNatSourceIP":"0.0.0.0","postNatSourcePort":0,"preNatDestinationPort":0,"preNatSourceIP":"0.0.0.0","preNatSourcePort":0,"protocolname_protocolid":"HOPOPT","qiddescription_qid":"Generates when a critical device has not sent an event to the QRadar for over 2 hours.","qidname_qid":"Critical Devices not sending events","rulename_creEventList":["_Critical Devices not sending events","BB:NetworkDefinition: Honeypot like Addresses","_BB:TimeDefinition:Business Hours"],"severity":7,"sourceMAC":"00:00:00:00:00:00","sourcegeographiclocation":"other","sourceip":"172.28.152.21","sourceport":0,"sourcev6":"0:0:0:0:0:0:0:0","starttime":"2024-10-16T05:12:01.350000+00:00","utf8_payload":"_Critical Devices not sending events\\tGenerates when a critical device has not sent an event to the QRadar for over 2 hours.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;\\tLog source \'TVM-ADC-S001 @ 1XX.28.15.21 (1XX.28.15X.21X)\'&lt;/STRONG&gt;&lt;/FONT&gt; has stopped emitting events\\t"}]'}, {'type': 'follow_up', 'value': 'false'}, {'type': 'severity', 'value': '7'}, {'type': 'policy_category_count', 'value': '0'}, {'type': 'offense_type', 'value': 'Source IP'}, {'type': 'inactive', 'value': 'false'}, {'type': 'status', 'value': 'OPEN'}, {'type': 'mirroring_events_message', 'value': 'All available events in the offense were fetched.'}, {'type': 'description', 'value': 'I_Critical Devices not sending events\n'}, {'type': 'last_updated_time', 'value': '2024-10-16T05:12:01.350000+00:00'}, {'type': 'device_count', 'value': '1'}, {'type': 'relevance', 'value': '4'}, {'type': 'offense_source', 'value': '172.28.152.21'}, {'type': 'security_category_count', 'value': '1'}, {'type': 'source_count', 'value': '1'}, {'type': 'remote_destination_count', 'value': '1'}, {'type': 'id', 'value': '196718'}, {'type': 'LinkToOffense', 'value': '}, {'type': 'destination_networks', 'value': '["other"]'}, {'type': 'source_network', 'value': 'RO.AD_Servers.Trivendrum_RO'}, {'type': 'categories', 'value': '["Critical"]'}, {'type': 'local_destination_count', 'value': '0'}, {'type': 'protected', 'value': 'false'}, {'type': 'category_count', 'value': '1'}, {'type': 'start_time', 'value': '2024-10-16T05:12:01.350000+00:00'}, {'type': 'credibility', 'value': '2'}, {'type': 'last_persisted_time', 'value': '2024-10-16T05:15:31+00:00'}, {'type': 'username_count', 'value': '0'}, {'type': 'flow_count', 'value': '0'}, {'type': 'source_address_ids', 'value': '["172.28.152.21"]'}]&lt;/P&gt;</description>
    <pubDate>Wed, 16 Oct 2024 09:07:23 GMT</pubDate>
    <dc:creator>SOAR-ADMIN</dc:creator>
    <dc:date>2024-10-16T09:07:23Z</dc:date>
    <item>
      <title>Extract data in value</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extract-data-in-value/m-p/601492#M3714</link>
      <description>&lt;P&gt;&lt;SPAN&gt;To extract the specified highlighted dictionary value from the context data mentioned below, which script command and transformer should be utilized....?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;[{'type': 'events_fetched', 'value': '1'}, {'type': 'rules', 'value': '[{"id":112363,"name":112363,"type":"CRE_RULE"}]'}, {'type': 'event_count', 'value': '1'}, {'type': 'magnitude', 'value': '5'}, {'type': 'log_sources', 'value': '[{"id":63,"name":"Custom Rule Engine-8 :: PDC-SR-iSCO01","type_id":18,"type_name":"EventCRE"}]'}, {'type': 'first_persisted_time', 'value': '2024-10-16T05:12:02+00:00'}, {'type': 'domain_id', 'value': '0'}, {'type': 'events', 'value': '[{"categoryname_category":"Critical","categoryname_highlevelcategory":"System","credibility":7,"destinationgeographiclocation":"other","destinationip":"0.0.0.0","destinationport":0,"destinationv6":"0:0:0:0:0:0:0:0","devicetime":"2024-10-16T05:12:01.350000+00:00","eventDirection":"L2R","eventcount":1,"logsourcename_logsourceid":"Custom Rule Engine-8 :: PDC-SR-iSCO01","logsourcetypename_devicetype":"Custom Rule Engine","magnitude":7,"postNatDestinationIP":"0.0.0.0","postNatDestinationPort":0,"postNatSourceIP":"0.0.0.0","postNatSourcePort":0,"preNatDestinationPort":0,"preNatSourceIP":"0.0.0.0","preNatSourcePort":0,"protocolname_protocolid":"HOPOPT","qiddescription_qid":"Generates when a critical device has not sent an event to the QRadar for over 2 hours.","qidname_qid":"Critical Devices not sending events","rulename_creEventList":["_Critical Devices not sending events","BB:NetworkDefinition: Honeypot like Addresses","_BB:TimeDefinition:Business Hours"],"severity":7,"sourceMAC":"00:00:00:00:00:00","sourcegeographiclocation":"other","sourceip":"172.28.152.21","sourceport":0,"sourcev6":"0:0:0:0:0:0:0:0","starttime":"2024-10-16T05:12:01.350000+00:00","utf8_payload":"_Critical Devices not sending events\\tGenerates when a critical device has not sent an event to the QRadar for over 2 hours.&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;\\tLog source \'TVM-ADC-S001 @ 1XX.28.15.21 (1XX.28.15X.21X)\'&lt;/STRONG&gt;&lt;/FONT&gt; has stopped emitting events\\t"}]'}, {'type': 'follow_up', 'value': 'false'}, {'type': 'severity', 'value': '7'}, {'type': 'policy_category_count', 'value': '0'}, {'type': 'offense_type', 'value': 'Source IP'}, {'type': 'inactive', 'value': 'false'}, {'type': 'status', 'value': 'OPEN'}, {'type': 'mirroring_events_message', 'value': 'All available events in the offense were fetched.'}, {'type': 'description', 'value': 'I_Critical Devices not sending events\n'}, {'type': 'last_updated_time', 'value': '2024-10-16T05:12:01.350000+00:00'}, {'type': 'device_count', 'value': '1'}, {'type': 'relevance', 'value': '4'}, {'type': 'offense_source', 'value': '172.28.152.21'}, {'type': 'security_category_count', 'value': '1'}, {'type': 'source_count', 'value': '1'}, {'type': 'remote_destination_count', 'value': '1'}, {'type': 'id', 'value': '196718'}, {'type': 'LinkToOffense', 'value': '}, {'type': 'destination_networks', 'value': '["other"]'}, {'type': 'source_network', 'value': 'RO.AD_Servers.Trivendrum_RO'}, {'type': 'categories', 'value': '["Critical"]'}, {'type': 'local_destination_count', 'value': '0'}, {'type': 'protected', 'value': 'false'}, {'type': 'category_count', 'value': '1'}, {'type': 'start_time', 'value': '2024-10-16T05:12:01.350000+00:00'}, {'type': 'credibility', 'value': '2'}, {'type': 'last_persisted_time', 'value': '2024-10-16T05:15:31+00:00'}, {'type': 'username_count', 'value': '0'}, {'type': 'flow_count', 'value': '0'}, {'type': 'source_address_ids', 'value': '["172.28.152.21"]'}]&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 09:07:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extract-data-in-value/m-p/601492#M3714</guid>
      <dc:creator>SOAR-ADMIN</dc:creator>
      <dc:date>2024-10-16T09:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Extract data in value</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extract-data-in-value/m-p/601928#M3715</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/812718387"&gt;@SOAR-ADMIN&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I would create a new task with automation Set. Key is the new variable name in context data that you want to set this value under.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysato_0-1729097399500.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62980i586849A3B845ABC4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysato_0-1729097399500.png" alt="ysato_0-1729097399500.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is how I have your data in context data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ysato_1-1729097432306.png" style="width: 400px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/62981i282D2B30F2DE4703/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ysato_1-1729097432306.png" alt="ysato_1-1729097432306.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;This is how I would setup Set task using transformer called RegexExtractAll. If you need \ and other characters at the front and the end of it, I would either modify regex or add another transformer called "concat" to add something at the front and/or the end.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2024 16:52:07 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsoar-discussions/extract-data-in-value/m-p/601928#M3715</guid>
      <dc:creator>yuki_sato</dc:creator>
      <dc:date>2024-10-16T16:52:07Z</dc:date>
    </item>
  </channel>
</rss>

