<?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 Stats count from different sources in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-from-different-sources/m-p/23658#M4245</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to show login stats from different sources by user. Those two sources d'on't show user with the same field (Nom_de_l_utilisateur and user).&lt;/P&gt;

&lt;P&gt;This search shows "No results". If I display either one or the other it works but not both at the same time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source="WinEventLog:Security" "CategoryString=Ouverture/fermeture" "Type=Failure" Type="Failure Audit") OR (source=udp:514 eventtype="failed_login") | regex host!="[QqZzVv][0-9].*" | search NOT "FortiService" | stats count by Nom_de_l_utilisateur,user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 14:29:43 GMT</pubDate>
    <dc:creator>gnoellbn</dc:creator>
    <dc:date>2020-09-28T14:29:43Z</dc:date>
    <item>
      <title>Stats count from different sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-from-different-sources/m-p/23658#M4245</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I'm trying to show login stats from different sources by user. Those two sources d'on't show user with the same field (Nom_de_l_utilisateur and user).&lt;/P&gt;

&lt;P&gt;This search shows "No results". If I display either one or the other it works but not both at the same time.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(source="WinEventLog:Security" "CategoryString=Ouverture/fermeture" "Type=Failure" Type="Failure Audit") OR (source=udp:514 eventtype="failed_login") | regex host!="[QqZzVv][0-9].*" | search NOT "FortiService" | stats count by Nom_de_l_utilisateur,user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks in advance &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:29:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-from-different-sources/m-p/23658#M4245</guid>
      <dc:creator>gnoellbn</dc:creator>
      <dc:date>2020-09-28T14:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stats count from different sources</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Stats-count-from-different-sources/m-p/23659#M4246</link>
      <description>&lt;P&gt;replace :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;stats count by Nom_de_l_utilisateur,user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;with :&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;eval user=coalesce(Nom_de_l_utilisateur,user) | stats count by user
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This sets user to the 1st non-null value of Nom_de_l_utilisateur or user.&lt;/P&gt;

&lt;P&gt;The trick is to get the data you need in 1 field.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:29:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Stats-count-from-different-sources/m-p/23659#M4246</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2020-09-28T14:29:46Z</dc:date>
    </item>
  </channel>
</rss>

