<?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: Rex 16 digit account number that always starts with 8 in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163563#M46436</link>
    <description>&lt;P&gt;I just needed to add one blank white space prior to the last "dash" and this fixed the extraction!&lt;BR /&gt;
Thanks MuS!&lt;/P&gt;</description>
    <pubDate>Tue, 23 Jun 2015 17:44:18 GMT</pubDate>
    <dc:creator>kmccowen</dc:creator>
    <dc:date>2015-06-23T17:44:18Z</dc:date>
    <item>
      <title>Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163561#M46434</link>
      <description>&lt;P&gt;I using the below REX but i'm getting unwanted values for another field that is not related to account number.  &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;REX: -\s(?&amp;lt;acct&amp;gt;\d{16})
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Example Log:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[2015-06-21T23:59:53.882-05:00] [gw_server6] [NOTIFICATION] [] [com.charter.customer.care.view.backing.banner.BannerFlowBean] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: cbrewster] [ecid: 8e4ec398-841d-45ad-9eb6-dec27a6d5b42-0004b72b,0] [APP: chtrgwy] 2015-06-21 23:59:53.882 - CTIPOP CALL RECEIVED - FGS - 8246100013000800- 8178750270 - 558795aa00000000ac10edf823300002
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My extraction is pulling in a value of &lt;CODE&gt;5586441100000000&lt;/CODE&gt; in some cases but in most cases i'm getting what I want which would be &lt;CODE&gt;8246100013000800&lt;/CODE&gt;  &lt;/P&gt;

&lt;P&gt;Valid account numbers should always start with the number "8" is there a way to add that logic into my existing Extraction for my Account number field?&lt;/P&gt;</description>
      <pubDate>Mon, 22 Jun 2015 18:35:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163561#M46434</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2015-06-22T18:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163562#M46435</link>
      <description>&lt;P&gt;Hi kmccowen,&lt;/P&gt;

&lt;P&gt;try something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here | rex field=_raw "-\s(?&amp;lt;acct&amp;gt;\d{16})\s-" | table acct
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will capture only 16 digits until the next &lt;CODE&gt;-&lt;/CODE&gt; is found.&lt;/P&gt;

&lt;P&gt;Hope this helps...&lt;/P&gt;

&lt;P&gt;cheers, MuS&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 00:07:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163562#M46435</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-23T00:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163563#M46436</link>
      <description>&lt;P&gt;I just needed to add one blank white space prior to the last "dash" and this fixed the extraction!&lt;BR /&gt;
Thanks MuS!&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 17:44:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163563#M46436</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2015-06-23T17:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163564#M46437</link>
      <description>&lt;P&gt;Final regex:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your base search here  | rex field=_raw "-\s(?&amp;lt;acct&amp;gt;\d{16})\s-"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 23 Jun 2015 17:46:42 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163564#M46437</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2015-06-23T17:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163565#M46438</link>
      <description>&lt;P&gt;need to add a white space "/s" prior to the final dash&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 19:48:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163565#M46438</guid>
      <dc:creator>kmccowen</dc:creator>
      <dc:date>2015-06-23T19:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Rex 16 digit account number that always starts with 8</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163566#M46439</link>
      <description>&lt;P&gt;thanks for the hint &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jun 2015 19:52:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-16-digit-account-number-that-always-starts-with-8/m-p/163566#M46439</guid>
      <dc:creator>MuS</dc:creator>
      <dc:date>2015-06-23T19:52:33Z</dc:date>
    </item>
  </channel>
</rss>

