<?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: How to chart count by events and name? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412938#M119027</link>
    <description>&lt;P&gt;I was hoping to have a static list and if no events match default to 0. &lt;/P&gt;</description>
    <pubDate>Tue, 11 Jun 2019 16:47:41 GMT</pubDate>
    <dc:creator>jenkinsta</dc:creator>
    <dc:date>2019-06-11T16:47:41Z</dc:date>
    <item>
      <title>How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412935#M119024</link>
      <description>&lt;P&gt;I have a search that gets the count of events by users which works well. However, I want to have the chart list all users and not only the ones in the result set. &lt;/P&gt;

&lt;P&gt;The result set includes userA, userB, userC however, I want my chart to be built like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;userA, userB, userC, userD, userE
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If no results then 0 otherwise if the user returns a result shows that the chart reflects. &lt;/P&gt;

&lt;P&gt;Users.csv has a list of users matching that is returned in the search as owner: userA = 01, userB=02, etc.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex status=open
| lookup users.csv owner OUTPUT userID
| chart count by userID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 15:19:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412935#M119024</guid>
      <dc:creator>jenkinsta</dc:creator>
      <dc:date>2019-06-11T15:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412936#M119025</link>
      <description>&lt;P&gt;Hi @jenkinsta,&lt;/P&gt;

&lt;P&gt;Could you please share your search query with us so we can help you out better ?&lt;/P&gt;

&lt;P&gt;To fill null values with 0 you can use the &lt;CODE&gt;fillnull&lt;/CODE&gt; command or an &lt;CODE&gt;eval&lt;/CODE&gt; logic with an &lt;CODE&gt;if&lt;/CODE&gt; and &lt;CODE&gt;isnull&lt;/CODE&gt; parameter. &lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
David&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:12:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412936#M119025</guid>
      <dc:creator>DavidHourani</dc:creator>
      <dc:date>2019-06-11T16:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412937#M119026</link>
      <description>&lt;P&gt;@jenishka- If there are no events related to some users , how do you know the user names? Is it always going to be certain static users or is there a lookup for user ids?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:30:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412937#M119026</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-11T16:30:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412938#M119027</link>
      <description>&lt;P&gt;I was hoping to have a static list and if no events match default to 0. &lt;/P&gt;</description>
      <pubDate>Tue, 11 Jun 2019 16:47:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412938#M119027</guid>
      <dc:creator>jenkinsta</dc:creator>
      <dc:date>2019-06-11T16:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412939#M119028</link>
      <description>&lt;P&gt;@jenkinsta  you can try something like this-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=&amp;lt;yourindexname&amp;gt; sourcetype=&amp;lt;yoursourcetype&amp;gt; | stats count by owner| append [|inputlookup users.csv| eval count =0 | fields owner count] | chart sum(count) as total by owner
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 17:10:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412939#M119028</guid>
      <dc:creator>Vijeta</dc:creator>
      <dc:date>2019-06-11T17:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to chart count by events and name?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412940#M119029</link>
      <description>&lt;P&gt;SOmething like this should do it&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=myindex status=open
| lookup users.csv owner OUTPUT userID
| chart count by userID
| append [| inputlookup users.csv | table userID | eval count=0]
| chart max(count) by userID
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 11 Jun 2019 17:49:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-chart-count-by-events-and-name/m-p/412940#M119029</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2019-06-11T17:49:39Z</dc:date>
    </item>
  </channel>
</rss>

