<?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: Specific rex doesnt seem to work in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34550#M7470</link>
    <description>&lt;P&gt;could you post an example of some events that you'd like to apply the rex to so we can get an idea of the format for the events?&lt;/P&gt;</description>
    <pubDate>Fri, 24 Jun 2011 21:58:22 GMT</pubDate>
    <dc:creator>jbsplunk</dc:creator>
    <dc:date>2011-06-24T21:58:22Z</dc:date>
    <item>
      <title>Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34549#M7469</link>
      <description>&lt;P&gt;Have 3 sets of drives that are listed differently by different systems. &lt;/P&gt;

&lt;P&gt;FC SSD  &lt;/P&gt;

&lt;P&gt;SATAII SSD&lt;/P&gt;

&lt;P&gt;Fibre Channel&lt;/P&gt;

&lt;P&gt;SATAII&lt;/P&gt;

&lt;P&gt;Really its just SATA, Fibre Channel &amp;amp; SSD &amp;amp; I'd like to group them as such. &lt;/P&gt;

&lt;P&gt;I've tried many variations of &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Drive\sType:\s+(?&amp;lt;drive_tier&amp;gt;Fibre|SATAII\\s\\s|/SSD/)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The above SHOULD work IMO. but it only lists the first 2. I've tried many &lt;BR /&gt;
variations &amp;amp; either it finds the first 2 or lists all 4. &lt;/P&gt;

&lt;P&gt;If I take out the \s\s on the plain SATA then it will group the SATA SSD's &lt;BR /&gt;
with it- its not what I want but its the only grouping I've been able to &lt;BR /&gt;
see with this. The 2 SATAII's seem to make this a little more difficult. &lt;/P&gt;

&lt;P&gt;Anyone have any suggestions to try?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 21:05:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34549#M7469</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-06-24T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34550#M7470</link>
      <description>&lt;P&gt;could you post an example of some events that you'd like to apply the rex to so we can get an idea of the format for the events?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 21:58:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34550#M7470</guid>
      <dc:creator>jbsplunk</dc:creator>
      <dc:date>2011-06-24T21:58:22Z</dc:date>
    </item>
    <item>
      <title>Re: Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34551#M7471</link>
      <description>&lt;P&gt;Drive Type:              FC SSD&lt;/P&gt;

&lt;P&gt;Drive Type:              Fibre Channel&lt;/P&gt;

&lt;P&gt;Drive Type:              SATAII&lt;/P&gt;

&lt;P&gt;Drive Type:              SATAII SSD&lt;/P&gt;

&lt;P&gt;Above is exacltly the way they appear. &lt;BR /&gt;
I'd like to just have 3 groups.&lt;/P&gt;

&lt;P&gt;SATAII&lt;/P&gt;

&lt;P&gt;SSD (the 2 SSD's combined)&lt;/P&gt;

&lt;P&gt;FIBRE&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2011 22:35:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34551#M7471</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-06-24T22:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34552#M7472</link>
      <description>&lt;OL&gt;
&lt;LI&gt;&lt;P&gt;Why are you doing "\s" in one place and "\s" in another!&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Why do you have "SATAII\s\s" when sometimes you have "SATAII" and sometimes "SATA SSD".  Your regex will match either.  You want: "...|SATAII|..."&lt;/P&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;It seems to be that what you REALLY want is just:&lt;/P&gt;

&lt;P&gt;"Drive\sType:\s+(?&lt;DRIVE_TIER&gt;.+?)$"&lt;/DRIVE_TIER&gt;&lt;/P&gt;&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;Any DriveType until the newline.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 16:44:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34552#M7472</guid>
      <dc:creator>malberto</dc:creator>
      <dc:date>2011-06-27T16:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34553#M7473</link>
      <description>&lt;P&gt;SATAII &amp;amp; SATAII SSD are separate. I want those 2&lt;BR /&gt;
Fibre SSD &amp;amp; SATAII SSD's to be grouped togather. &lt;/P&gt;

&lt;P&gt;When I put in the \s\s it separated SATAII vs. SATA SSD. &lt;/P&gt;

&lt;P&gt;I thought if I had |SSD that it would pickup anything&lt;BR /&gt;
that had SSD in the string.. seems like a nice idea- but&lt;BR /&gt;
it doesnt work&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 17:28:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34553#M7473</guid>
      <dc:creator>clintla</dc:creator>
      <dc:date>2011-06-27T17:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Specific rex doesnt seem to work</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34554#M7474</link>
      <description>&lt;P&gt;Here you go:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"Drive Type: (?:SATAII |FC )*(?&amp;lt;drive_tier&amp;gt;Fibre|SATAII(?! SSD)|SSD)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results:&lt;/P&gt;

&lt;UL&gt;
&lt;LI&gt;Drive Type: SATAII SSD --&amp;gt; SSD&lt;/LI&gt;
&lt;LI&gt;Drive Type: SATAII --&amp;gt; SATAII&lt;/LI&gt;
&lt;LI&gt;Drive Type: Fibre Channel --&amp;gt; Fibre&lt;/LI&gt;
&lt;LI&gt;Drive Type: FC SSD --&amp;gt; SSD&lt;/LI&gt;
&lt;/UL&gt;

&lt;P&gt;There's no way to have it output an uppercase "FIBRE" as regexes only output what was in the original text.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jun 2011 18:25:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Specific-rex-doesnt-seem-to-work/m-p/34554#M7474</guid>
      <dc:creator>Paolo_Prigione</dc:creator>
      <dc:date>2011-06-27T18:25:34Z</dc:date>
    </item>
  </channel>
</rss>

