<?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 words in a field extraction? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413585#M119194</link>
    <description>&lt;P&gt;This is exactly what I was looking for. Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 28 Nov 2018 18:24:00 GMT</pubDate>
    <dc:creator>aohls</dc:creator>
    <dc:date>2018-11-28T18:24:00Z</dc:date>
    <item>
      <title>How do I skip words in a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413583#M119192</link>
      <description>&lt;P&gt;I am working two extract fields and I have the following two lines:&lt;/P&gt;

&lt;P&gt;"ActionName processing for AccountName completed"&lt;BR /&gt;
"ActionName processing for account: AccountName completed"&lt;/P&gt;

&lt;P&gt;I want to extract ActionName and AccountName as new fields using the field extractor. I am writing the expression myself and was doing something like the following:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"(?&amp;lt;ActionName&amp;gt;\w+) processing for (?&amp;lt;AccountName&amp;gt;\w+) completed"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;In doing this though, I am missing the second event, "ActionName processing for account: AccountName completed". Is there a way I can have my expression run for both events correctly? I want to run with an unknown amount of space between the two and wanted to avoid doing two extractions.&lt;/P&gt;

&lt;P&gt;I am writing the expression myself since the other way does not work correctly either.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:08:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413583#M119192</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2018-11-28T18:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip words in a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413584#M119193</link>
      <description>&lt;P&gt;This should do it:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"(?&amp;lt;ActionName&amp;gt;\w+) processing for (account:\s)?(?&amp;lt;AccountName&amp;gt;\w+) completed"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The &lt;CODE&gt;(account:\s)?&lt;/CODE&gt; portion means that the string "account: " can appear 0 or 1 times (or in plain English, that it's optional).&lt;/P&gt;

&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:20:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413584#M119193</guid>
      <dc:creator>aholzer</dc:creator>
      <dc:date>2018-11-28T18:20:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do I skip words in a field extraction?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413585#M119194</link>
      <description>&lt;P&gt;This is exactly what I was looking for. Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 28 Nov 2018 18:24:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-skip-words-in-a-field-extraction/m-p/413585#M119194</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2018-11-28T18:24:00Z</dc:date>
    </item>
  </channel>
</rss>

