<?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: rex extraction for field value with space in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284503#M86052</link>
    <description>&lt;P&gt;i believe you missanderstood, it´s right if an event does not contain the Audit Id field rex will fail to find it, this is a normal behavior. But if i have 100 Events in summary and 10 of them contains the Audit ID i would like to have the new field auditID with 80 NULL values and 10 correct matches. &lt;/P&gt;</description>
    <pubDate>Thu, 02 Jun 2016 08:22:59 GMT</pubDate>
    <dc:creator>nikkkc</dc:creator>
    <dc:date>2016-06-02T08:22:59Z</dc:date>
    <item>
      <title>rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284498#M86047</link>
      <description>&lt;P&gt;hi,&lt;BR /&gt;
would someone be so kind and help me to build a rex expression? i want to extract all "Audit ID" from this sample Log:&lt;/P&gt;

&lt;P&gt;May 31 17:36:05 xxx.xxx.xxx.xxx May 31 17:37:04 mail33 ecelerity[23851]: ML-REJECT: Rejection on: xxx.x.xx.x:25, sent to host: 111.1111.111.111:56482, Audit ID ac13e885-1234567-32-574dafa09655, 554 5.7.1 You are not allowed to connect.#015 &lt;/P&gt;

&lt;P&gt;i want the hole text after the "Audit ID" string until the next comma.&lt;BR /&gt;
Thanks in advanced&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 16:20:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284498#M86047</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-05-31T16:20:51Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284499#M86048</link>
      <description>&lt;P&gt;...and i have to search for "Audit ID" because the ID is not always on the same place! i tried a lot but nothing works&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2016 16:23:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284499#M86048</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-05-31T16:23:19Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284500#M86049</link>
      <description>&lt;P&gt;This works on regex101.com with your sample event.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex "Audit ID (?&amp;lt;auditID&amp;gt;[^,]*)" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 May 2016 16:56:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284500#M86049</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-05-31T16:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284501#M86050</link>
      <description>&lt;P&gt;Thank you, this is exactly what i had, but now i realized the real problem: I forgot to mention that there are a lot of Events without the Audit ID and then it doesnt work. In approx. 200 Events the Audit ID is present just a few times. If i pre-filter the Events then the rex works !! &lt;BR /&gt;
i do not understand this behaivor... &lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 07:11:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284501#M86050</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-06-01T07:11:01Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284502#M86051</link>
      <description>&lt;P&gt;If an event does not contain the Audit ID field then rex will fail to find it.  Any part of your query which relies on the Audit ID field will also fail.  &lt;/P&gt;

&lt;P&gt;The presence of the Audit ID field in a event is controlled by the application, not by Splunk.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:31:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284502#M86051</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-06-01T17:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284503#M86052</link>
      <description>&lt;P&gt;i believe you missanderstood, it´s right if an event does not contain the Audit Id field rex will fail to find it, this is a normal behavior. But if i have 100 Events in summary and 10 of them contains the Audit ID i would like to have the new field auditID with 80 NULL values and 10 correct matches. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 08:22:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284503#M86052</guid>
      <dc:creator>nikkkc</dc:creator>
      <dc:date>2016-06-02T08:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: rex extraction for field value with space</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284504#M86053</link>
      <description>&lt;P&gt;Ah.  Then you would want the &lt;CODE&gt;fillnull&lt;/CODE&gt; command.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 12:40:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-extraction-for-field-value-with-space/m-p/284504#M86053</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-06-02T12:40:30Z</dc:date>
    </item>
  </channel>
</rss>

