<?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 I use iplocation with an ip address I get from a dbxquery? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309953#M37091</link>
    <description>&lt;P&gt;&lt;STRONG&gt;and do those events have the fields "lat" and "lon" that you specified for geostats?&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 20:27:02 GMT</pubDate>
    <dc:creator>s2_splunk</dc:creator>
    <dc:date>2017-07-11T20:27:02Z</dc:date>
    <item>
      <title>Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309946#M37084</link>
      <description>&lt;P&gt;Can I use iplocation with an ip address I get from a dbxquery? &lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:39:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309946#M37084</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-11T18:39:14Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309947#M37085</link>
      <description>&lt;P&gt;Yes. As long as you have a field that contains an ip address, I see no reason why we care where it came from. &lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 18:49:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309947#M37085</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-11T18:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309948#M37086</link>
      <description>&lt;P&gt;iplocation does work by itself but not with geostats&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:14:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309948#M37086</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-11T19:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309949#M37087</link>
      <description>&lt;P&gt;Share your search example and/or screenshot?&lt;BR /&gt;
Do you have latitude/longitude fields in your events after using iplocation?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:23:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309949#M37087</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-11T19:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309950#M37088</link>
      <description>&lt;P&gt;I don't have the lat/lon fields in my events and I can't attach a screenshot so here is my search:&lt;/P&gt;

&lt;P&gt;|dbxquery connection=db.connection query="select remoteaddr from table" shortnames = t&lt;BR /&gt;
|iplocation = remotaddr&lt;BR /&gt;
|geostats latfield=lat longfield=lon globallimit=0&lt;/P&gt;

&lt;P&gt;No results found.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 19:52:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309950#M37088</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-11T19:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309951#M37089</link>
      <description>&lt;P&gt;Do you get any events without specifying the | geostats command and do those events have the fields "lat" and "lon" that you specified for geostats?&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:05:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309951#M37089</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-11T20:05:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309952#M37090</link>
      <description>&lt;P&gt;I get stats without specifying the geostats command&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:08:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309952#M37090</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-11T20:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309953#M37091</link>
      <description>&lt;P&gt;&lt;STRONG&gt;and do those events have the fields "lat" and "lon" that you specified for geostats?&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:27:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309953#M37091</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-11T20:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309954#M37092</link>
      <description>&lt;P&gt;Looking at your search again, I see that you have multiple typos in there.&lt;BR /&gt;
It should be &lt;STRONG&gt;| iplocation remoteaddr&lt;/STRONG&gt; instead of &lt;STRONG&gt;|iplocation = remotaddr&lt;/STRONG&gt; (no equals sign and properly spelled field name).&lt;/P&gt;

&lt;P&gt;I just tried this and it works just fine:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| makeresults | eval remoteaddr="50.26.126.246" | iplocation remoteaddr | geostats latfield=lat longfield=lon
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please ensure you are using the correct syntax and try again.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 20:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309954#M37092</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-11T20:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309955#M37093</link>
      <description>&lt;P&gt;Can you test using dbxquery?  I get the same results with the "iplocation remoteaddr" syntax. I get nearly 12k worth of stats but no latitude or longitude when I add "| geostats latfield=lat longfield=lon"&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 11:16:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309955#M37093</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-12T11:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309956#M37094</link>
      <description>&lt;P&gt;I got this working, the remoteaddr field is case sensitive so it worked after I use REMOTEADDR&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 15:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309956#M37094</guid>
      <dc:creator>jhdietz</dc:creator>
      <dc:date>2017-07-12T15:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Can I use iplocation with an ip address I get from a dbxquery?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309957#M37095</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;BR /&gt;
Thanks for providing the update!&lt;/P&gt;

&lt;P&gt;Yes, all Splunk field names are case-sensitive,  field values are not.&lt;/P&gt;

&lt;P&gt;BTW, geostats does not create latitude and longitude, it requires it as input args. Which is why you should see a lat and long field after running iplocation successfully.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 23:01:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Can-I-use-iplocation-with-an-ip-address-I-get-from-a-dbxquery/m-p/309957#M37095</guid>
      <dc:creator>s2_splunk</dc:creator>
      <dc:date>2017-07-12T23:01:12Z</dc:date>
    </item>
  </channel>
</rss>

