<?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 Rex multiple strings from field query in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376583#M170417</link>
    <description>&lt;P&gt;Morning all, &lt;/P&gt;

&lt;P&gt;I hope this is an easy one where i am just missing some login somewhere.&lt;/P&gt;

&lt;P&gt;I have a field called errors that houses data that looks like this:&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Fieldname *&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;
errors&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;String&lt;/STRONG&gt;&lt;BR /&gt;
56005:16;69002:1;56009:3958&lt;/P&gt;

&lt;P&gt;This is indicating that a single event can incur multiple errors and i need to pull all the error codes separately (codes are always numerical and always 5 digits long).  &lt;/P&gt;

&lt;P&gt;The colon and digits after indicate count volumes which are irrelevant and the delimiter is always a semi-colon.&lt;/P&gt;

&lt;P&gt;This seems quite an easy pull as the rex is simply "(\d\d\d\d\d):"&lt;/P&gt;

&lt;P&gt;However i can't get splunk to spit anything out at all (and ive tried lots of variations).&lt;/P&gt;

&lt;P&gt;Ideally i want to stats value the result by user so i end up with something like the below:&lt;/P&gt;

&lt;P&gt;user1                              56005&lt;BR /&gt;
                                        56002&lt;BR /&gt;
                                        69009&lt;BR /&gt;
User2                              66095&lt;BR /&gt;
                                         56077&lt;/P&gt;

&lt;P&gt;any ideas?:&lt;/P&gt;</description>
    <pubDate>Thu, 11 Jul 2019 07:19:48 GMT</pubDate>
    <dc:creator>stephenreece</dc:creator>
    <dc:date>2019-07-11T07:19:48Z</dc:date>
    <item>
      <title>Rex multiple strings from field query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376583#M170417</link>
      <description>&lt;P&gt;Morning all, &lt;/P&gt;

&lt;P&gt;I hope this is an easy one where i am just missing some login somewhere.&lt;/P&gt;

&lt;P&gt;I have a field called errors that houses data that looks like this:&lt;/P&gt;

&lt;P&gt;*&lt;EM&gt;Fieldname *&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;
errors&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;String&lt;/STRONG&gt;&lt;BR /&gt;
56005:16;69002:1;56009:3958&lt;/P&gt;

&lt;P&gt;This is indicating that a single event can incur multiple errors and i need to pull all the error codes separately (codes are always numerical and always 5 digits long).  &lt;/P&gt;

&lt;P&gt;The colon and digits after indicate count volumes which are irrelevant and the delimiter is always a semi-colon.&lt;/P&gt;

&lt;P&gt;This seems quite an easy pull as the rex is simply "(\d\d\d\d\d):"&lt;/P&gt;

&lt;P&gt;However i can't get splunk to spit anything out at all (and ive tried lots of variations).&lt;/P&gt;

&lt;P&gt;Ideally i want to stats value the result by user so i end up with something like the below:&lt;/P&gt;

&lt;P&gt;user1                              56005&lt;BR /&gt;
                                        56002&lt;BR /&gt;
                                        69009&lt;BR /&gt;
User2                              66095&lt;BR /&gt;
                                         56077&lt;/P&gt;

&lt;P&gt;any ideas?:&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:19:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376583#M170417</guid>
      <dc:creator>stephenreece</dc:creator>
      <dc:date>2019-07-11T07:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: Rex multiple strings from field query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376584#M170418</link>
      <description>&lt;P&gt;current search = | rex field=errors "(?(\d\d\d\d\d):)"&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:29:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376584#M170418</guid>
      <dc:creator>stephenreece</dc:creator>
      <dc:date>2019-07-11T07:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rex multiple strings from field query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376585#M170419</link>
      <description>&lt;P&gt;this will give back the first rex entry only, so i need a way to reproduce and collect an unlimited amount of REX groups.. (each string may contain from 1 to 1000 codes).&lt;/P&gt;</description>
      <pubDate>Thu, 11 Jul 2019 07:41:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376585#M170419</guid>
      <dc:creator>stephenreece</dc:creator>
      <dc:date>2019-07-11T07:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Rex multiple strings from field query</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376586#M170420</link>
      <description>&lt;P&gt;@stephenreece &lt;/P&gt;

&lt;P&gt;Try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|rex field=errors max_match=0 "(?&amp;lt;Errors&amp;gt;\d{5}):"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Jul 2019 12:11:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Rex-multiple-strings-from-field-query/m-p/376586#M170420</guid>
      <dc:creator>renjith_nair</dc:creator>
      <dc:date>2019-07-11T12:11:34Z</dc:date>
    </item>
  </channel>
</rss>

