<?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: How do i merge rex command to accommodate different set of events coming from same source ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/529561#M149574</link>
    <description>&lt;P&gt;Try this single rex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^(?&amp;lt;Server&amp;gt;[^\,]+)\,(?&amp;lt;Environment&amp;gt;[^\,]+)\,(?&amp;lt;Req&amp;gt;[^\,]+)\,(?&amp;lt;Package&amp;gt;[^\,]+)\,(?&amp;lt;Command&amp;gt;[^\,]*)(|\,(?&amp;lt;Deploy_Status&amp;gt;[\w\s]*))$"&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 16 Nov 2020 15:31:57 GMT</pubDate>
    <dc:creator>ITWhisperer</dc:creator>
    <dc:date>2020-11-16T15:31:57Z</dc:date>
    <item>
      <title>How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/529548#M149566</link>
      <description>&lt;P&gt;I have below 3 different set of events coming from same source. So i have extracted the field using rex command for each type of event. This is working fine when i use each 'rex' command separately. But when i combine all 3 rex commands, it's giving me 0 results. Is there any way to fix this ?&lt;/P&gt;&lt;P&gt;host01u,UAT,2300970,app.rmkb.hk-122,,Deployment Success&lt;BR /&gt;host01u,UAT,2319971,app.bww.label-34,HOLD,Deployment Success&lt;BR /&gt;host02u,UAT,2319237,app.static-540,No_File&lt;/P&gt;&lt;P&gt;My Query:&lt;BR /&gt;index=foo source=status.list&lt;BR /&gt;| rex field=_raw "(?&amp;lt;Server&amp;gt;\w+.*)\,(?&amp;lt;Environment&amp;gt;\w+.*)\,(?&amp;lt;Req&amp;gt;\d+.*)\,(?&amp;lt;Package&amp;gt;\w+.*)\,(?&amp;lt;Command&amp;gt;)\,(?&amp;lt;Deploy_Status&amp;gt;\w+.*)"&lt;BR /&gt;| rex field=_raw "(?&amp;lt;Server&amp;gt;\w+.*)\,(?&amp;lt;Environment&amp;gt;\w+.*)\,(?&amp;lt;Req&amp;gt;\d+.*)\,(?&amp;lt;Package&amp;gt;\w+.*)\,(?&amp;lt;Command&amp;gt;\w+.*)\,(?&amp;lt;Deploy_Status&amp;gt;\w+.*)"&lt;BR /&gt;| rex field=_raw "(?&amp;lt;Server&amp;gt;\w+.*)\,(?&amp;lt;Environment&amp;gt;\w+.*)\,(?&amp;lt;Req&amp;gt;\d+.*)\,(?&amp;lt;Package&amp;gt;\w+.*)\,(?&amp;lt;Deploy_Status&amp;gt;\w+.*)"&lt;BR /&gt;| stats latest(*) as * by Server,Environment,Package&lt;BR /&gt;| table Server,Environment,Req,Package,Deploy_Status&lt;BR /&gt;| dedup Server,Environment,Req,Package,Deploy_Status&lt;BR /&gt;| stats count by Deploy_Status&lt;/P&gt;</description>
      <pubDate>Mon, 16 Nov 2020 14:39:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/529548#M149566</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-11-16T14:39:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/529561#M149574</link>
      <description>&lt;P&gt;Try this single rex&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "^(?&amp;lt;Server&amp;gt;[^\,]+)\,(?&amp;lt;Environment&amp;gt;[^\,]+)\,(?&amp;lt;Req&amp;gt;[^\,]+)\,(?&amp;lt;Package&amp;gt;[^\,]+)\,(?&amp;lt;Command&amp;gt;[^\,]*)(|\,(?&amp;lt;Deploy_Status&amp;gt;[\w\s]*))$"&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 16 Nov 2020 15:31:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/529561#M149574</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-16T15:31:57Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531277#M150075</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/225168"&gt;@ITWhisperer&lt;/a&gt;&amp;nbsp;Thanks for your reply. This is working fine when i get all 3 types of events. But there are times in which i will get only below type of event. In this case, the given rex command is not working. Can you advise ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host02u,UAT,2319237,app.static-540,No_File&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 03:19:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531277#M150075</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-11-30T03:19:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531291#M150083</link>
      <description>&lt;P&gt;The expression works with the string when used in regex101.com. Please can you post your query as you have it at the moment?&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 08:31:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531291#M150083</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-11-30T08:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531811#M150221</link>
      <description>&lt;P&gt;Below is my current query.&lt;/P&gt;&lt;P&gt;index=foo source=status.list&lt;BR /&gt;| rex "^(?&amp;lt;Server&amp;gt;[^\,]+)\,(?&amp;lt;Environment&amp;gt;[^\,]+)\,(?&amp;lt;Req&amp;gt;[^\,]*)\,(?&amp;lt;Package&amp;gt;[^\,]+)(|\,(?&amp;lt;Command&amp;gt;[^\,]*))(|\,(?&amp;lt;Deploy_Status&amp;gt;[\w\s]*))$"&lt;BR /&gt;| stats latest(*) as * by Server,Environment,Package&lt;BR /&gt;| table Server,Environment,Req,Package,Deploy_Status&lt;BR /&gt;| dedup Server,Environment,Req,Package,Deploy_Status&lt;BR /&gt;| stats count by Deploy_Status&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 05:22:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531811#M150221</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-12-03T05:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531837#M150230</link>
      <description>&lt;P&gt;You put in some extra characters which weren't in my suggestion&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;| rex "^(?&amp;lt;Server&amp;gt;[^\,]+)\,(?&amp;lt;Environment&amp;gt;[^\,]+)\,(?&amp;lt;Req&amp;gt;[^\,]*)\,(?&amp;lt;Package&amp;gt;[^\,]+)&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;(|&lt;/FONT&gt;&lt;/STRONG&gt;\,(?&amp;lt;Command&amp;gt;[^\,]*)&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;(|\,(?&amp;lt;Deploy_Status&amp;gt;[\w\s]*))$"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 09:41:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531837#M150230</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2020-12-03T09:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do i merge rex command to accommodate different set of events coming from same source ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531951#M150272</link>
      <description>&lt;P&gt;Your suggestion didn't help me to capture below type of events. So i have done those changes.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;host02u,UAT,2319237,app.static-540,No_File&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2020 02:20:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-i-merge-rex-command-to-accommodate-different-set-of/m-p/531951#M150272</guid>
      <dc:creator>georgear7</dc:creator>
      <dc:date>2020-12-04T02:20:12Z</dc:date>
    </item>
  </channel>
</rss>

