<?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 change &amp;quot;(unknown location)&amp;quot; ? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307205#M4064</link>
    <description>&lt;P&gt;Sorry i did the changes but do not see it reflected while i generated my reports &lt;BR /&gt;
Do i need to Stop and Start any service&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 17 Feb 2017 13:38:04 GMT</pubDate>
    <dc:creator>roshan_f</dc:creator>
    <dc:date>2017-02-17T13:38:04Z</dc:date>
    <item>
      <title>How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307199#M4058</link>
      <description>&lt;P&gt;Hi Guys &lt;BR /&gt;
final numbers called: 00442........ (unknown location)&lt;BR /&gt;
How will I change (unknown location) to United Kingdom ?&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 06:43:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307199#M4058</guid>
      <dc:creator>roshan_f</dc:creator>
      <dc:date>2017-02-17T06:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307200#M4059</link>
      <description>&lt;P&gt;So... you're splunking phone data and are trying to look up country code to country?&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 09:49:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307200#M4059</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2017-02-17T09:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307201#M4060</link>
      <description>&lt;P&gt;I have written a load of scripts which do this.&lt;/P&gt;

&lt;P&gt;However, if your only worried about UK only (or a very small set of international numbers) you can probably do some simple &lt;CODE&gt;|eval location=if(prefix="0044","UK","Unknown")&lt;/CODE&gt; type stuff.&lt;/P&gt;

&lt;P&gt;But if you want to catch any country code you are going to be better off with lookup tables, or some lookup scripts which do the heavy lifting.&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 11:28:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307201#M4060</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-17T11:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307202#M4061</link>
      <description>&lt;P&gt;Thank you , Sound Good to me &lt;BR /&gt;
Where is teh lookup tables ?&lt;BR /&gt;
Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:12:32 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307202#M4061</guid>
      <dc:creator>roshan_f</dc:creator>
      <dc:date>2017-02-17T13:12:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307203#M4062</link>
      <description>&lt;P&gt;Thank you Nick &lt;BR /&gt;
Manged to find it &lt;BR /&gt;
Appreciate you assisting and pointing me toward the  correct direction &lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:23:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307203#M4062</guid>
      <dc:creator>roshan_f</dc:creator>
      <dc:date>2017-02-17T13:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307204#M4063</link>
      <description>&lt;P&gt;let me upload it somewhere&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:25:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307204#M4063</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-17T13:25:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307205#M4064</link>
      <description>&lt;P&gt;Sorry i did the changes but do not see it reflected while i generated my reports &lt;BR /&gt;
Do i need to Stop and Start any service&lt;/P&gt;

&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:38:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307205#M4064</guid>
      <dc:creator>roshan_f</dc:creator>
      <dc:date>2017-02-17T13:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307206#M4065</link>
      <description>&lt;P&gt;Download the global location lookup file from here:&lt;BR /&gt;
&lt;A href="https://github.com/nickhills81/telephonyToolbox/blob/master/lookups/global-loc.csv"&gt;https://github.com/nickhills81/telephonyToolbox/blob/master/lookups/global-loc.csv&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;From the UI, goto &lt;CODE&gt;Lookups&lt;/CODE&gt; - &lt;CODE&gt;Lookup table files&lt;/CODE&gt;&lt;BR /&gt;
Add new, choose file. I suggest you keep the filename the same&lt;BR /&gt;
-or copy the lookup file to yourApp/lookups (you may need to create that folder if you have no existing lookups)&lt;/P&gt;

&lt;P&gt;From the UI, goto &lt;CODE&gt;Lookups&lt;/CODE&gt; - &lt;CODE&gt;Lookup definitions&lt;/CODE&gt;&lt;BR /&gt;
Add a file-based lookup definition using &lt;CODE&gt;global-loc.csv&lt;/CODE&gt; &lt;/P&gt;

&lt;P&gt;You will now be able to perform lookups like so:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;somesearch|lookup global-loc countryCode as yourcountryCode areaCode as yourareaCode OUTPUTNEW countryName,areaName,cCity,lat,lon,iso2|table yourcountryCode yourareaCode  countryName,areaName,cCity,lat,lon,iso2
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Which should give you a table like so:&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2502i7017F8A132D3675D/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 13:53:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307206#M4065</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-17T13:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307207#M4066</link>
      <description>&lt;P&gt;just a note on the cCity field...&lt;BR /&gt;
This is a lookup file i have compiled over time. For some countries (UK,US and a few others) the coordinates are based on the area code. However in cases where i have not found a decent position information for the area (or its too small)  the lat and long relates to the Capital City. Good for pub quiz trivia too!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Feb 2017 16:26:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307207#M4066</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-17T16:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307208#M4067</link>
      <description>&lt;P&gt;Thank you Nick &lt;BR /&gt;
Totally appreciate your help &lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 11:19:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307208#M4067</guid>
      <dc:creator>roshan_f</dc:creator>
      <dc:date>2017-02-20T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to change "(unknown location)" ?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307209#M4068</link>
      <description>&lt;P&gt;I noticed that there were a few obvious errors in the csv - apologies. I have corrected and reuploaded&lt;/P&gt;</description>
      <pubDate>Mon, 20 Feb 2017 17:26:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-to-change-quot-unknown-location-quot/m-p/307209#M4068</guid>
      <dc:creator>nickhills</dc:creator>
      <dc:date>2017-02-20T17:26:30Z</dc:date>
    </item>
  </channel>
</rss>

