<?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 to split and result of max_match in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609719#M212007</link>
    <description>&lt;P&gt;That's great! It works for my case.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Aug 2022 22:45:34 GMT</pubDate>
    <dc:creator>haiweichen</dc:creator>
    <dc:date>2022-08-16T22:45:34Z</dc:date>
    <item>
      <title>How to split the result of max_match?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609625#M211979</link>
      <description>&lt;P&gt;The values I need are located in the field "msg". Each msg contains 3 records. I run this query and get the result as below,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index=summary | search msg="*blablabla*"
| rex max_match=3 "Type=(?&amp;lt;Type&amp;gt;.+?)\,"
| rex max_match=3 "Restaurant=(?&amp;lt;Restaurant&amp;gt;.+?)\,"
| rex max_match=3 "Date=(?&amp;lt;Date&amp;gt;.+?)\,"
| rex max_match=3 "status=(?&amp;lt;status&amp;gt;.+?)\,"
| table Date, Restaurant, Type, status&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Date Restaurant Type Status&lt;/P&gt;
&lt;TABLE width="759px"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="228.635px" height="91px"&gt;
&lt;DIV class=""&gt;2021-03-10&lt;/DIV&gt;
&lt;DIV class=""&gt;2022-01-04&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-05-01&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="387.448px" height="91px"&gt;
&lt;DIV class=""&gt;Domino&lt;/DIV&gt;
&lt;DIV class=""&gt;SOUTHERN RESTAURANTS TRUST&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="82.9062px" height="91px"&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;B&lt;/DIV&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="59.0104px" height="91px"&gt;
&lt;DIV class=""&gt;NEW&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="228.635px" height="69px"&gt;
&lt;DIV class=""&gt;2021-03-11&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-03-12&lt;/DIV&gt;
&lt;DIV class=""&gt;2022-02-05&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="387.448px" height="69px"&gt;
&lt;DIV class=""&gt;KFC&lt;/DIV&gt;
&lt;DIV class=""&gt;Domino&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="82.9062px" height="69px"&gt;
&lt;DIV class=""&gt;C&lt;/DIV&gt;
&lt;DIV class=""&gt;B&lt;/DIV&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="59.0104px" height="69px"&gt;
&lt;DIV class=""&gt;NEW&lt;/DIV&gt;
&lt;DIV class=""&gt;NEW&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="228.635px" height="69px"&gt;
&lt;DIV class=""&gt;2021-03-11&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-12-20&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-05-09&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="387.448px" height="69px"&gt;
&lt;DIV class=""&gt;Rooster&lt;/DIV&gt;
&lt;DIV class=""&gt;CYREN BAR&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="82.9062px" height="69px"&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;B&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="59.0104px" height="69px"&gt;
&lt;DIV class=""&gt;NEW&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="228.635px" height="69px"&gt;
&lt;DIV class=""&gt;2021-03-12&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-12-18&lt;/DIV&gt;
&lt;DIV class=""&gt;2021-06-22&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="387.448px" height="69px"&gt;
&lt;DIV class=""&gt;Helo&lt;/DIV&gt;
&lt;DIV class=""&gt;KFC&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="82.9062px" height="69px"&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;B&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="59.0104px" height="69px"&gt;
&lt;DIV class=""&gt;NEW&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;DIV class=""&gt;USED&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="228.635px" height="69px"&gt;
&lt;DIV class=""&gt;2021-03-12&lt;/DIV&gt;
&lt;DIV class=""&gt;2022-01-05&lt;/DIV&gt;
&lt;DIV class=""&gt;2022-01-14&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="387.448px" height="69px"&gt;
&lt;DIV class=""&gt;KFC&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;DIV class=""&gt;MCDONALD'S&lt;/DIV&gt;
&lt;/TD&gt;
&lt;TD width="82.9062px" height="69px"&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;A&lt;/DIV&gt;
&lt;DIV class=""&gt;B&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The question is, how can I make each record separated? I would like to use query "where restaurant=KFC" to look for specific restaurant.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 23:28:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609625#M211979</guid>
      <dc:creator>haiweichen</dc:creator>
      <dc:date>2022-08-16T23:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to split and result of max_match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609629#M211982</link>
      <description>&lt;LI-CODE lang="markup"&gt;index=summary | search msg="*blablabla*"
| rex max_match=3 "Type=(?&amp;lt;Type&amp;gt;.+?)\,"
| rex max_match=3 "Restaurant=(?&amp;lt;Restaurant&amp;gt;.+?)\,"
| rex max_match=3 "Date=(?&amp;lt;Date&amp;gt;.+?)\,"
| rex max_match=3 "status=(?&amp;lt;status&amp;gt;.+?)\,"
| eval row=mvzip(mvzip(Date,Restaurant,"|"),mvzip(Type,status,"|"),"|")
| mvexpand row
| eval Date=mvindex(split(row,"|"),0)
| eval Restaurant=mvindex(split(row,"|"),1)
| eval Type=mvindex(split(row,"|"),2)
| eval status=mvindex(split(row,"|"),3)
| table Date, Restaurant, Type, status&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 16 Aug 2022 10:32:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609629#M211982</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-08-16T10:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to split and result of max_match</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609719#M212007</link>
      <description>&lt;P&gt;That's great! It works for my case.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 22:45:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-split-the-result-of-max-match/m-p/609719#M212007</guid>
      <dc:creator>haiweichen</dc:creator>
      <dc:date>2022-08-16T22:45:34Z</dc:date>
    </item>
  </channel>
</rss>

