<?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: RegEx help in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469127#M140489</link>
    <description>&lt;P&gt;Hi @jerinvarghese,&lt;BR /&gt;
the new log is different from the previous,&lt;BR /&gt;
if it could be acceptable for you that the message is all the last part of the log, try tris:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d+\+\d\d:\d\d\s(?&amp;lt;device&amp;gt;[^ ]+)\s&amp;lt;\d\d&amp;gt;\s\s%(?&amp;lt;alarm&amp;gt;\w+-\w+)[^ ]*\s+(\(\d+\)\s+)*(?&amp;lt;message&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/k3uJVl/1"&gt;https://regex101.com/r/k3uJVl/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Tue, 07 Apr 2020 12:41:04 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-04-07T12:41:04Z</dc:date>
    <item>
      <title>RegEx help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469124#M140486</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;need help in getting a regex code for the below message.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;2020-04-04T15:08:01+00:00 usdaldc &amp;lt;44&amp;gt;  %WAAS-HTTPAO-4-131001: (843570) worker pool isn't healthy
2020-04-04T15:08:01+00:00 usdaldc &amp;lt;43&amp;gt;  %WAAS-HTTPAO-3-131003: (843509) AOSHELL worker thread (28814 0.0) stuck for 650000 msec: start 0x7feedd6aa880(/cisco/lib64/libaoshell.so+0x50880), callback 0x4a6140(/sw/unicorn/bin/http_ao64+0xa6140)
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;wanted data format: in tabular wrt to the above alarm&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Device  Alarm   Message
usdaldc WAAS-HTTPAO worker pool isn't healthy
usdaldc WAAS-HTTPAO AOSHELL worker thread
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;please help me with the code.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jun 2020 21:19:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469124#M140486</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-06-08T21:19:00Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469125#M140487</link>
      <description>&lt;P&gt;Hi @jerinvarghese,&lt;BR /&gt;
Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d+\+\d\d:\d\d\s+(?&amp;lt;device&amp;gt;[^ ]+)\s+\&amp;lt;\d+\&amp;gt;\s+\%(?&amp;lt;alarm&amp;gt;\w+-\w+)[^ ]*\s+\(\d+\)\s+(?&amp;lt;message&amp;gt;[^\(]+)((\s+\(\d+\s+)|$)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/zuJBnj/1"&gt;https://regex101.com/r/zuJBnj/1&lt;/A&gt; .&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2020 16:27:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469125#M140487</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-06T16:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469126#M140488</link>
      <description>&lt;P&gt;I still have a challenge,&lt;/P&gt;

&lt;P&gt;Yesterday i noticed some more other alarms comes in with a different pattern in messages. please help me.&lt;/P&gt;

&lt;P&gt;COde that you shared me with the logs.....&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; | rex field=_raw "\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d+\+\d\d:\d\d\s(?&amp;lt;device&amp;gt;[^ ]+)\s&amp;lt;\d\d&amp;gt;\s\s%(?&amp;lt;alarm&amp;gt;\w+-\w+)[^ ]*\s+\(\d+\)\s+(?&amp;lt;Log&amp;gt;[^\(]+)((\s+\(\d+\s+)|)"

2020-04-04T15:08:05+00:00 usdaldc &amp;lt;44&amp;gt;  %WAAS-HTTPAO-4-131001: (143581) worker pool isn't healthy
2020-04-04T15:08:05+00:00 usdaldc &amp;lt;43&amp;gt;  %WAAS-HTTPAO-3-131003: (143528) AOSHELL worker thread
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;New alarms that I notice and the regex that i created.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    |rex fiel=_raw "\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d+\+\d\d:\d\d\s(?&amp;lt;device&amp;gt;[^ ]+)\s&amp;lt;\d\d&amp;gt;\s\s%(?&amp;lt;alarm&amp;gt;\w+-\w+)[^ ]\d-\d{6}:\s(?&amp;lt;message&amp;gt;[^\(]+)"

2020-04-07T11:33:08+00:00 bempp &amp;lt;43&amp;gt;  %WAAS-NODEMGR-3-330105: Keepalive problem: Could not register nodemgr. [7]
2020-04-07T11:11:29+00:00 gbfaw &amp;lt;43&amp;gt;  %WAAS-NODEMGR-3-330105: Keepalive problem: Could not register nodemgr. [7]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;How can i merge both regex together.&lt;BR /&gt;
When am using together.. complete output is gong wrong..&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 12:17:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469126#M140488</guid>
      <dc:creator>jerinvarghese</dc:creator>
      <dc:date>2020-04-07T12:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: RegEx help</title>
      <link>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469127#M140489</link>
      <description>&lt;P&gt;Hi @jerinvarghese,&lt;BR /&gt;
the new log is different from the previous,&lt;BR /&gt;
if it could be acceptable for you that the message is all the last part of the log, try tris:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| rex "\d{4}-\d{2}-\d{2}T\d\d:\d\d:\d\d+\+\d\d:\d\d\s(?&amp;lt;device&amp;gt;[^ ]+)\s&amp;lt;\d\d&amp;gt;\s\s%(?&amp;lt;alarm&amp;gt;\w+-\w+)[^ ]*\s+(\(\d+\)\s+)*(?&amp;lt;message&amp;gt;.*)"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that you can test at &lt;A href="https://regex101.com/r/k3uJVl/1"&gt;https://regex101.com/r/k3uJVl/1&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 07 Apr 2020 12:41:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/RegEx-help/m-p/469127#M140489</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-04-07T12:41:04Z</dc:date>
    </item>
  </channel>
</rss>

