<?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, Extract information between two slashes and blanks in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264754#M79505</link>
    <description>&lt;P&gt;check this one.. &lt;BR /&gt;
&lt;CODE&gt;your search | rex field=_raw "\/\s(?&amp;lt;ClientNumber&amp;gt;\w+\d+)\s\/" | table ClientNumber&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2041i44EDD1057CEE1719/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 19 Oct 2016 12:32:06 GMT</pubDate>
    <dc:creator>inventsekar</dc:creator>
    <dc:date>2016-10-19T12:32:06Z</dc:date>
    <item>
      <title>rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264753#M79504</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;i have information like: "DESCRIPTION EMEA:GERMANY:FRANKFURT / &lt;STRONG&gt;client4711&lt;/STRONG&gt; / down" &lt;BR /&gt;
where DESCRIPTION is a field, already. I would like to rex the information "client4711".&lt;BR /&gt;
This should be done by rex all information which starts which  "/" followed by one "blank" "&lt;EM&gt;client4711&lt;/EM&gt;" one "blank" followed by "/".&lt;/P&gt;

&lt;P&gt;Could you anwer my question, please?&lt;BR /&gt;
Many thanks in advance.&lt;BR /&gt;
floe.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 05:18:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264753#M79504</guid>
      <dc:creator>fklink</dc:creator>
      <dc:date>2016-10-19T05:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264754#M79505</link>
      <description>&lt;P&gt;check this one.. &lt;BR /&gt;
&lt;CODE&gt;your search | rex field=_raw "\/\s(?&amp;lt;ClientNumber&amp;gt;\w+\d+)\s\/" | table ClientNumber&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2041i44EDD1057CEE1719/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 12:32:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264754#M79505</guid>
      <dc:creator>inventsekar</dc:creator>
      <dc:date>2016-10-19T12:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264755#M79506</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=DESCRIPTION "\/\s(?&amp;lt;client&amp;gt;\w+)\s\/" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2016 12:34:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264755#M79506</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-10-19T12:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264756#M79507</link>
      <description>&lt;P&gt;Many thanks. Looks better &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;P&gt;i see some clients, now. Unfortunately, if a client includes one or more "-" splunk doesn't extract the information.&lt;/P&gt;

&lt;P&gt;Example:&lt;BR /&gt;
client4711- works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
client8888 - works &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
client-4711 splunk doesn't extract the information&lt;BR /&gt;
client-47-12-21 splunk doesn't extract the information&lt;/P&gt;

&lt;P&gt;Is there a way to tell rex "extract everything between /blank /blank?&lt;/P&gt;

&lt;P&gt;Many thanks in advance&lt;BR /&gt;
floe.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Oct 2016 13:31:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264756#M79507</guid>
      <dc:creator>fklink</dc:creator>
      <dc:date>2016-10-19T13:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264757#M79508</link>
      <description>&lt;P&gt;Try this which will cover all clients, basically everything between blank and blank:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=DESCRIPTION "\/\s(?&amp;lt;client&amp;gt;\S+)\s\/" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:34:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264757#M79508</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-19T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: rex, Extract information between two slashes and blanks</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264758#M79509</link>
      <description>&lt;P&gt;Here's an update based on your comment.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | rex field=DESCRIPTION "\/\s(?&amp;lt;client&amp;gt;[^\s]+)\s\/" | ...
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 19 Oct 2016 15:35:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-Extract-information-between-two-slashes-and-blanks/m-p/264758#M79509</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-10-19T15:35:29Z</dc:date>
    </item>
  </channel>
</rss>

