<?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: Expanding action_evtlog_data_fields in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493941#M2040</link>
    <description>&lt;P&gt;There is no exhaustive list to my knowledge, however, you can easily tell by looking at the field data.&amp;nbsp; Well formatted JSON data is always surrounded by curly brackets ('{', '}'), and then uses key-value format, whereas arrays use square brackets ('[', ']') and are simple collections of values.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "store_name": "Sears",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "store_tags": ["home", "automotive", "defunct"]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall object here is a JSON object, and it contains two keys, one of which has a value which is an array.&amp;nbsp; If you see a comma separated list of values in square brackets, think array, if you see key-value data inside of curly braces, think JSON!&lt;/P&gt;</description>
    <pubDate>Fri, 27 May 2022 19:52:46 GMT</pubDate>
    <dc:creator>afurze</dc:creator>
    <dc:date>2022-05-27T19:52:46Z</dc:date>
    <item>
      <title>Expanding action_evtlog_data_fields</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493862#M2037</link>
      <description>&lt;P&gt;Is it possible to create an arrayexpand the&amp;nbsp;action_evtlog_data_fields&lt;/P&gt;&lt;P&gt;the below fails to run&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dataset = xdr_data&lt;BR /&gt;| filter event_type = ENUM.EVENT_LOG&lt;BR /&gt;| arrayexpand action_evtlog_data_fields&lt;BR /&gt;| alter Username=json_extract(action_evtlog_data_fields, "$.TargetUserName")&lt;BR /&gt;| alter IP_Address=json_extract(action_evtlog_data_fields, "$.IpAddress")&lt;BR /&gt;| fields IP_Address&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 17:23:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493862#M2037</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2022-05-27T17:23:58Z</dc:date>
    </item>
    <item>
      <title>Re: Expanding action_evtlog_data_fields</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493879#M2038</link>
      <description>&lt;P&gt;The field you are attempting to expand is not an array, it is a json field, so that won't work.&amp;nbsp; If you remove this line from your query like so:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dataset = xdr_data&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| filter event_type = ENUM.EVENT_LOG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| alter Username=json_extract(action_evtlog_data_fields, "$.TargetUserName")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| alter IP_Address=json_extract(action_evtlog_data_fields, "$.IpAddress")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;| fields IP_Address, Username&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You should get values as you expect!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 17:50:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493879#M2038</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2022-05-27T17:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: Expanding action_evtlog_data_fields</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493909#M2039</link>
      <description>&lt;P&gt;Thanks, any documentation out there for items that are either arrays or json fields&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 19:06:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493909#M2039</guid>
      <dc:creator>NathanBradley</dc:creator>
      <dc:date>2022-05-27T19:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Expanding action_evtlog_data_fields</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493941#M2040</link>
      <description>&lt;P&gt;There is no exhaustive list to my knowledge, however, you can easily tell by looking at the field data.&amp;nbsp; Well formatted JSON data is always surrounded by curly brackets ('{', '}'), and then uses key-value format, whereas arrays use square brackets ('[', ']') and are simple collections of values.&amp;nbsp; For example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "store_name": "Sears",&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; "store_tags": ["home", "automotive", "defunct"]&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall object here is a JSON object, and it contains two keys, one of which has a value which is an array.&amp;nbsp; If you see a comma separated list of values in square brackets, think array, if you see key-value data inside of curly braces, think JSON!&lt;/P&gt;</description>
      <pubDate>Fri, 27 May 2022 19:52:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/expanding-action-evtlog-data-fields/m-p/493941#M2040</guid>
      <dc:creator>afurze</dc:creator>
      <dc:date>2022-05-27T19:52:46Z</dc:date>
    </item>
  </channel>
</rss>

