<?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: Field extraction in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114853#M30394</link>
    <description>&lt;P&gt;Thanks guys, it worked..I am more comfortable using 00..{3}([^\s]+).  this is exactly filling my requirement.  &lt;/P&gt;</description>
    <pubDate>Thu, 29 Jan 2015 15:21:56 GMT</pubDate>
    <dc:creator>Navanitha</dc:creator>
    <dc:date>2015-01-29T15:21:56Z</dc:date>
    <item>
      <title>Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114848#M30389</link>
      <description>&lt;P&gt;I am trying to extract the field starting with C ending with I from following strings.  Can anyone pls suggest the appropriate regex for this.&lt;/P&gt;

&lt;P&gt;201421222062713TK 00.?4_CVH03I  VY SCN         P43833244199105   02P87562824579SAI LAKKAMANENI                                                                                  &lt;/P&gt;

&lt;P&gt;1120082628TA 00.?4DCGPV08I GTALS            295211P3055E464   01Q000900046SAHEER SHAIK12 &lt;/P&gt;

&lt;P&gt;2014112980059TL 00.C&amp;amp;&amp;amp;CGPV08I GTALS            295211P3055E464   0TI000200546280SRIDHAR ALAPARTHI  &lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:13:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114848#M30389</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2015-01-29T13:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114849#M30390</link>
      <description>&lt;P&gt;It's not clear exactly what you want to extract since there are multiple I's in your sample data.  However, the regex string &lt;CODE&gt;(C.*?I)&lt;/CODE&gt; should get you started.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:31:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114849#M30390</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-01-29T13:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114850#M30391</link>
      <description>&lt;P&gt;I want to extract fields with CVH03I / CGPV08I / CGPV08I.  regex which you gave is matching the field in first sting only.  I would like to match it with other two stings.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 13:41:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114850#M30391</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2015-01-29T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114851#M30392</link>
      <description>&lt;P&gt;According to RegExr, the string matches the first two examples.  The challenge in the third example is there are two C's.  See if this works better for you:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[_?&amp;amp;].*?(C.*?I)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 29 Jan 2015 14:13:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114851#M30392</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2015-01-29T14:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114852#M30393</link>
      <description>&lt;P&gt;You could also try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;00\..{3}([^\s]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;To save it as a field extraction just use this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;00\..{3}(?P&amp;lt;my_field&amp;gt;[^\s]+)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;I'm using the 00. as my starting point, ignore 3 characters after that, then begin the capture until the next whitespace.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 14:25:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114852#M30393</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2015-01-29T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114853#M30394</link>
      <description>&lt;P&gt;Thanks guys, it worked..I am more comfortable using 00..{3}([^\s]+).  this is exactly filling my requirement.  &lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 15:21:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114853#M30394</guid>
      <dc:creator>Navanitha</dc:creator>
      <dc:date>2015-01-29T15:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Field extraction</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114854#M30395</link>
      <description>&lt;P&gt;I also want to extract out a field from the samples logs below (all from cisco nodes); the words that come after the key word "command", i want to mark anything afterwards as a field, how do i use rex or regex go about it? thanks&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Sep 23 16:01:38 X.X.X.X 39412: Sep 23 13:01:37.822: %PARSER-5-CFGLOG_LOGGEDCMD: User:john.adams  logged command:switchport port-security

Sep 23 14:51:04 X.X.X.X 517733: 9w0d: %PARSER-5-CFGLOG_LOGGEDCMD: User:mary.clare  logged command:neighbor X.X.X.X GigabitEthernet0/2.1458

Sep 23 20:04:22 X.X.X.X 4554: Sep 23 17:04:21.239: %PARSER-5-CFGLOG_LOGGEDCMD: User:console  logged command:deny
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 23 Sep 2016 17:20:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Field-extraction/m-p/114854#M30395</guid>
      <dc:creator>sepmerit</dc:creator>
      <dc:date>2016-09-23T17:20:53Z</dc:date>
    </item>
  </channel>
</rss>

