<?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: Lookup issues in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Lookup-issues/m-p/247918#M73968</link>
    <description>&lt;P&gt;I have removed and reinstalled the NANP app.&lt;/P&gt;

&lt;P&gt;It's expecting a phone number in xxx-xxx format&lt;/P&gt;

&lt;P&gt;transforms.conf &lt;BR /&gt;
[getareacode]&lt;BR /&gt;
REGEX = phone_no="?(\d{3}[-|.]\d{3})&lt;BR /&gt;
FORMAT = areacode::$1&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[ivrdata]&lt;BR /&gt;
LOOKUP-ac = AreaCodeLookup areacode AS phone_no OUTPUTNEW city country latitude AS _lat longitude AS _lng region&lt;BR /&gt;
REPORT-ac = getareacode&lt;/P&gt;

&lt;P&gt;Using the following search but it's not returning any lookup data&lt;/P&gt;

&lt;P&gt;sourcetype=ivrdata | WHERE IVR_Message="Phone" | rename IVR_Value AS phone_no | rex field=phone_no mode=sed "s/(\d{3})(\d{3})(\d{4})/\1-\2/g" | table phone_no city country latitude longitude region&lt;/P&gt;

&lt;P&gt;any ideas where I am going wrong?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/156262-lookup.png" alt="alt text" /&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 29 Sep 2020 10:44:27 GMT</pubDate>
    <dc:creator>ipops</dc:creator>
    <dc:date>2020-09-29T10:44:27Z</dc:date>
    <item>
      <title>Lookup issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-issues/m-p/247917#M73967</link>
      <description>&lt;P&gt;Having issues getting the NANP app to work (&lt;A href="https://splunkbase.splunk.com/app/1515/" target="_blank"&gt;https://splunkbase.splunk.com/app/1515/&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;I have the following search but it does not return any lookup fields&lt;/P&gt;

&lt;P&gt;sourcetype=ivrdata | eval {message}=varValue | stats first(LogTimestamp) as Time values(Phone) as phone values(Platform) as Platform by IVR_SessionID | WHERE Platform="FWA" | table areacode city latitude longitude&lt;/P&gt;

&lt;P&gt;This search returns a phone number in the 1234567890 format as the "phone" field. Any idea what I am doing wrong here?&lt;/P&gt;

&lt;P&gt;Here are the relevant files&lt;/P&gt;

&lt;P&gt;props.conf&lt;/P&gt;

&lt;P&gt;[ivrdata]&lt;BR /&gt;
LOOKUP-ac = AreaCodeLookup areacode AS phone OUTPUTNEW city country latitude AS _lat longitude AS _lng region&lt;BR /&gt;
REPORT-ac = getareacode&lt;/P&gt;

&lt;P&gt;transforms.conf&lt;/P&gt;

&lt;P&gt;[getareacode]&lt;BR /&gt;
REGEX = phone_no="?(\d{3}\d{3})&lt;BR /&gt;
FORMAT = areacode::$1&lt;/P&gt;

&lt;P&gt;Sample of areacode_latitude_longitude.csv &lt;/P&gt;

&lt;P&gt;areacode,city,region,country,latitude,longitude&lt;BR /&gt;
201200,Jersey City,NJ,US,40.7280556,-74.0780556 &lt;BR /&gt;
201202,Hackensack,NJ,US,40.8858333,-74.0438889&lt;BR /&gt;
201203,Hackensack,NJ,US,40.8858333,-74.0438889 &lt;BR /&gt;
201204,Jersey City,NJ,US,40.7280556,-74.0780556&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:44:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-issues/m-p/247917#M73967</guid>
      <dc:creator>ipops</dc:creator>
      <dc:date>2020-09-29T10:44:19Z</dc:date>
    </item>
    <item>
      <title>Re: Lookup issues</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Lookup-issues/m-p/247918#M73968</link>
      <description>&lt;P&gt;I have removed and reinstalled the NANP app.&lt;/P&gt;

&lt;P&gt;It's expecting a phone number in xxx-xxx format&lt;/P&gt;

&lt;P&gt;transforms.conf &lt;BR /&gt;
[getareacode]&lt;BR /&gt;
REGEX = phone_no="?(\d{3}[-|.]\d{3})&lt;BR /&gt;
FORMAT = areacode::$1&lt;/P&gt;

&lt;P&gt;props.conf&lt;BR /&gt;
[ivrdata]&lt;BR /&gt;
LOOKUP-ac = AreaCodeLookup areacode AS phone_no OUTPUTNEW city country latitude AS _lat longitude AS _lng region&lt;BR /&gt;
REPORT-ac = getareacode&lt;/P&gt;

&lt;P&gt;Using the following search but it's not returning any lookup data&lt;/P&gt;

&lt;P&gt;sourcetype=ivrdata | WHERE IVR_Message="Phone" | rename IVR_Value AS phone_no | rex field=phone_no mode=sed "s/(\d{3})(\d{3})(\d{4})/\1-\2/g" | table phone_no city country latitude longitude region&lt;/P&gt;

&lt;P&gt;any ideas where I am going wrong?&lt;/P&gt;

&lt;P&gt;&lt;IMG src="https://community.splunk.com/storage/temp/156262-lookup.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 10:44:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Lookup-issues/m-p/247918#M73968</guid>
      <dc:creator>ipops</dc:creator>
      <dc:date>2020-09-29T10:44:27Z</dc:date>
    </item>
  </channel>
</rss>

