<?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: Timechart with 4 count values in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614069#M213399</link>
    <description>&lt;P&gt;I just tried to visualize datas on my timechart (for the both dc(eval()) which works) and i only have 2 points on midnight yesterday with the number of connection.&lt;BR /&gt;&lt;BR /&gt;Ideally, i would like to have a timechart by week with the number of connection and auth-failed per day like this graph :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21603iFA83075DBFAE0D27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph.png" alt="graph.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I thank you a lot for your help&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 09:11:39 GMT</pubDate>
    <dc:creator>Dim_No</dc:creator>
    <dc:date>2022-09-22T09:11:39Z</dc:date>
    <item>
      <title>How to create timechart with 4 count values?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613730#M213302</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'm new as Splunk user,&lt;BR /&gt;I'm asking your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to create an easy dashboard with VPN datas.&lt;/P&gt;
&lt;P&gt;My search :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="fw_paloalto" ( sourcetype="pan:globalprotect" log_subtype="connected") OR (sourcetype="pan:system" log_subtype=auth signature="auth-fail")&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;With that datas, i would like to get values in a global timechart 1d like that :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;gt;dc(user) WHERE log_subtype =connected + host="PA-3020*"&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;gt;&amp;nbsp;dc(user) WHERE log_subtype =connected + host="PA-820*"&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;gt; c(user) WHERE signature="auth-fail" + host="PA-3020*"&lt;/P&gt;
&lt;P class="lia-indent-padding-left-30px"&gt;&amp;gt; c(user) WHERE signature="auth-fail" + host="PA-820*"&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;For the moment, i'm not able to display that values in the same chart, i'm forced to have&amp;nbsp; 1 chart per host.&lt;BR /&gt;&lt;BR /&gt;Hope it is clear enough,&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks a lot for your help,&lt;/P&gt;
&lt;P&gt;Dimitri&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 14:39:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613730#M213302</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-20T14:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613736#M213303</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249632"&gt;@Dim_No&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;you should try using the eval in the options of the stats command, something like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto" ( sourcetype="pan:globalprotect" log_subtype="connected") OR (sourcetype="pan:system" log_subtype=auth signature="auth-fail")
| bin span=1d -time
| stats
   dc(eval(if(log_subtype="connected" AND host="PA-3020*",user,""))) AS "Connected to PA-3020"
   dc(eval(if(log_subtype="connected" AND host="PA-820*",user,""))) AS "Connected to PA-820"
   dc(eval(if(log_subtype="auth-fail" AND host="PA-3020*",user,""))) AS "auth-fail to PA-3020"
   dc(eval(if(log_subtype="auth-fail" AND host="PA-820*",user,""))) AS "auth-fail to PA-820"
   BY _time&lt;/LI-CODE&gt;&lt;P&gt;I don't know what's the span of your timechart, I used 1d but you can change.&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 08:26:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613736#M213303</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-20T08:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613865#M213330</link>
      <description>&lt;P&gt;Minor tweaks, as dc will count "" as a distinct value, so use null() instead. There seems to be no reason not to use timechart and the second two were 'counts' not dc.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto" ( sourcetype="pan:globalprotect" log_subtype="connected") OR (sourcetype="pan:system" log_subtype=auth signature="auth-fail")
| timechart span=1d
   dc(eval(if(log_subtype="connected" AND host="PA-3020*",user,null()))) AS "Connected to PA-3020"
   dc(eval(if(log_subtype="connected" AND host="PA-820*",user,null()))) AS "Connected to PA-820"
   c(eval(if(log_subtype="auth-fail" AND host="PA-3020*",user,null()))) AS "auth-fail to PA-3020"
   c(eval(if(log_subtype="auth-fail" AND host="PA-820*",user,null()))) AS "auth-fail to PA-820"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Sep 2022 23:53:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/613865#M213330</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-20T23:53:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614030#M213377</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;Thanks to you 2 for your answers, that helps me a lot in term of syntax !&lt;BR /&gt;&lt;BR /&gt;When i do that research ( the first line of stats) :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto"
| stats 
dc(eval(if(sourcetype="pan:globalprotect" AND log_subtype="connected" AND host="PA-3020*",user,null()))) AS "Connected to PA-3020"&lt;/LI-CODE&gt;&lt;P&gt;That displays good events with name of users.&amp;nbsp;&lt;BR /&gt;But in the statistics tab, that sorts me 0.&lt;BR /&gt;&lt;BR /&gt;Do you have any idea ?&lt;BR /&gt;I don't felle rly comfortable with IF for the moment.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot by advance,&lt;BR /&gt;Have a good day.&lt;BR /&gt;Dimitri&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:01:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614030#M213377</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T07:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614032#M213378</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249632"&gt;@Dim_No&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;did you tried with a space instead of null()?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto"
| stats 
dc(eval(if(sourcetype="pan:globalprotect" AND log_subtype="connected" AND host="PA-3020*",user,""))) AS "Connected to PA-3020"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:05:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614032#M213378</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T07:05:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614034#M213380</link>
      <description>&lt;P&gt;Yes, i tried.&lt;/P&gt;&lt;P&gt;In statistics tab :&lt;BR /&gt;With space, that sorts me 1 as result.&lt;BR /&gt;With null(), that sorts me 0 as result&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:10:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614034#M213380</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T07:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614035#M213381</link>
      <description>&lt;P&gt;You can't do wildcard searches like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;host="PA-3020*"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as eval statements do not work that way - it's different to a search, you will need to use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;match(host, "(?i)PA-3020")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which will do a case insensitive match for host/text&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:12:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614035#M213381</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-22T07:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614037#M213382</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249632"&gt;@Dim_No&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;the observation of&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/6367"&gt;@bowesmana&lt;/a&gt;&amp;nbsp;is correct , you have to use match:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto"
| stats 
dc(eval(if(sourcetype="pan:globalprotect" AND log_subtype="connected" AND match(host,"(?i)PA-3020"), user, ""))) AS "Connected to PA-3020"&lt;/LI-CODE&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:21:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614037#M213382</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2022-09-22T07:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614039#M213383</link>
      <description>&lt;LI-CODE lang="markup"&gt;( index="fw_paloalto" AND log_subtype="connected") OR (sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail")
| stats
   c(eval(if(log_subtype="auth-fail" AND match(host, "(?i)PA-3020"),user,null()))) AS "auth-fail to PA-3020"
   c(eval(if(log_subtype="auth-fail" AND match(host, "(?i)PA-820"),user,null()))) AS "auth-fail to PA-820"&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Thats works perfectly for the both dc()&lt;BR /&gt;But for the two count, that sorts 0 as result.&lt;BR /&gt;When i check in events, i well see the events with auth-fail and users.&lt;BR /&gt;&lt;BR /&gt;Thanks a lot, i will soon stop to disturb you&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:32:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614039#M213383</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614042#M213384</link>
      <description>&lt;P&gt;I tried with "" instead of null().&lt;BR /&gt;Now i have the same result for both. The number of events seems OK but the counts doesn't arrive to separate them by PA-3020 or PA-820&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;( index="fw_paloalto" AND log_subtype="connected") OR (sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail")
| stats
c(eval(if(log_subtype="auth-fail" AND match(host, "(?i)PA-3020"),host,""))) AS "auth-fail to PA-3020"
c(eval(if(log_subtype="auth-fail" AND match(host, "(?i)PA-820"),host,""))) AS "auth-fail to PA-820"&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:36:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614042#M213384</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T07:36:44Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614044#M213386</link>
      <description>&lt;P&gt;Should the test be signature="auth-fail" not log_subtype&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;..
c(eval(if(signature="auth-fail" AND match(host, "(?i)PA-3020"),user,null()))) AS "auth-fail to PA-3020"
...&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:41:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614044#M213386</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-22T07:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614045#M213387</link>
      <description>&lt;P&gt;If you use "" as the 'false' part of these statements, then it will count it, so if it should NOT be counted, then use null().&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:42:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614045#M213387</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-22T07:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614047#M213388</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249632"&gt;@Dim_No&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;&lt;BR /&gt;Thanks a lot, i will soon stop to disturb you&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;We are here to be disturbed and to get you a solution and help you learn - so keep asking! :&lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 07:44:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614047#M213388</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-22T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614051#M213390</link>
      <description>&lt;P&gt;Same thing,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto" ((sourcetype="pan:globalprotect" AND log_subtype="connected") OR (sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail"))
| stats
   dc(eval(if(sourcetype="pan:globalprotect" AND log_subtype="connected" AND match(host, "(?i)PA-3020"),user,null()))) AS "Connected to PA-3020"
   dc(eval(if(sourcetype="pan:globalprotect" AND log_subtype="connected" AND match(host, "(?i)PA-820"),user,null()))) AS "Connected to PA-820"
   c(eval(if(sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail" AND match(host, "(?i)PA-3020"),host,""))) AS "auth-fail to PA-3020"
   c(eval(if(sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail" AND match(host, "(?i)PA-820"),host,""))) AS "auth-fail to PA-820"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Actually, the result is like that : (time = yesterday)&lt;/P&gt;&lt;P&gt;Connected to PA-3020 /&amp;nbsp; Connected to PA-820 / auth-fail to PA-3020 / auth-fail to PA-820&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;221 =&amp;gt; OK&lt;/TD&gt;&lt;TD&gt;32 =&amp;gt; OK&lt;/TD&gt;&lt;TD&gt;531&lt;/TD&gt;&lt;TD&gt;531&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:08:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614051#M213390</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T08:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614069#M213399</link>
      <description>&lt;P&gt;I just tried to visualize datas on my timechart (for the both dc(eval()) which works) and i only have 2 points on midnight yesterday with the number of connection.&lt;BR /&gt;&lt;BR /&gt;Ideally, i would like to have a timechart by week with the number of connection and auth-failed per day like this graph :&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="graph.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/21603iFA83075DBFAE0D27/image-size/medium?v=v2&amp;amp;px=400" role="button" title="graph.png" alt="graph.png" /&gt;&lt;/span&gt;&lt;BR /&gt;I thank you a lot for your help&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 09:11:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614069#M213399</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T09:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614073#M213401</link>
      <description>&lt;P&gt;The problem of my stats seems to be on the index with the OR :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="fw_paloalto" ((sourcetype="pan:globalprotect" AND log_subtype="connected") OR (sourcetype="pan:system" AND log_subtype="auth" AND signature="auth-fail"))&lt;/LI-CODE&gt;&lt;P&gt;Without it, i have good results.&lt;BR /&gt;&lt;BR /&gt;I'm not sure i can navigate between 2 sourcetypes as I do. Or i do it wrong&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 09:44:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614073#M213401</guid>
      <dc:creator>Dim_No</dc:creator>
      <dc:date>2022-09-22T09:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Timechart with 4 count values</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614404#M213511</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/249632"&gt;@Dim_No&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;as mentioned elsewhere, please remove the "" in your if() statement - that will ALWAYS count both conditions for the IF - you MUST use null() in that case.&lt;/P&gt;&lt;P&gt;There are two ways to "count" with conditions in stats&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats count(eval(if(condition=true, X, null())))

OR 

| stats sum(eval(if(condition=true, 1, 0)))&lt;/LI-CODE&gt;&lt;P&gt;Either using count, where the false condition is null() or sum where the false condition is 0 and the true condition is 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Sep 2022 03:08:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-create-timechart-with-4-count-values/m-p/614404#M213511</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2022-09-24T03:08:06Z</dc:date>
    </item>
  </channel>
</rss>

