<?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 need help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57706#M14071</link>
    <description>&lt;P&gt;Thank you a lot for your exemple! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 25 Jan 2012 14:27:16 GMT</pubDate>
    <dc:creator>smarechal</dc:creator>
    <dc:date>2012-01-25T14:27:16Z</dc:date>
    <item>
      <title>Rex need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57704#M14069</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I need to keep data in bold on this message:&lt;/P&gt;

&lt;P&gt;Message=Client IP [&lt;STRONG&gt;193.50.00.00:45780&lt;/STRONG&gt;] with username [&lt;STRONG&gt;&lt;A href="mailto:p.watson@domain.fr"&gt;p.watson@domain.fr&lt;/A&gt;&lt;/STRONG&gt;] connected successfully to server [&lt;STRONG&gt;10.1.10.160:2598&lt;/STRONG&gt;], resource [&lt;STRONG&gt;Outlook 2007&lt;/STRONG&gt;] using protocol [ICA].&lt;/P&gt;

&lt;P&gt;Is someone could help me with rex, i don't know regex at all.&lt;/P&gt;

&lt;P&gt;Thanks a lot!! &lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 12:44:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57704#M14069</guid>
      <dc:creator>smarechal</dc:creator>
      <dc:date>2012-01-25T12:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Rex need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57705#M14070</link>
      <description>&lt;P&gt;I might suggest reading up on regular expressions - they are kinda critical for what Splunk does.  But, to get you started...&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "Client IP \[(?&amp;lt;clientip&amp;gt;[^]]+)\] with username \[(?&amp;lt;username&amp;gt;)[^]]+)\] connected successfully to server \[(?&amp;lt;server&amp;gt;[^]]+)\], resource \[(?&amp;lt;resource&amp;gt;[^]]+)\]"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here's how this is supposed to work.  Within regex, &lt;CODE&gt;[&lt;/CODE&gt; and &lt;CODE&gt;]&lt;/CODE&gt; denote a set of characters.  So, &lt;CODE&gt;[aeiou]&lt;/CODE&gt; will match a single vowel -- a, or e, or i, or o, or u.  Putting a &lt;CODE&gt;^&lt;/CODE&gt; as the first character of the set says "match anything not in this set".  The &lt;CODE&gt;+&lt;/CODE&gt; means "one or more of these", and we escape (backslash) the &lt;CODE&gt;[&lt;/CODE&gt; and &lt;CODE&gt;]&lt;/CODE&gt; when we mean them literally.  So, &lt;CODE&gt;\[(?&amp;lt;clientip&amp;gt;[^]]+)\]&lt;/CODE&gt; means something like  "an open square bracket, followed by one or more of anything that is not a closed square bracket, followed by a closed square bracket."  The wrapping of &lt;CODE&gt;(?&amp;lt;clientip&amp;gt; .... )&lt;/CODE&gt; says to assign the field name clientip to what's inside the parentheses.&lt;/P&gt;

&lt;P&gt;Now, go read &lt;A href="http://www.regular-expressions.info/"&gt;http://www.regular-expressions.info/&lt;/A&gt; and get up to speed  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 13:46:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57705#M14070</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-01-25T13:46:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rex need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57706#M14071</link>
      <description>&lt;P&gt;Thank you a lot for your exemple! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57706#M14071</guid>
      <dc:creator>smarechal</dc:creator>
      <dc:date>2012-01-25T14:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Rex need help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57707#M14072</link>
      <description>&lt;P&gt;you're welcome.  If you don't mind, please accept the answer by clicking the little check mark to the left of it&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jan 2012 14:30:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-need-help/m-p/57707#M14072</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-01-25T14:30:23Z</dc:date>
    </item>
  </channel>
</rss>

