<?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 eval or rex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460844#M140117</link>
    <description>&lt;P&gt;Message="Internal event: Function ldap_search entered.&lt;BR /&gt;SID: S-1-5-18&lt;BR /&gt;Source IP: 127.0.0.1:25855&lt;BR /&gt;Operation identifier: 680571&lt;BR /&gt;Data1: &lt;BR /&gt;Data2: 2796807187&lt;BR /&gt;Data3: &lt;BR /&gt;Data4:"&lt;/P&gt;
&lt;P&gt;How can I just left message "Message="Internal event: Function ldap_search entered."&lt;/P&gt;
&lt;P&gt;by rex to define as fields or use eval command?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jun 2020 22:52:12 GMT</pubDate>
    <dc:creator>keyu921</dc:creator>
    <dc:date>2020-06-05T22:52:12Z</dc:date>
    <item>
      <title>eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460844#M140117</link>
      <description>&lt;P&gt;Message="Internal event: Function ldap_search entered.&lt;BR /&gt;SID: S-1-5-18&lt;BR /&gt;Source IP: 127.0.0.1:25855&lt;BR /&gt;Operation identifier: 680571&lt;BR /&gt;Data1: &lt;BR /&gt;Data2: 2796807187&lt;BR /&gt;Data3: &lt;BR /&gt;Data4:"&lt;/P&gt;
&lt;P&gt;How can I just left message "Message="Internal event: Function ldap_search entered."&lt;/P&gt;
&lt;P&gt;by rex to define as fields or use eval command?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jun 2020 22:52:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460844#M140117</guid>
      <dc:creator>keyu921</dc:creator>
      <dc:date>2020-06-05T22:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460845#M140118</link>
      <description>&lt;P&gt;Hi @keyu921,&lt;BR /&gt;
probably the message field sould be already automatically extracted by Splunk because there's the pair key=value, if you cannot see it, use the Verbose Mode in search.&lt;/P&gt;

&lt;P&gt;If not you can use a regex like this in the rex command or in a guided extraction:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(?ms)Message\=\"(?&amp;lt;Message&amp;gt;.+)\s+SID
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/5X9OXT/1"&gt;https://regex101.com/r/5X9OXT/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 06:18:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460845#M140118</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-21T06:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460846#M140119</link>
      <description>&lt;P&gt;|rex Message=(?ms)Message=\"(?.+)\s+SID&lt;BR /&gt;
But seems failed&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 06:54:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460846#M140119</guid>
      <dc:creator>keyu921</dc:creator>
      <dc:date>2020-05-21T06:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460847#M140120</link>
      <description>&lt;P&gt;Hi @keyu921,&lt;BR /&gt;
Try:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "(?ms)Message\=\"(?&amp;lt;Message&amp;gt;.+)\s+SID"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;P.S.: when you insert a code (like the regex) in a Question or in a Comment, use always the Code sample button (the one with 101010) otherwise your comment isn't readable.&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 06:58:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460847#M140120</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-05-21T06:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460848#M140121</link>
      <description>&lt;P&gt;same result&lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 08:07:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460848#M140121</guid>
      <dc:creator>keyu921</dc:creator>
      <dc:date>2020-05-21T08:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: eval or rex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460849#M140122</link>
      <description>&lt;P&gt;it is ok now &lt;/P&gt;</description>
      <pubDate>Thu, 21 May 2020 08:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/eval-or-rex-help/m-p/460849#M140122</guid>
      <dc:creator>keyu921</dc:creator>
      <dc:date>2020-05-21T08:21:24Z</dc:date>
    </item>
  </channel>
</rss>

