<?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 could I make the new field less rows? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585294#M203897</link>
    <description>&lt;P&gt;Hi, Thanks so much for your help!&lt;/P&gt;&lt;P&gt;But I don't know why there's some value missing from the table.&lt;/P&gt;&lt;P&gt;Here's the whole search command:&lt;/P&gt;&lt;P&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"&lt;BR /&gt;| rex max_match=0 "_(?&amp;lt;port_status&amp;gt;\d{4}\=\w+)"&lt;BR /&gt;| streamstats count as row&lt;BR /&gt;| mvexpand port_status&lt;BR /&gt;| eval port_true=if(mvindex(split(port_status,"="),1)="true",mvindex(split(port_status,"="),0),null())&lt;BR /&gt;| eval port_false=if(mvindex(split(port_status,"="),1)="false",mvindex(split(port_status,"="),0),null())&lt;BR /&gt;| stats values(port_true) as port_true values(port_false) as port_false values(_raw) as _raw by row&lt;BR /&gt;| eval port_true=mvjoin(port_true,",")&lt;BR /&gt;| eval port_false=mvjoin(port_false,",")&lt;BR /&gt;|table Time port_true port_false&lt;/P&gt;&lt;P&gt;Here's the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_0-1644998469373.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17994iC2908CBE8D09C293/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jennifer_0-1644998469373.png" alt="Jennifer_0-1644998469373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Feb 2022 08:08:17 GMT</pubDate>
    <dc:creator>Jennifer</dc:creator>
    <dc:date>2022-02-16T08:08:17Z</dc:date>
    <item>
      <title>How can I make the new field have less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585104#M203818</link>
      <description>&lt;P&gt;Here is the original log file:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Host&lt;/SPAN&gt; &lt;SPAN class=""&gt;availabilty&lt;/SPAN&gt; &lt;SPAN class=""&gt;Hashmap&lt;/SPAN&gt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;is&lt;/SPAN&gt;&lt;SPAN&gt; {&lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_13_8225=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_7_82FB=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_2_82F6=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_16_8228=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_1_82F5=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_11_8223=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_14_8226=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_4_82F8=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_12_8224=false&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_3_82F7=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_15_8227=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;HKL20167984SIT&lt;/SPAN&gt;_8_8220=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_9_8221=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_6_82FA=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_5_82F9=true&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN class=""&gt;HKL20167984SIT_10_8222=true&lt;/SPAN&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Here's my search command&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex max_match=0 "_(?&amp;lt;port status&amp;gt;\d{4}\=\w+)"&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_0-1644911355837.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17978i38596BE7C299A2CA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jennifer_0-1644911355837.png" alt="Jennifer_0-1644911355837.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I hope to get the result like below:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="50.516129032258064%"&gt;Time&lt;/TD&gt;
&lt;TD width="49.483870967741936%"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="50.516129032258064%"&gt;
&lt;P&gt;&lt;SPAN class=""&gt;2022-02-15 07:02&lt;/SPAN&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="49.483870967741936%"&gt;
&lt;DIV class=""&gt;8225=false,&amp;nbsp;8228=false,&amp;nbsp;8223=false,&amp;nbsp;8226=false,&amp;nbsp;8224=false,&lt;/DIV&gt;
&lt;DIV class=""&gt;8220=false,&amp;nbsp;8227=false,&amp;nbsp;8221=false,&amp;nbsp;8222=false,&amp;nbsp;8225=false,&lt;/DIV&gt;
&lt;DIV class=""&gt;8228=false, 8223=false, 8226=false, 8224=false, 8220=false,&lt;/DIV&gt;
&lt;DIV class=""&gt;8227=false, 8221=false&lt;/DIV&gt;
&lt;DIV class=""&gt;8222=false&lt;/DIV&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 16:41:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585104#M203818</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-15T16:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585107#M203821</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Is it that if any of them is false, you want them all to be false?&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval status=coalesce(mvmap(port_status,if(mvindex(split(port_status,"="),1)="false","false",null())),"true")
| eval port_status=mvmap(port_status,mvindex(split(port_status,"="),0)."=".status)&lt;/LI-CODE&gt;&lt;P&gt;Or that you simply want to join them into a single string&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval port_status=mvjoin(port_status,",")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 08:14:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585107#M203821</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-15T08:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585122#M203828</link>
      <description>&lt;P&gt;Thanks a lot for your help!&lt;/P&gt;&lt;P&gt;The data of original log doesn't match the column below!&lt;/P&gt;&lt;P&gt;I just need to join those values but I hope to make the two different results more distinct.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is :&lt;/P&gt;&lt;P&gt;First, make the "false" text red and make the "true" text green&amp;nbsp;&lt;/P&gt;&lt;P&gt;One is like that&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Time&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;portstatus=true&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;portstatus=false&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&lt;SPAN&gt;8260=&lt;FONT color="#99CC00"&gt;true&lt;/FONT&gt;,8296=&lt;FONT color="#99CC00"&gt;true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;P&gt;&lt;SPAN&gt;8274=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8277=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8272=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8279=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8261=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8263=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8266=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8275=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8269=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8276=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8273=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8264=&lt;FONT color="#FF0000"&gt;false&lt;FONT color="#000000"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;8267&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8297=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8295=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8262=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8265=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8268=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8278=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;,8298=&lt;FONT color="#FF0000"&gt;false&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&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 other is like this:&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;Time&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;portstatus=true&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="24px"&gt;&lt;FONT color="#000000"&gt;portstatus=false&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%" height="39px"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="39px"&gt;&lt;FONT color="#99CC00"&gt;&lt;SPAN&gt;8260,8296&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="33.333333333333336%" height="39px"&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;SPAN&gt;8274,8277,8272,8279,8261,8263,8266,8275,8269,8276,8273,8264,8267&lt;/SPAN&gt;&lt;SPAN&gt;,8297,8295,8262,8265,8268,8278,8298&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:24:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585122#M203828</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-15T09:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585124#M203830</link>
      <description>&lt;LI-CODE lang="markup"&gt;| eval port_true=mvmap(port_status,if(mvindex(split(port_status,"="),1)="true",mvindex(split(port_status,"="),0),null()))
| eval port_false=mvmap(port_status,if(mvindex(split(port_status,"="),1)="false",mvindex(split(port_status,"="),0),null()))&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:33:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585124#M203830</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-15T09:33:11Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585136#M203835</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;The 'mvmap' function is unsupported or undefined.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_0-1644918739465.png" style="width: 702px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17984i14671652C205CF0A/image-dimensions/702x206?v=v2" width="702" height="206" role="button" title="Jennifer_0-1644918739465.png" alt="Jennifer_0-1644918739465.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 09:52:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585136#M203835</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-15T09:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585163#M203846</link>
      <description>&lt;P&gt;You should probably upgrade your version of splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:49:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585163#M203846</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-15T12:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585165#M203847</link>
      <description>&lt;P&gt;Here is a version without mvmap&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| streamstats count as row 
| mvexpand port_status
| eval port_true=if(mvindex(split(port_status,"="),1)="true",mvindex(split(port_status,"="),0),null())
| eval port_false=if(mvindex(split(port_status,"="),1)="false",mvindex(split(port_status,"="),0),null())
| stats values(port_true) as port_true values(port_false) as port_false values(_raw) as _raw by row
| eval port_true=mvjoin(port_true,",")
| eval port_false=mvjoin(port_false,",")&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 12:57:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585165#M203847</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-15T12:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585189#M203863</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex max_match=0 "_(?&amp;lt;port_status_true&amp;gt;\d{4}\=true)"
| rex max_match=0 "_(?&amp;lt;port_status_false&amp;gt;\d{4}\=false)"&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 15 Feb 2022 15:43:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585189#M203863</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2022-02-15T15:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585294#M203897</link>
      <description>&lt;P&gt;Hi, Thanks so much for your help!&lt;/P&gt;&lt;P&gt;But I don't know why there's some value missing from the table.&lt;/P&gt;&lt;P&gt;Here's the whole search command:&lt;/P&gt;&lt;P&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"&lt;BR /&gt;| rex max_match=0 "_(?&amp;lt;port_status&amp;gt;\d{4}\=\w+)"&lt;BR /&gt;| streamstats count as row&lt;BR /&gt;| mvexpand port_status&lt;BR /&gt;| eval port_true=if(mvindex(split(port_status,"="),1)="true",mvindex(split(port_status,"="),0),null())&lt;BR /&gt;| eval port_false=if(mvindex(split(port_status,"="),1)="false",mvindex(split(port_status,"="),0),null())&lt;BR /&gt;| stats values(port_true) as port_true values(port_false) as port_false values(_raw) as _raw by row&lt;BR /&gt;| eval port_true=mvjoin(port_true,",")&lt;BR /&gt;| eval port_false=mvjoin(port_false,",")&lt;BR /&gt;|table Time port_true port_false&lt;/P&gt;&lt;P&gt;Here's the table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_0-1644998469373.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17994iC2908CBE8D09C293/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jennifer_0-1644998469373.png" alt="Jennifer_0-1644998469373.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 08:08:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585294#M203897</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-16T08:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585299#M203900</link>
      <description>&lt;P&gt;Incorporating&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/15147"&gt;@somesoni2&lt;/a&gt;&amp;nbsp;solution, try it this way&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex max_match=0 "_(?&amp;lt;port_true&amp;gt;\d{4}\=true)"
| rex max_match=0 "_(?&amp;lt;port_false&amp;gt;\d{4}\=false)"
| eval port_true=mvjoin(port_true,",")
| eval port_false=mvjoin(port_false,",")
| table Time port_true port_false&lt;/LI-CODE&gt;&lt;P&gt;If this still doesn't work, can you share the events with missing port numbers?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 08:39:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585299#M203900</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T08:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585310#M203903</link>
      <description>&lt;P&gt;Here's my updated search command:&lt;/P&gt;&lt;P&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"&lt;BR /&gt;| rex "Host availabilty Hashmap is \{(?&amp;lt;payload&amp;gt;[^}]*)\}"&lt;BR /&gt;| rex max_match=0 field=payload "_(?&amp;lt;portstatus&amp;gt;\d{4}\=\w+)"&lt;BR /&gt;| mvexpand portstatus&lt;BR /&gt;| rex max_match=0 "_(?&amp;lt;port_true&amp;gt;\d{4}\=true)"&lt;BR /&gt;| rex max_match=0 "_(?&amp;lt;port_false&amp;gt;\d{4}\=false)"&lt;BR /&gt;| eval port_true=mvjoin(port_true,",")&lt;BR /&gt;| eval port_false=mvjoin(port_false,",")&lt;BR /&gt;| table Time port_true port_false&lt;/P&gt;&lt;P&gt;Here's the result:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_1-1645003729767.png" style="width: 589px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17996iA4E39902098FA30E/image-dimensions/589x134?v=v2" width="589" height="134" role="button" title="Jennifer_1-1645003729767.png" alt="Jennifer_1-1645003729767.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;How could I only keep the port value in the column.&amp;nbsp;&lt;/P&gt;&lt;TABLE border="1" width="100%"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;Time&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;Port_true&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;port_false&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;8299, 8260,8296,8274,8277,8272,8279,8261,8263,8266,8275,8269,8276,8273,8264,8267&lt;/TD&gt;&lt;TD width="33.333333333333336%"&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:34:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585310#M203903</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-16T09:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585314#M203906</link>
      <description>&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex "Host availabilty Hashmap is \{(?&amp;lt;payload&amp;gt;[^}]*)\}"
| rex max_match=0 field=payload "_(?&amp;lt;port_true&amp;gt;\d{4}\=true)"
| rex max_match=0 field=payload "_(?&amp;lt;port_false&amp;gt;\d{4}\=false)"
| eval port_true=mvjoin(port_true,",")
| eval port_false=mvjoin(port_false,",")
| table _time port_true port_false&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 09:59:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585314#M203906</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T09:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585316#M203907</link>
      <description>&lt;P&gt;Hi, IT Whisperer!&lt;/P&gt;&lt;P&gt;I don't think those commands work well!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jennifer_0-1645006003209.png" style="width: 548px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/17997i1008083AD03D6B69/image-dimensions/548x199?v=v2" width="548" height="199" role="button" title="Jennifer_0-1645006003209.png" alt="Jennifer_0-1645006003209.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:07:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585316#M203907</guid>
      <dc:creator>Jennifer</dc:creator>
      <dc:date>2022-02-16T10:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585318#M203908</link>
      <description>&lt;P&gt;typo in availability!&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex "Host availability Hashmap is \{(?&amp;lt;payload&amp;gt;[^}]*)\}"
| rex max_match=0 field=payload "_(?&amp;lt;port_true&amp;gt;\d{4}\=true)"
| rex max_match=0 field=payload "_(?&amp;lt;port_false&amp;gt;\d{4}\=false)"
| eval port_true=mvjoin(port_true,",")
| eval port_false=mvjoin(port_false,",")
| table _time port_true port_false&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:20:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585318#M203908</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T10:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585322#M203910</link>
      <description>&lt;P&gt;To get rid of those =true and =false, you'd use&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| rex max_match=0 field=payload "_(?&amp;lt;port_true&amp;gt;[\dA-F]{4})=true"
| rex max_match=0 field=payload "_(?&amp;lt;port_false&amp;gt;[\dA-F]{4})=false"
| eval port_true=mvjoin(port_true,", ")
| eval port_false=mvjoin(port_false,", ")
| table _time port_true port_false&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The original sample data suggests that port is expressed in hexadecimal, so I'm including those:&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;_time&lt;/TD&gt;&lt;TD&gt;port_true&lt;/TD&gt;&lt;TD&gt;port_false&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;2022-02-16 02:46:17&lt;/TD&gt;&lt;TD&gt;8225, 82FB, 82F6, 8228, 82F5, 8223, 8226, 82F8, 82F7, 8227, 8220, 8221, 82FA, 82F9, 8222&lt;/TD&gt;&lt;TD&gt;8224&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 16 Feb 2022 10:51:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585322#M203910</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2022-02-16T10:51:46Z</dc:date>
    </item>
    <item>
      <title>Re: How could I make the new field less rows?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585323#M203911</link>
      <description>&lt;P&gt;Good spot&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp; on the placement of the closing bracket and hex in the ports. So the full search would be&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;index="hkcivr" source="/appvol/wlp/DIVR01HK-AS01/applogs/wrapup.log*"
| rex "Host availability Hashmap is \{(?&amp;lt;payload&amp;gt;[^}]*)\}"
| rex max_match=0 field=payload "_(?&amp;lt;port_true&amp;gt;[\dA-F]{4})\=true"
| rex max_match=0 field=payload "_(?&amp;lt;port_false&amp;gt;[\dA-F]{4})\=false"
| eval port_true=mvjoin(port_true,",")
| eval port_false=mvjoin(port_false,",")
| table _time port_true port_false&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 16 Feb 2022 11:10:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-can-I-make-the-new-field-have-less-rows/m-p/585323#M203911</guid>
      <dc:creator>ITWhisperer</dc:creator>
      <dc:date>2022-02-16T11:10:51Z</dc:date>
    </item>
  </channel>
</rss>

