<?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 subtract the first X number from count of a deduped field for a timechart? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-the-first-X-number-from-count-of-a-deduped-field/m-p/320612#M95811</link>
    <description>&lt;P&gt;So if your monthly count for Jan is say 18000, you want to plot only 8000? What should happen if Feb count is less than 10000?&lt;/P&gt;</description>
    <pubDate>Tue, 06 Mar 2018 22:09:31 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2018-03-06T22:09:31Z</dc:date>
    <item>
      <title>How to subtract the first X number from count of a deduped field for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-the-first-X-number-from-count-of-a-deduped-field/m-p/320611#M95810</link>
      <description>&lt;P&gt;I have a timechart that visualizes the monthly count of unique locations accessed, but I need to remove the first (in order of time) 10,000 unique locations.  Here is my original search that builds the timechart:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;search resulting in events with various Latitude and Longitude fields, some unique
    | eval LatNormalized=round(Latitude,5)
    | eval LongNormalized=round(Longitude,5)
    | eval LatLongNormalized=LatNormalized+","+LongNormalized
    | dedup LatLongNormalized sortby -LatNormalized,-LongNormalized
    | timechart span=1mon count(LatLongNormalized)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I tried to use the following to at least identify where the 10k mark was hit, and I could then just modify my time range to exclude that, however it isn't working:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;same search base as above
| eval LatNormalized=round(Latitude,5)
| eval LongNormalized=round(Longitude,5)
| eval LatLongNormalized=LatNormalized+","+LongNormalized
| dedup LatLongNormalized sortby -LatNormalized,-LongNormalized, -date_month
| eventstats count(LatLongNormalized) as countLatLongNormalized
| streamstats range(countLatLongNormalized) as countRange
| head (countRange&amp;lt;10000)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This doesn't appear to be doing what I expected either, so I'm thinking I'm going about this completely wrong. Does anyone know how I could eliminate the results from my search containing the first 10,000 unique values of LatLongNormalized and only chart the subsequent counts?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 19:34:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-the-first-X-number-from-count-of-a-deduped-field/m-p/320611#M95810</guid>
      <dc:creator>jpriceit</dc:creator>
      <dc:date>2018-03-06T19:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to subtract the first X number from count of a deduped field for a timechart?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-the-first-X-number-from-count-of-a-deduped-field/m-p/320612#M95811</link>
      <description>&lt;P&gt;So if your monthly count for Jan is say 18000, you want to plot only 8000? What should happen if Feb count is less than 10000?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Mar 2018 22:09:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-subtract-the-first-X-number-from-count-of-a-deduped-field/m-p/320612#M95811</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-03-06T22:09:31Z</dc:date>
    </item>
  </channel>
</rss>

