<?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: plotting unique values using timecharts in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35939#M7926</link>
    <description>&lt;P&gt;Don't know enough about Splunk to tell you exactly what to do, but I would use summary indexes. You need in a field the value you're trying to plot and if I understand well, you don't have this value anywhere in your log files. So you should run a summary search every day or every hour which is counting the number of unique user ids since the previous time the summary search was run. Once you get this result, it will be easy to plot what you need.&lt;/P&gt;

&lt;P&gt;To get your summary index, you will have to extract your "userid" field (with multikv ?) and then pipe this through the "uniq" command and count the results.&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
    <pubDate>Tue, 19 Feb 2013 03:00:51 GMT</pubDate>
    <dc:creator>yoho</dc:creator>
    <dc:date>2013-02-19T03:00:51Z</dc:date>
    <item>
      <title>plotting unique values using timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35938#M7925</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I'd like to draw a quick chart of unique instances of a given field over time. Specifically, I'd like a chart with:&lt;BR /&gt;
x-axis: time in increments of days or hours&lt;BR /&gt;
y-axis: number of unique users as defined by the field 'userid'&lt;BR /&gt;
So regardless of how many userids appear on a given day, the chart would only display a single line with the number of unique userids. &lt;/P&gt;

&lt;P&gt;I tried the following query, but it does not provide the above: &lt;BR /&gt;
* | timechart count by unique(userid)&lt;/P&gt;

&lt;P&gt;A sample log event would be:&lt;BR /&gt;
event userid=X&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 00:11:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35938#M7925</guid>
      <dc:creator>chan2</dc:creator>
      <dc:date>2013-02-19T00:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: plotting unique values using timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35939#M7926</link>
      <description>&lt;P&gt;Don't know enough about Splunk to tell you exactly what to do, but I would use summary indexes. You need in a field the value you're trying to plot and if I understand well, you don't have this value anywhere in your log files. So you should run a summary search every day or every hour which is counting the number of unique user ids since the previous time the summary search was run. Once you get this result, it will be easy to plot what you need.&lt;/P&gt;

&lt;P&gt;To get your summary index, you will have to extract your "userid" field (with multikv ?) and then pipe this through the "uniq" command and count the results.&lt;/P&gt;

&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 03:00:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35939#M7926</guid>
      <dc:creator>yoho</dc:creator>
      <dc:date>2013-02-19T03:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: plotting unique values using timecharts</title>
      <link>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35940#M7927</link>
      <description>&lt;P&gt;You need&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | timechart span=1d dc(userid)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Where dc = distinct count.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2013 08:26:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/plotting-unique-values-using-timecharts/m-p/35940#M7927</guid>
      <dc:creator>jonuwz</dc:creator>
      <dc:date>2013-02-19T08:26:21Z</dc:date>
    </item>
  </channel>
</rss>

