<?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 Azure query in Splunk Enterprise Security</title>
    <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Azure-query/m-p/524537#M9380</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have this query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"| tstats `summariesonly` values(Authentication.app) as app,count from datamodel=Authentication.Authentication  where earliest=-1d by Authentication.action,Authentication.src,index | `drop_dm_object_name(\"Authentication\")` | eval success=if(action=\"success\",count,0),failure=if(action=\"failure\",count,0) | stats values(app) as app,sum(failure) as failure,sum(success) as success by src,index | where success &amp;gt; 0 | `mltk_apply_upper(\"app:failures_by_src_count_1d\", \"medium\", \"failure\")` | table userPrincipalName, state"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I need to add user to the query but I didnt find user field on this datamodel&amp;nbsp; (used this&amp;nbsp;&lt;SPAN class="crayon-e"&gt;stats &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;dc&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;(&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;)&lt;/SPAN&gt; &lt;SPAN class="crayon-st"&gt;as&lt;/SPAN&gt; &lt;SPAN class="crayon-o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="crayon-o"&gt;|&lt;/SPAN&gt; &lt;SPAN class="crayon-v"&gt;transpose)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I find all the fields there ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Also, shows app list + number of failures + number of successes, but but no correlation of failures/successes to apps, how can I add this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. How can I add&amp;nbsp;&lt;SPAN&gt;failure reason ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 06:16:19 GMT</pubDate>
    <dc:creator>havatz</dc:creator>
    <dc:date>2020-10-14T06:16:19Z</dc:date>
    <item>
      <title>Azure query</title>
      <link>https://community.splunk.com/t5/Splunk-Enterprise-Security/Azure-query/m-p/524537#M9380</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have this query:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;"| tstats `summariesonly` values(Authentication.app) as app,count from datamodel=Authentication.Authentication  where earliest=-1d by Authentication.action,Authentication.src,index | `drop_dm_object_name(\"Authentication\")` | eval success=if(action=\"success\",count,0),failure=if(action=\"failure\",count,0) | stats values(app) as app,sum(failure) as failure,sum(success) as success by src,index | where success &amp;gt; 0 | `mltk_apply_upper(\"app:failures_by_src_count_1d\", \"medium\", \"failure\")` | table userPrincipalName, state"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I need to add user to the query but I didnt find user field on this datamodel&amp;nbsp; (used this&amp;nbsp;&lt;SPAN class="crayon-e"&gt;stats &lt;/SPAN&gt;&lt;SPAN class="crayon-e"&gt;dc&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;(&lt;/SPAN&gt;&lt;SPAN class="crayon-sy"&gt;)&lt;/SPAN&gt; &lt;SPAN class="crayon-st"&gt;as&lt;/SPAN&gt; &lt;SPAN class="crayon-o"&gt;*&lt;/SPAN&gt; &lt;SPAN class="crayon-o"&gt;|&lt;/SPAN&gt; &lt;SPAN class="crayon-v"&gt;transpose)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;How can I find all the fields there ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;Also, shows app list + number of failures + number of successes, but but no correlation of failures/successes to apps, how can I add this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. How can I add&amp;nbsp;&lt;SPAN&gt;failure reason ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 06:16:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Enterprise-Security/Azure-query/m-p/524537#M9380</guid>
      <dc:creator>havatz</dc:creator>
      <dc:date>2020-10-14T06:16:19Z</dc:date>
    </item>
  </channel>
</rss>

