<?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: Can't make geostats return multiple locations in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86855#M22179</link>
    <description>&lt;P&gt;partial information is not helping me completely &lt;BR /&gt;
debug the issue. need the values of the rtt field,&lt;BR /&gt;
since it is used in stats and geostats.&lt;/P&gt;

&lt;P&gt;so. can you provide me just the output of the lookup, or&lt;BR /&gt;
else...&lt;/P&gt;

&lt;P&gt;.... | lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude | table subnet country city location latitude longitude rtt&lt;/P&gt;

&lt;P&gt;tx.&lt;/P&gt;</description>
    <pubDate>Tue, 15 Oct 2013 23:40:41 GMT</pubDate>
    <dc:creator>arahut_splunk</dc:creator>
    <dc:date>2013-10-15T23:40:41Z</dc:date>
    <item>
      <title>Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86848#M22172</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I tried using the geostats feature. I got some logs where I have some network timings per client.&lt;BR /&gt;
I wanted to show this in the map but it seems it only returns one location although multiple exists.&lt;/P&gt;

&lt;P&gt;Here is my search:&lt;/P&gt;

&lt;P&gt;host="xxxxxxxx" | lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude | geostats latfield=latitude longfield=longitude avg(rtt) by location&lt;/P&gt;

&lt;P&gt;My log looks like this:&lt;/P&gt;

&lt;P&gt;client_ip=xxxxxxx server_ip=xxxxxx server_name=undefined client_name=xxxxx uri=someUrl req_L2bytes=3995 rsp_L2bytes=229412 status_code=200 tprocess=3676 &lt;/P&gt;

&lt;P&gt;This is what is returned:&lt;/P&gt;

&lt;P&gt;geobin                  latitude    longitude   Location(the name of the site)&lt;/P&gt;

&lt;P&gt;bin_id_zl_0_y_6_x_4  xx          yy 156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_1_y_12_x_8    xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_2_y_25_x_17   xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_3_y_51_x_34   xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_4_y_103_x_68  xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_5_y_207_x_136 xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_6_y_414_x_273 xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_7_y_829_x_547 xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_8_y_1659_x_1094   xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;bin_id_zl_9_y_3318_x_2189   xx  yy  156.464.006&lt;/P&gt;

&lt;P&gt;Location is the name of one of the sites.&lt;/P&gt;

&lt;P&gt;So it only draws one location on the map. Anybody knows why I do not see both locations returned. If I run the command using stats avg(rtt) by location I get both locations.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
Troels&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:55:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86848#M22172</guid>
      <dc:creator>TroelsJensen</dc:creator>
      <dc:date>2020-09-28T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86849#M22173</link>
      <description>&lt;P&gt;What is the output of this command ...&lt;/P&gt;

&lt;P&gt;host="xxxxxxxx" | lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude &lt;/P&gt;</description>
      <pubDate>Wed, 09 Oct 2013 23:22:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86849#M22173</guid>
      <dc:creator>arahut_splunk</dc:creator>
      <dc:date>2013-10-09T23:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86850#M22174</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;It does a lookup of the client_ip in a CSV and match aginst a scope using CIDR.&lt;/P&gt;

&lt;P&gt;It then returns the subnet country city location latitude and longitude of that location. I used the latitude and longitude returned in the geostats - latfield=latitude longfield=longitude&lt;/P&gt;

&lt;P&gt;But when I see then returned stats I only see one location in the header columns but there should be at least two in my demo.&lt;/P&gt;

&lt;P&gt;geobin latitude    longitude   Location(the name of the site)&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
Troels&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 08:22:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86850#M22174</guid>
      <dc:creator>TroelsJensen</dc:creator>
      <dc:date>2013-10-10T08:22:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86851#M22175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I get the problem that you are seeing, and understand what the csv lookup is doing.&lt;BR /&gt;
But if you can share the output upto the lookup command (which is fed to geostats), &lt;BR /&gt;
that will help understand the issue. You can try to obfuscate the non-essential fields.&lt;/P&gt;

&lt;P&gt;Also did you look into the search inspector, for warnings or errors?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Oct 2013 17:26:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86851#M22175</guid>
      <dc:creator>arahut_splunk</dc:creator>
      <dc:date>2013-10-10T17:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86852#M22176</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Is this what you are looking for, this comes from the events feed into the query before the lookup or what the lookup runs on I guess.&lt;/P&gt;

&lt;P&gt;2013-10-10T14:45:33.193Z product  my_event=web client_ip=192.168.1.101 server_ip=192.168.1.19 server_name=VM-Server client_name=SomeLaptop uri=192.168.1.19/default.aspx req_L2bytes=4455 rsp_L2bytes=239354 status_code=200 tprocess=1418 nprocess=121 rtt=107 req_rtos=0 rsp_rtos=0 referer=&lt;A href="http://192.168.1.19/default.aspx?pg=100125&amp;amp;mn=100101" target="_blank"&gt;http://192.168.1.19/default.aspx?pg=100125&amp;amp;mn=100101&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Sorry but couldn't post more log entries.&lt;/P&gt;

&lt;P&gt;I don't see any errors in the inspector log.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
Troels&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 14:57:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86852#M22176</guid>
      <dc:creator>TroelsJensen</dc:creator>
      <dc:date>2020-09-28T14:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86853#M22177</link>
      <description>&lt;P&gt;I am looking for the output after the lookup. that will tell  what was the value of&lt;BR /&gt;
location, latitude, longitude that your lookup "checkip" returned.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Oct 2013 21:13:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86853#M22177</guid>
      <dc:creator>arahut_splunk</dc:creator>
      <dc:date>2013-10-11T21:13:44Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86854#M22178</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;Today I got an error/warning:&lt;/P&gt;

&lt;P&gt;.....found 5,799 matching events. However, the transforming commands in the highlighted portion of the following search: geostats latfield=latitude longfield=longitude avg(rtt) by location generated no results.&lt;/P&gt;

&lt;P&gt;However you request returns this:&lt;/P&gt;

&lt;P&gt;lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude | table  subnet country city location latitude longitude&lt;/P&gt;

&lt;P&gt;192.168.1.0/24   US  New York    NY Office   40.743355   -73.988127‎&lt;BR /&gt;
10.10.10.0/24    Germany     Berlin  Berlin VPN  52.520399   13.397720‎&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
Troels&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 11:18:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86854#M22178</guid>
      <dc:creator>TroelsJensen</dc:creator>
      <dc:date>2013-10-15T11:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86855#M22179</link>
      <description>&lt;P&gt;partial information is not helping me completely &lt;BR /&gt;
debug the issue. need the values of the rtt field,&lt;BR /&gt;
since it is used in stats and geostats.&lt;/P&gt;

&lt;P&gt;so. can you provide me just the output of the lookup, or&lt;BR /&gt;
else...&lt;/P&gt;

&lt;P&gt;.... | lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude | table subnet country city location latitude longitude rtt&lt;/P&gt;

&lt;P&gt;tx.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Oct 2013 23:40:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86855#M22179</guid>
      <dc:creator>arahut_splunk</dc:creator>
      <dc:date>2013-10-15T23:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't make geostats return multiple locations</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86856#M22180</link>
      <description>&lt;P&gt;Here are some examples from using below command:&lt;/P&gt;

&lt;P&gt;| lookup checkip subnet as client_ip OUTPUT subnet country city location latitude longitude | table subnet country city location latitude longitude rtt&lt;/P&gt;

&lt;P&gt;192.168.1.0/24   US  New York    NY Office   40.743355   -73.988127‎   NaN&lt;BR /&gt;
192.168.1.0/24   US  New York    NY Office   40.743355   -73.988127‎   101.5&lt;BR /&gt;
10.10.10.0/24    Germany     Berlin  Berlin VPN  52.520399   13.397720‎    90&lt;BR /&gt;
10.10.10.0/24    Germany     Berlin  Berlin VPN  52.520399   13.397720‎    267&lt;/P&gt;

&lt;P&gt;Let me know if that helps.&lt;/P&gt;

&lt;P&gt;Best Regards&lt;BR /&gt;
Troels&lt;/P&gt;</description>
      <pubDate>Wed, 16 Oct 2013 10:03:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Can-t-make-geostats-return-multiple-locations/m-p/86856#M22180</guid>
      <dc:creator>TroelsJensen</dc:creator>
      <dc:date>2013-10-16T10:03:48Z</dc:date>
    </item>
  </channel>
</rss>

