<?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: How do I skip a word extracted by the regular expression generated using the Field Extractor? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263404#M79075</link>
    <description>&lt;P&gt;If each line is an individual event and your current extraction is working fine for all other users, then why don't you try to cut the "not required bit" at the source query by using &lt;CODE&gt;NOT "for invalid"&lt;/CODE&gt; in the search string so that you don't get these results at all.&lt;/P&gt;</description>
    <pubDate>Sun, 29 Jan 2017 01:20:56 GMT</pubDate>
    <dc:creator>gokadroid</dc:creator>
    <dc:date>2017-01-29T01:20:56Z</dc:date>
    <item>
      <title>How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263401#M79072</link>
      <description>&lt;P&gt;I'm so desperate! how do I skip a value from the regular expressions? For example in these lines.&lt;/P&gt;

&lt;P&gt;I don't want to extract the word "invalid"! I only want to extract the users (root, apache, mail and games), but when I apply the regular expression, it brings me invalid. How do I skip that word? &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Thu Oct 31 2016 00:15:06 mailsv1 sshd[5276]: Failed password for invalid user appserver from xxx.x.xx.xx port 3351 ssh2
Thu Oct 31 2016 00:15:06 mailsv1 sshd[1039]: Failed password for root from xxx.x.xx.xx port 3768 ssh2
Thu Oct 31 2016 00:15:06 mailsv1 sshd[1165]: Failed password for apache from xxx.x.xx.xx port 4604 ssh2
Thu Oct 31 2016 00:15:06 mailsv1 sshd[4998]: Failed password for mail from xxx.x.xx.xx port 1552 ssh2
Thu Oct 31 2016 00:15:06 mailsv1 sshd[1930]: Failed password for games from xxx.x.xx.xx port 3007 ssh2
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Jan 2017 01:18:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263401#M79072</guid>
      <dc:creator>danielgp89</dc:creator>
      <dc:date>2017-01-28T01:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263402#M79073</link>
      <description>&lt;P&gt;Try this, the fieldname will be &lt;CODE&gt;UserName&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;for\s(?&amp;lt;UserName&amp;gt;\w+)\sfrom&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Jan 2017 04:08:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263402#M79073</guid>
      <dc:creator>skoelpin</dc:creator>
      <dc:date>2017-01-28T04:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263403#M79074</link>
      <description>&lt;P&gt;You need to make the word invalid optional. maybe this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;for\s(invalid )?(?&amp;lt;UserName&amp;gt;\w+)\sfrom
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 28 Jan 2017 15:14:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263403#M79074</guid>
      <dc:creator>adauria_splunk</dc:creator>
      <dc:date>2017-01-28T15:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263404#M79075</link>
      <description>&lt;P&gt;If each line is an individual event and your current extraction is working fine for all other users, then why don't you try to cut the "not required bit" at the source query by using &lt;CODE&gt;NOT "for invalid"&lt;/CODE&gt; in the search string so that you don't get these results at all.&lt;/P&gt;</description>
      <pubDate>Sun, 29 Jan 2017 01:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263404#M79075</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2017-01-29T01:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263405#M79076</link>
      <description>&lt;P&gt;Hi gokadroid!&lt;/P&gt;

&lt;P&gt;I tried that. But when I cut all the logs and I use in the event action the field extractor it works fine, but at the moment I do a search with new field that I created, it also bring the word invalid and another ones that I don't want.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:52:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263405#M79076</guid>
      <dc:creator>danielgp89</dc:creator>
      <dc:date>2017-01-30T19:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263406#M79077</link>
      <description>&lt;P&gt;Thanks Adauria!&lt;/P&gt;

&lt;P&gt;This solve my problem.&lt;/P&gt;

&lt;P&gt;Best Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:52:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263406#M79077</guid>
      <dc:creator>danielgp89</dc:creator>
      <dc:date>2017-01-30T19:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip a word extracted by the regular expression generated using the Field Extractor?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263407#M79078</link>
      <description>&lt;P&gt;Thanks skoelpin&lt;/P&gt;

&lt;P&gt;This Solve my problem.&lt;/P&gt;

&lt;P&gt;Best Regards!&lt;/P&gt;</description>
      <pubDate>Mon, 30 Jan 2017 19:53:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-a-word-extracted-by-the-regular-expression/m-p/263407#M79078</guid>
      <dc:creator>danielgp89</dc:creator>
      <dc:date>2017-01-30T19:53:37Z</dc:date>
    </item>
  </channel>
</rss>

