<?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: Geostats  not giving count in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193762#M187270</link>
    <description>&lt;P&gt;This is not an error, but a warning. It is telling you that you have many unique values for the &lt;CODE&gt;Localidade&lt;/CODE&gt; field. &lt;CODE&gt;geostats&lt;/CODE&gt; is computing a count for each of the values of &lt;CODE&gt;Localidade&lt;/CODE&gt; in addition to considering the lat/long. It is not possible for &lt;CODE&gt;geostats&lt;/CODE&gt; to display that many statistics, so it has chosen only the 10 top &lt;CODE&gt;Localidade&lt;/CODE&gt; values to display.&lt;/P&gt;

&lt;P&gt;You can fix this in one of two ways:&lt;/P&gt;

&lt;P&gt;Option 1) Set the &lt;CODE&gt;globallimit&lt;/CODE&gt; field as suggested&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="geo.csv" 
| eval Localidade=upper(city) 
| table Localidade,latitude,longitude
| join Localidade  [search source="Areas para CNL .csv" ] 
| table Localidade,AT,latitude,longitude 
| rename AT as AREA
| join AREA [search source="/TEF_BRAZIL/base_bds_adslnew3.txt" ] 
| table N_BD, AREA,Localidade,latitude,longitude 
| geostats latfield=latitude longfield=longitude  count(N_BD) by Localidade globallimit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Option 2) Reconsider your search. First, what are you counting? The statistic &lt;CODE&gt;count(N_BD)&lt;/CODE&gt; is the count of the number of events that have a value in the &lt;CODE&gt;N_DB&lt;/CODE&gt; field. Second, the &lt;CODE&gt;geostats&lt;/CODE&gt; command will group the data by lat/long - since the &lt;CODE&gt;Localidade&lt;/CODE&gt; field is just another way to define the place, you should be able to omit it. Perhaps you would prefer this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="geo.csv"  | fields city latitude longitude
| eval Localidade=upper(city) 
| join Localidade  [search source="Areas para CNL .csv" | fields AT ] 
| rename AT as AREA
| join AREA [search source="/TEF_BRAZIL/base_bds_adslnew3.txt" | fields N_BD ] 
| geostats latfield=latitude longfield=longitude  count(N_BD) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 19 Mar 2014 07:59:32 GMT</pubDate>
    <dc:creator>lguinn2</dc:creator>
    <dc:date>2014-03-19T07:59:32Z</dc:date>
    <item>
      <title>Geostats  not giving count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193761#M187269</link>
      <description>&lt;P&gt;Hi I am trying to plot count of faults by location on gmaps,&lt;BR /&gt;
Query i am using is as below :&lt;BR /&gt;
source="geo.csv" | table city,latitude,longitude|eval CITY=upper(city) | table CITY,latitude,longitude | rename CITY as Localidade | join Localidade [search&lt;BR /&gt;
source="Areas para CNL .csv"] | table Localidade,AT,latitude,longitude | rename AT as AREA| join AREA [search source="/TEF_BRAZIL/base_bds_adslnew3.txt"] | table &lt;BR /&gt;
N_BD,AREA,Localidade,latitude,longitude | geostats latfield=latitude longfield=longitude  count(N_BD) by Localidade&lt;/P&gt;

&lt;P&gt;but it giving me the below error:&lt;BR /&gt;
split by field Localidade has large number of unique values 564 . Chart column set will be trimmed to 10. Use globallimit argument to control column count&lt;/P&gt;

&lt;P&gt;Can any one correct  me in getting right results.&lt;/P&gt;

&lt;P&gt;Thanking you&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:10:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193761#M187269</guid>
      <dc:creator>kavyatim</dc:creator>
      <dc:date>2020-09-28T16:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geostats  not giving count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193762#M187270</link>
      <description>&lt;P&gt;This is not an error, but a warning. It is telling you that you have many unique values for the &lt;CODE&gt;Localidade&lt;/CODE&gt; field. &lt;CODE&gt;geostats&lt;/CODE&gt; is computing a count for each of the values of &lt;CODE&gt;Localidade&lt;/CODE&gt; in addition to considering the lat/long. It is not possible for &lt;CODE&gt;geostats&lt;/CODE&gt; to display that many statistics, so it has chosen only the 10 top &lt;CODE&gt;Localidade&lt;/CODE&gt; values to display.&lt;/P&gt;

&lt;P&gt;You can fix this in one of two ways:&lt;/P&gt;

&lt;P&gt;Option 1) Set the &lt;CODE&gt;globallimit&lt;/CODE&gt; field as suggested&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="geo.csv" 
| eval Localidade=upper(city) 
| table Localidade,latitude,longitude
| join Localidade  [search source="Areas para CNL .csv" ] 
| table Localidade,AT,latitude,longitude 
| rename AT as AREA
| join AREA [search source="/TEF_BRAZIL/base_bds_adslnew3.txt" ] 
| table N_BD, AREA,Localidade,latitude,longitude 
| geostats latfield=latitude longfield=longitude  count(N_BD) by Localidade globallimit=10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Option 2) Reconsider your search. First, what are you counting? The statistic &lt;CODE&gt;count(N_BD)&lt;/CODE&gt; is the count of the number of events that have a value in the &lt;CODE&gt;N_DB&lt;/CODE&gt; field. Second, the &lt;CODE&gt;geostats&lt;/CODE&gt; command will group the data by lat/long - since the &lt;CODE&gt;Localidade&lt;/CODE&gt; field is just another way to define the place, you should be able to omit it. Perhaps you would prefer this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;source="geo.csv"  | fields city latitude longitude
| eval Localidade=upper(city) 
| join Localidade  [search source="Areas para CNL .csv" | fields AT ] 
| rename AT as AREA
| join AREA [search source="/TEF_BRAZIL/base_bds_adslnew3.txt" | fields N_BD ] 
| geostats latfield=latitude longfield=longitude  count(N_BD) 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Mar 2014 07:59:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193762#M187270</guid>
      <dc:creator>lguinn2</dc:creator>
      <dc:date>2014-03-19T07:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Geostats  not giving count</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193763#M187271</link>
      <description>&lt;P&gt;Hi.&lt;/P&gt;

&lt;P&gt;How to get count of some_column="AAA" in geostats command..&lt;BR /&gt;
help please?&lt;/P&gt;</description>
      <pubDate>Thu, 14 May 2015 15:37:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Geostats-not-giving-count/m-p/193763#M187271</guid>
      <dc:creator>SanthoshSreshta</dc:creator>
      <dc:date>2015-05-14T15:37:38Z</dc:date>
    </item>
  </channel>
</rss>

