<?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 for source target in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559684#M159002</link>
    <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;here is my log:&lt;/P&gt;&lt;P&gt;2020-01-19 13:20:15,093 INFO ABC.InEE-Product-00000 [MyProcessor] Detail Packet: M[000] T[111] P[0A0000] AT[00] R[0000] TA[ABC.OutEE-Product] Status[OUT-LOGOUT,EXIT]&lt;/P&gt;&lt;P&gt;2020-01-19 13:36:08,185 INFO ABC.InEP-Product-00000 [MyProcessor] Detail Packet Lost: M[000] T[111]&amp;nbsp;SA[ABC.InEE-Product]&amp;nbsp;&amp;nbsp;R[0000]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the rex for&lt;/P&gt;&lt;P&gt;SOURCE=ABC.InEE-Product&lt;/P&gt;&lt;P&gt;TARGET=ABC.OutEE-Product&lt;/P&gt;&lt;P&gt;Model=000&lt;/P&gt;&lt;P&gt;Tip=111&lt;/P&gt;&lt;P&gt;POD=0A0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jul 2021 19:57:24 GMT</pubDate>
    <dc:creator>indeed_2000</dc:creator>
    <dc:date>2021-07-15T19:57:24Z</dc:date>
    <item>
      <title>rex for source target</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559684#M159002</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;here is my log:&lt;/P&gt;&lt;P&gt;2020-01-19 13:20:15,093 INFO ABC.InEE-Product-00000 [MyProcessor] Detail Packet: M[000] T[111] P[0A0000] AT[00] R[0000] TA[ABC.OutEE-Product] Status[OUT-LOGOUT,EXIT]&lt;/P&gt;&lt;P&gt;2020-01-19 13:36:08,185 INFO ABC.InEP-Product-00000 [MyProcessor] Detail Packet Lost: M[000] T[111]&amp;nbsp;SA[ABC.InEE-Product]&amp;nbsp;&amp;nbsp;R[0000]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is the rex for&lt;/P&gt;&lt;P&gt;SOURCE=ABC.InEE-Product&lt;/P&gt;&lt;P&gt;TARGET=ABC.OutEE-Product&lt;/P&gt;&lt;P&gt;Model=000&lt;/P&gt;&lt;P&gt;Tip=111&lt;/P&gt;&lt;P&gt;POD=0A0000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 19:57:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559684#M159002</guid>
      <dc:creator>indeed_2000</dc:creator>
      <dc:date>2021-07-15T19:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: rex for source target</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559688#M159005</link>
      <description>&lt;P&gt;Have you tried using erex to build the regex for you? It's very handy.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Erex" target="_blank"&gt;https://docs.splunk.com/Documentation/Splunk/8.2.1/SearchReference/Erex&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 20:11:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559688#M159005</guid>
      <dc:creator>codebuilder</dc:creator>
      <dc:date>2021-07-15T20:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: rex for source target</title>
      <link>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559722#M159019</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/217339"&gt;@indeed_2000&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You need two different rex as second event is little bit different from first you don't have every field there, see if you can merge them together.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex "\d+:\d+:\d+\,\d+\s+\w+\s+(?&amp;lt;SOURCE&amp;gt;\S+).+M\[(?&amp;lt;MODEL&amp;gt;[^\]]+)\]\s+T\[(?&amp;lt;TIP&amp;gt;[^\]]+)\]\s+P\[(?&amp;lt;POD&amp;gt;[^\]]+).+?TA\[(?&amp;lt;TARGET&amp;gt;[^\]]+)\]" 
| rex "\d+:\d+:\d+\,\d+\s+\w+\s+(?&amp;lt;SOURCE&amp;gt;\S+).+M\[(?&amp;lt;MODEL&amp;gt;[^\]]+)\]\s+T\[(?&amp;lt;TIP&amp;gt;[^\]]+)\]\s+SA\[(?&amp;lt;SOURCE&amp;gt;[^\]]+)"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;POD , TARGET missing in your second event.&lt;/P&gt;&lt;P&gt;---&lt;/P&gt;&lt;P&gt;An upvote would be appreciated and Accept solution if this reply helps!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Jul 2021 01:12:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/rex-for-source-target/m-p/559722#M159019</guid>
      <dc:creator>venkatasri</dc:creator>
      <dc:date>2021-07-16T01:12:09Z</dc:date>
    </item>
  </channel>
</rss>

