<?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: cdr analysis area code in Reporting</title>
    <link>https://community.splunk.com/t5/Reporting/cdr-analysis-area-code/m-p/49072#M10231</link>
    <description>&lt;P&gt;Grab the first 3 digits - there are multiple ways to do this. Either you use &lt;CODE&gt;eval&lt;/CODE&gt; and &lt;CODE&gt;substr&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval areacode=substr(yourphonefield,1,3)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you could use &lt;CODE&gt;rex&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=yourphonefield "^(?&amp;lt;areacode&amp;gt;\d{3})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 29 Nov 2012 16:02:25 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2012-11-29T16:02:25Z</dc:date>
    <item>
      <title>cdr analysis area code</title>
      <link>https://community.splunk.com/t5/Reporting/cdr-analysis-area-code/m-p/49071#M10230</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have  field which contains telephonenumbers and  would like to create a report on area codes, so I need to only use the first 3 digits of the field.&lt;/P&gt;

&lt;P&gt;How is this done?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 15:39:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/cdr-analysis-area-code/m-p/49071#M10230</guid>
      <dc:creator>HansK</dc:creator>
      <dc:date>2012-11-29T15:39:18Z</dc:date>
    </item>
    <item>
      <title>Re: cdr analysis area code</title>
      <link>https://community.splunk.com/t5/Reporting/cdr-analysis-area-code/m-p/49072#M10231</link>
      <description>&lt;P&gt;Grab the first 3 digits - there are multiple ways to do this. Either you use &lt;CODE&gt;eval&lt;/CODE&gt; and &lt;CODE&gt;substr&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | eval areacode=substr(yourphonefield,1,3)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Or you could use &lt;CODE&gt;rex&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=yourphonefield "^(?&amp;lt;areacode&amp;gt;\d{3})"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Nov 2012 16:02:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Reporting/cdr-analysis-area-code/m-p/49072#M10231</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2012-11-29T16:02:25Z</dc:date>
    </item>
  </channel>
</rss>

