<?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: help with a REGEX in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79281#M20067</link>
    <description>&lt;P&gt;index=main sourcetype="tcp-raw" | rex "(?i)Switch\s+:\s+\S+\s+(?P&amp;lt;4field&amp;gt;\S+-\S+)" &lt;/P&gt;

&lt;P&gt;try this bro!!&lt;BR /&gt;
consider voting if the answers helped you!! &lt;BR /&gt;
thanks in advance!!&lt;BR /&gt;
happy splunking,&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2013 07:01:01 GMT</pubDate>
    <dc:creator>eashwar</dc:creator>
    <dc:date>2013-04-02T07:01:01Z</dc:date>
    <item>
      <title>help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79277#M20063</link>
      <description>&lt;P&gt;I need help with a REGEX that needs to extract just fourth field in a line and nothing else.&lt;BR /&gt;
The event looks like this:&lt;BR /&gt;
Switch      : 800471-00-04 1215G-04161 xxxxx xxxxx xxxx ........&lt;/P&gt;

&lt;P&gt;Al I need is the "1215G-04161" portion of that line Can someone give me a quick regex for that? &lt;/P&gt;

&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2013 13:48:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79277#M20063</guid>
      <dc:creator>extreme1</dc:creator>
      <dc:date>2013-03-29T13:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79278#M20064</link>
      <description>&lt;P&gt;Assuming each field is a block of non-spaces, and assuming each field is separated by spaces, you can do this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;^(\S+\s+){3}(?&amp;lt;field4&amp;gt;\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 29 Mar 2013 14:01:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79278#M20064</guid>
      <dc:creator>martin_mueller</dc:creator>
      <dc:date>2013-03-29T14:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79279#M20065</link>
      <description>&lt;P&gt;if you want the field for all events which start with the word &lt;STRONG&gt;Switch&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;EXTRACT-field4= (?i)Switch\s+:\s+\S+\s+(?P&amp;lt;4field&amp;gt;\S+-\S+)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 30 Mar 2013 18:26:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79279#M20065</guid>
      <dc:creator>eashwar</dc:creator>
      <dc:date>2013-03-30T18:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79280#M20066</link>
      <description>&lt;P&gt;Thanks. So what would the actual search look like?&lt;BR /&gt;
==&amp;gt; index=main sourcetype="tcp-raw" | rex ????&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2013 16:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79280#M20066</guid>
      <dc:creator>extreme1</dc:creator>
      <dc:date>2013-04-01T16:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79281#M20067</link>
      <description>&lt;P&gt;index=main sourcetype="tcp-raw" | rex "(?i)Switch\s+:\s+\S+\s+(?P&amp;lt;4field&amp;gt;\S+-\S+)" &lt;/P&gt;

&lt;P&gt;try this bro!!&lt;BR /&gt;
consider voting if the answers helped you!! &lt;BR /&gt;
thanks in advance!!&lt;BR /&gt;
happy splunking,&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 07:01:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79281#M20067</guid>
      <dc:creator>eashwar</dc:creator>
      <dc:date>2013-04-02T07:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: help with a REGEX</title>
      <link>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79282#M20068</link>
      <description>&lt;P&gt;instead of 4field replace your own name! which you like to give&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2013 07:01:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/help-with-a-REGEX/m-p/79282#M20068</guid>
      <dc:creator>eashwar</dc:creator>
      <dc:date>2013-04-02T07:01:54Z</dc:date>
    </item>
  </channel>
</rss>

