<?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: Different field value result - props.conf versus rex - using same regular expression in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16767#M2248</link>
    <description>&lt;P&gt;basically, the difference is that rex apparently has the &lt;CODE&gt;(?s)&lt;/CODE&gt; option  on by default, and props.conf does not. this determines whether &lt;CODE&gt;.&lt;/CODE&gt; matches newlines. the first example turns off the option, the second makes it irrelevant.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jul 2010 10:54:28 GMT</pubDate>
    <dc:creator>gkanapathy</dc:creator>
    <dc:date>2010-07-03T10:54:28Z</dc:date>
    <item>
      <title>Different field value result - props.conf versus rex - using same regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16765#M2246</link>
      <description>&lt;P&gt;I have an event that is coming from a Windows forwarder. When you view the event in the log file on the server it looks like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;---- log entry made at 07/02/2010 09:15:00
Incoming SMTP call from a.b.c.d at 09:15:00.
Message B021531231236@int2.mydomain.com received at 09:15:00 from mail1.outsidedomain.com (unverified [a.b.c.d]).
Size: 18842 bytes
Return-path: Reports@domainA.com
Recipients: joe.smith@mig.mydomain.com,
Incoming SMTP (SSL/TLS) call from a.b.c.d completed at 09:15:00.
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;When you search for the event in splunk web it looks the same.&lt;/P&gt;

&lt;P&gt;If I use rex in search to get the Return-path using: &lt;CODE&gt;(?i)\-path: (?P&amp;lt;from&amp;gt;.*)&lt;/CODE&gt; I get the proper values 'Reports@domainA.com', but if I put the regex into props.conf for that field I'm getting 'Reports@domainA.comRecipients: joe.smith@mig.mydomain.com, Incoming SMTP (SSL/TLS) call from a.b.c.d completed at 09:15:00.'&lt;/P&gt;

&lt;P&gt;Is it possible for splunk web to be putting a newline in or something like that?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 20:35:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16765#M2246</guid>
      <dc:creator>Derek</dc:creator>
      <dc:date>2010-07-02T20:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Different field value result - props.conf versus rex - using same regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16766#M2247</link>
      <description>&lt;P&gt;Change it to:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?i-s)-path: (?P&amp;lt;from&amp;gt;.*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;or:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?i)-path: (?P&amp;lt;from&amp;gt;\V*)
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;CODE&gt;\V&lt;/CODE&gt; is "not vertical whitespace character"&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jul 2010 21:46:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16766#M2247</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-02T21:46:12Z</dc:date>
    </item>
    <item>
      <title>Re: Different field value result - props.conf versus rex - using same regular expression</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16767#M2248</link>
      <description>&lt;P&gt;basically, the difference is that rex apparently has the &lt;CODE&gt;(?s)&lt;/CODE&gt; option  on by default, and props.conf does not. this determines whether &lt;CODE&gt;.&lt;/CODE&gt; matches newlines. the first example turns off the option, the second makes it irrelevant.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jul 2010 10:54:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Different-field-value-result-props-conf-versus-rex-using-same/m-p/16767#M2248</guid>
      <dc:creator>gkanapathy</dc:creator>
      <dc:date>2010-07-03T10:54:28Z</dc:date>
    </item>
  </channel>
</rss>

