<?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 regex help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361282#M106705</link>
    <description>&lt;P&gt;I'm trying to configure a field extraction but am getting some strange incisions in the output. I'm running the below regex&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n]*:){4}\s+(?P[^|]+)&lt;/STRONG&gt;, but am seeing additional values. The output should be all uppercase, but I'm still getting some lowercase values after using the &lt;STRONG&gt;[A-Z]&lt;/STRONG&gt; in the regex.&lt;/P&gt;

&lt;P&gt;I've also tried to pin point the outputs using the below but still get the additions.&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n])\s state\s:\s(?P[^|]+)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;What I'm trying to configure is a field extraction of an uppercase word, but I need to ignore - ()[]{}|&lt;BR /&gt;
The output should be - &lt;STRONG&gt;ROUTE_START&lt;/STRONG&gt;&lt;BR /&gt;
But I'm also  seeing things like - I'm trying to configure a field extraction but am getting some strange incisions in the output. I'm running the below regex&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n]*:){4}\s+(?P[^|]+)&lt;/STRONG&gt;, but am seeing additional values. The oput put should be all uppercase, but I'm still getting some lowercase values after using the &lt;STRONG&gt;[A-Z]&lt;/STRONG&gt; in the regex.&lt;/P&gt;

&lt;P&gt;I've also tried to pin point the outputs using the below but still get the additions.&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n])\s state\s:\s(?P[^|]+)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;What I'm trying to configure is a field extraction of an uppercase word, but I need to ignore - &lt;STRONG&gt;()[]{}|&lt;/STRONG&gt;&lt;BR /&gt;
The out put should be - &lt;STRONG&gt;ROUTER&lt;/STRONG&gt;&lt;BR /&gt;
But I'm also seeing this like - &lt;STRONG&gt;[Order{&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Wed, 03 Jan 2018 15:42:34 GMT</pubDate>
    <dc:creator>alanhowlett</dc:creator>
    <dc:date>2018-01-03T15:42:34Z</dc:date>
    <item>
      <title>regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361282#M106705</link>
      <description>&lt;P&gt;I'm trying to configure a field extraction but am getting some strange incisions in the output. I'm running the below regex&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n]*:){4}\s+(?P[^|]+)&lt;/STRONG&gt;, but am seeing additional values. The output should be all uppercase, but I'm still getting some lowercase values after using the &lt;STRONG&gt;[A-Z]&lt;/STRONG&gt; in the regex.&lt;/P&gt;

&lt;P&gt;I've also tried to pin point the outputs using the below but still get the additions.&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n])\s state\s:\s(?P[^|]+)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;What I'm trying to configure is a field extraction of an uppercase word, but I need to ignore - ()[]{}|&lt;BR /&gt;
The output should be - &lt;STRONG&gt;ROUTE_START&lt;/STRONG&gt;&lt;BR /&gt;
But I'm also  seeing things like - I'm trying to configure a field extraction but am getting some strange incisions in the output. I'm running the below regex&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n]*:){4}\s+(?P[^|]+)&lt;/STRONG&gt;, but am seeing additional values. The oput put should be all uppercase, but I'm still getting some lowercase values after using the &lt;STRONG&gt;[A-Z]&lt;/STRONG&gt; in the regex.&lt;/P&gt;

&lt;P&gt;I've also tried to pin point the outputs using the below but still get the additions.&lt;BR /&gt;
&lt;STRONG&gt;^(?:[^:\n])\s state\s:\s(?P[^|]+)&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;What I'm trying to configure is a field extraction of an uppercase word, but I need to ignore - &lt;STRONG&gt;()[]{}|&lt;/STRONG&gt;&lt;BR /&gt;
The out put should be - &lt;STRONG&gt;ROUTER&lt;/STRONG&gt;&lt;BR /&gt;
But I'm also seeing this like - &lt;STRONG&gt;[Order{&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 15:42:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361282#M106705</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2018-01-03T15:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361283#M106706</link>
      <description>&lt;P&gt;Please provide some sample data that you are trying to validate with regex.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 16:36:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361283#M106706</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2018-01-03T16:36:05Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361284#M106707</link>
      <description>&lt;P&gt;I can't supply the actual log as it has confidential banking information, but this is one from test.&lt;/P&gt;

&lt;P&gt;Example of one of the messages:-&lt;/P&gt;

&lt;P&gt;08:45:16.674  [2018-01-03T08:45:16.674+0000] 3950682  INFO [p-quote-13-13-L-1] --- LoggerUtil: STATE ENGINE|AA32699|Quote21849812-0|Quote message arrived in state : RECORD_KEEPING_END|110|&lt;/P&gt;

&lt;P&gt;All I need to see is RECORD_KEEPING_END.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 17:24:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361284#M106707</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2020-09-29T17:24:08Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361285#M106708</link>
      <description>&lt;P&gt;Does it always available as 2nd last value? If yes, give this regex a try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; state\s:\s(?P&amp;lt;State&amp;gt;[A-Z_-]+)\|[^\|]+\|$
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="https://regex101.com/r/24sjMS/1"&gt;https://regex101.com/r/24sjMS/1&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 17:14:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361285#M106708</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2018-01-03T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361286#M106709</link>
      <description>&lt;P&gt;Thanks, that worked.&lt;/P&gt;

&lt;P&gt;I was looking for the regex site as well. Very useful.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:06:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361286#M106709</guid>
      <dc:creator>alanhowlett</dc:creator>
      <dc:date>2018-01-03T18:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361287#M106710</link>
      <description>&lt;P&gt;You can use &lt;BR /&gt;
&lt;A href="https://regex101.com"&gt;https://regex101.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is very good site to learn and test your regex.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361287#M106710</guid>
      <dc:creator>risgupta</dc:creator>
      <dc:date>2018-01-03T18:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361288#M106711</link>
      <description>&lt;P&gt;Try &lt;/P&gt;

&lt;P&gt;&lt;CODE&gt; state\s:\s(?P[A-Z_-]+)|[^|]+|$&lt;BR /&gt;
&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;and also you can use &lt;BR /&gt;
&lt;A href="https://regex101.com"&gt;https://regex101.com&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;This is very good site to learn and test your regex.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 18:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361288#M106711</guid>
      <dc:creator>risgupta</dc:creator>
      <dc:date>2018-01-03T18:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: regex help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361289#M106712</link>
      <description>&lt;P&gt;Another version that could work is:&lt;/P&gt;

&lt;P&gt;(?:arrived in state : )(?P\w+)&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2018 20:39:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/regex-help/m-p/361289#M106712</guid>
      <dc:creator>gmchenry</dc:creator>
      <dc:date>2018-01-03T20:39:21Z</dc:date>
    </item>
  </channel>
</rss>

