<?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: Sum Field value with no duplicates and how to timechart it. in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558793#M158764</link>
    <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236192"&gt;@Rakesh915473&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The count in Selected Fields for username is distinct username appeared between selected time range. So when you Weill execute time chart search, will show you all 11 username trends.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xyz" username=* | timechart useother=f usenull=f count by username&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
    <pubDate>Fri, 09 Jul 2021 05:04:50 GMT</pubDate>
    <dc:creator>kamlesh_vaghela</dc:creator>
    <dc:date>2021-07-09T05:04:50Z</dc:date>
    <item>
      <title>Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558668#M158717</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;I have just started learning Splunk &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Example: I have done basic search index="xyz" |&lt;/P&gt;&lt;P&gt;I have got some logs like below&lt;/P&gt;&lt;P class="lia-align-left"&gt;Event1 : &lt;STRONG&gt;Field&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Value&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username&amp;nbsp; &amp;nbsp; &amp;nbsp;Rakesh&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timestamp&amp;nbsp; &amp;nbsp; 10AM&lt;/P&gt;&lt;P class="lia-align-left"&gt;Event 2:&amp;nbsp;&lt;STRONG&gt;Field&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username&amp;nbsp; &amp;nbsp; &amp;nbsp;Anitha&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timestamp&amp;nbsp; &amp;nbsp; 11AM&lt;/P&gt;&lt;P&gt;Event 3:&amp;nbsp;&lt;STRONG&gt;Field&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username&amp;nbsp; &amp;nbsp; &amp;nbsp;Rakesh&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timestamp&amp;nbsp; &amp;nbsp; 12PM&lt;/P&gt;&lt;P&gt;Event 4:&amp;nbsp;&lt;STRONG&gt;Field&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;STRONG&gt;Value&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; username&amp;nbsp; &amp;nbsp; &amp;nbsp;Harika&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; timestamp&amp;nbsp; &amp;nbsp; 1PM&lt;/P&gt;&lt;P&gt;So, I want a total username count 3 (ignoring duplicate Field Rakesh) and I want to display timechart x-axis: timestamp and y-axis: username total count.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 11:59:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558668#M158717</guid>
      <dc:creator>Rakesh915473</dc:creator>
      <dc:date>2021-07-08T11:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558669#M158718</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236192"&gt;@Rakesh915473&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you. try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;your_search_goes_here&amp;gt;
| timechart count by username&lt;/LI-CODE&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 12:06:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558669#M158718</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-08T12:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558707#M158740</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236192"&gt;@Rakesh915473&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can get distinct username by dc() function like&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xyz" | timechart dc(username) as count&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But timechart using _time for plotting time spans. To use &lt;SPAN&gt;timestamp under x axis, it&amp;nbsp;should be date or date time. &amp;nbsp;So can you please share sample data for&amp;nbsp;timestamp ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;KV&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 14:52:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558707#M158740</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-08T14:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558734#M158744</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/127939"&gt;@kamlesh_vaghela&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replied,&lt;/P&gt;&lt;P&gt;I can see how many times username is triggered count in time chart, But I want to see field&amp;nbsp;&lt;STRONG&gt;username &lt;/STRONG&gt;total count 3(Rakesh, Anitha, Harika) to be plotted in Y-axis, date time is fine on x-axis.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rakesh915473_0-1625766149445.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14991iDE4E69B073810EEE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rakesh915473_0-1625766149445.png" alt="Rakesh915473_0-1625766149445.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here &lt;STRONG&gt;username&lt;/STRONG&gt; is updated from log all the time, I want to see this total count 11(real time) to be plotted in time chart Y-axis and date time on x-axis.&lt;/P&gt;&lt;P&gt;Thanks in advance for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 17:44:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558734#M158744</guid>
      <dc:creator>Rakesh915473</dc:creator>
      <dc:date>2021-07-08T17:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558737#M158746</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/163730"&gt;@venkatasri&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to print field value to be plotted(real time) in chart Ex: username: &lt;STRONG&gt;11&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Rakesh915473_0-1625766414350.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/14992iEEEE6664873794BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Rakesh915473_0-1625766414350.png" alt="Rakesh915473_0-1625766414350.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Jul 2021 17:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558737#M158746</guid>
      <dc:creator>Rakesh915473</dc:creator>
      <dc:date>2021-07-08T17:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Sum Field value with no duplicates and how to timechart it.</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558793#M158764</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/236192"&gt;@Rakesh915473&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The count in Selected Fields for username is distinct username appeared between selected time range. So when you Weill execute time chart search, will show you all 11 username trends.&lt;/P&gt;&lt;P&gt;Can you please try this?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="xyz" username=* | timechart useother=f usenull=f count by username&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;KV&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jul 2021 05:04:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sum-Field-value-with-no-duplicates-and-how-to-timechart-it/m-p/558793#M158764</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2021-07-09T05:04:50Z</dc:date>
    </item>
  </channel>
</rss>

