<?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. Excluding a single word. in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155767#M14219</link>
    <description>&lt;P&gt;First, you could try a regex that looks for either spaces followed by a number or MIN as the end, outside the capture group, like this maybe:&lt;/P&gt;

&lt;P&gt;RESULT: (.*)(\s+MIN|\s+\d)&lt;/P&gt;

&lt;P&gt;If that doesn't work, you could pipe it to an eval statement that uses the rtrim function to remove MIN, then eval with rtrim again to remove the last space.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Oct 2014 22:18:59 GMT</pubDate>
    <dc:creator>adauria_splunk</dc:creator>
    <dc:date>2014-10-08T22:18:59Z</dc:date>
    <item>
      <title>Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155763#M14215</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;I wolud like make a extraction using the field extractor app. My question is how to exclude a single word  of the extraction since it has variable word length (between 2 and 3 words).&lt;/P&gt;

&lt;P&gt;This is my comand:&lt;/P&gt;

&lt;P&gt;(?i)RESULT: (?\w*\s*\w*\s*\w*)&lt;/P&gt;

&lt;P&gt;If the extractor finds the word "MIN" in the third word place, I don't want to extract it and keep it with the first two words.&lt;/P&gt;

&lt;P&gt;Thanks in  advance!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 17:49:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155763#M14215</guid>
      <dc:creator>fvasquezchacon</dc:creator>
      <dc:date>2020-09-28T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155764#M14216</link>
      <description>&lt;P&gt;Can you post a sample of the event data?&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 12:57:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155764#M14216</guid>
      <dc:creator>jeremiahc4</dc:creator>
      <dc:date>2014-10-08T12:57:43Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155765#M14217</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Here is a simple (2 events). It's a multiline event data. What I 'm looking for is to extract the sentence after the word "RESULT: ". The sentence can have 2 or three words.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;MACUL      ALT103 SEP14 00:02:28 5971 FAIL ALT 
        MAIP 02 0 04 01    DN 229525843    1st CYCLE
        LIT TESTS= R-G T-G FEMF  RESULT: RING DC FEMF
        MAX      2 VOLTS  ACT      8 VOLTS

MACUL      ALT104 SEP14 00:38:56 0576 FAIL ALT 
        GOBE 00 0 11 20    DN 229444877    1st CYCLE
        LIT TESTS= R-G T-G FEMF  RESULT: TIP  LEAKAGE
        MIN    40000 OHMS   ACT      000 OHMS
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Oct 2014 14:28:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155765#M14217</guid>
      <dc:creator>fvasquezchacon</dc:creator>
      <dc:date>2014-10-08T14:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155766#M14218</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;Your base search | rex "(?i)RESULT:(?.*)"&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 15:53:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155766#M14218</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-10-08T15:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155767#M14219</link>
      <description>&lt;P&gt;First, you could try a regex that looks for either spaces followed by a number or MIN as the end, outside the capture group, like this maybe:&lt;/P&gt;

&lt;P&gt;RESULT: (.*)(\s+MIN|\s+\d)&lt;/P&gt;

&lt;P&gt;If that doesn't work, you could pipe it to an eval statement that uses the rtrim function to remove MIN, then eval with rtrim again to remove the last space.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 22:18:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155767#M14219</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2014-10-08T22:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155768#M14220</link>
      <description>&lt;P&gt;The form removed the back slashes before the s and d, above...you'll need those&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2014 22:20:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155768#M14220</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2014-10-08T22:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Field Extraction. Excluding a single word.</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155769#M14221</link>
      <description>&lt;P&gt;Thanks a lot for your answers! It helped me to solve the issue. And as posted, the form removed the back slashes (and also less-than and greater-than signs).&lt;/P&gt;

&lt;P&gt;What I have done is the following regex:&lt;/P&gt;

&lt;P&gt;(?m)RESULT: (?P"less-than sign"FIELD_NAME"greater-than sign".+?)$&lt;/P&gt;</description>
      <pubDate>Thu, 09 Oct 2014 21:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Field-Extraction-Excluding-a-single-word/m-p/155769#M14221</guid>
      <dc:creator>fvasquezchacon</dc:creator>
      <dc:date>2014-10-09T21:22:18Z</dc:date>
    </item>
  </channel>
</rss>

