<?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 REST API - Search targetResources from Azure Audit via Java SDK in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-targetResources-from-Azure-Audit-via-Java-SDK/m-p/684819#M114257</link>
    <description>&lt;P&gt;I am trying to query audit logs from Splunk. The logs are for azure but when I hit the below query, it only returns the text fields and not the object or array fields like&amp;nbsp;initiatedBy and&amp;nbsp;targetResources. Do I need to query this data in a different manner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="directoryaudit" | fields id activityDisplayName result operationType correlationId initiatedBy resultReason targetResources category loggedByService activityDateTime&lt;/P&gt;</description>
    <pubDate>Fri, 19 Apr 2024 19:07:12 GMT</pubDate>
    <dc:creator>swaprks</dc:creator>
    <dc:date>2024-04-19T19:07:12Z</dc:date>
    <item>
      <title>REST API - Search targetResources from Azure Audit via Java SDK</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-targetResources-from-Azure-Audit-via-Java-SDK/m-p/684819#M114257</link>
      <description>&lt;P&gt;I am trying to query audit logs from Splunk. The logs are for azure but when I hit the below query, it only returns the text fields and not the object or array fields like&amp;nbsp;initiatedBy and&amp;nbsp;targetResources. Do I need to query this data in a different manner?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;index="directoryaudit" | fields id activityDisplayName result operationType correlationId initiatedBy resultReason targetResources category loggedByService activityDateTime&lt;/P&gt;</description>
      <pubDate>Fri, 19 Apr 2024 19:07:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-targetResources-from-Azure-Audit-via-Java-SDK/m-p/684819#M114257</guid>
      <dc:creator>swaprks</dc:creator>
      <dc:date>2024-04-19T19:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: REST API - Search targetResources from Azure Audit via Java SDK</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-targetResources-from-Azure-Audit-via-Java-SDK/m-p/684913#M114283</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/267125"&gt;@swaprks&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;If you're relying on automatic field-extraction, i.e. KV_MODE = auto and AUTO_KV_JSON = true &lt;EM&gt;or&lt;/EM&gt; KV_MODE = json&amp;nbsp;&lt;EM&gt;or&lt;/EM&gt;&amp;nbsp;INDEXED_EXTRACTIONS = JSON, only the nested fields are extracted, e.g.:&lt;/P&gt;&lt;P&gt;initiatedBy.user.id&lt;BR /&gt;targetResources{}.id&lt;/P&gt;&lt;P&gt;Arrays are extracted as multi-valued fields, e.g.:&lt;/P&gt;&lt;P&gt;targetResources{}.modifiedProperties{}.displayName&lt;BR /&gt;:=&lt;BR /&gt;AccountEnabled&lt;BR /&gt;StsRefreshTokensValidFrom&lt;BR /&gt;UserPrincipalName&lt;BR /&gt;UserType&lt;BR /&gt;Included Updated Properties&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Automatic extraction of arrays of objects with array fields can also be confusing.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To return the native JSON directly, extract the fields as part of your search:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;index=directoryaudit
| eval json=json(_raw), initiatedBy=json_extract(json, "initiatedBy"), targetResources=json_extract(json, "targetResources")
| fields id activityDisplayName result operationType correlationId initiatedBy resultReason targetResources category loggedByService activityDateTime&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 21 Apr 2024 18:10:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/REST-API-Search-targetResources-from-Azure-Audit-via-Java-SDK/m-p/684913#M114283</guid>
      <dc:creator>tscroggins</dc:creator>
      <dc:date>2024-04-21T18:10:23Z</dc:date>
    </item>
  </channel>
</rss>

