<?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: Multivalue field which contains the string &amp;quot;data:&amp;quot; cause the UI to display all values as a single line in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574963#M200354</link>
    <description>&lt;P&gt;&lt;SPAN&gt;bowesmana,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Great work there. I did not think this was a new bug. I just tested this on 8.1.2 confirm it was not affected.&lt;/P&gt;&lt;P&gt;This bug seem to have been introduced 8.2.1&lt;/P&gt;</description>
    <pubDate>Mon, 15 Nov 2021 21:20:56 GMT</pubDate>
    <dc:creator>johnhuang</dc:creator>
    <dc:date>2021-11-15T21:20:56Z</dc:date>
    <item>
      <title>Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574649#M200257</link>
      <description>&lt;P&gt;Took some trial and error to figure out why some multivalue fields were being displayed as a single line.&lt;/P&gt;&lt;P&gt;If the string "data:" appears in any values in multivalue field, for examples using stats values(x) AS x, the multivalue field will display as a single line.&lt;/P&gt;&lt;P&gt;Are there any way to escape this behavior?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval category="fruits" | eval name="apple,orange,strawberry,apricot,blueberry,mango" | eval name=SPLIT(name, ",")
| mvexpand name
| eval desc=name." is delicious!"
| eval desc_data="data: ".name."is delicious!"
| table category name desc desc_data
| stats values(name) AS name values(desc) AS desc values(desc_data) AS desc_data by category&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnhua_0-1636657019318.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16830i86B396417DDDA602/image-size/large?v=v2&amp;amp;px=999" role="button" title="johnhua_0-1636657019318.png" alt="johnhua_0-1636657019318.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnhua_0-1636657674103.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16832i1C4180E0FBFF2081/image-size/large?v=v2&amp;amp;px=999" role="button" title="johnhua_0-1636657674103.png" alt="johnhua_0-1636657674103.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;UPDATE: Thanks everyone for testing and help identify that this issue does not affect v8.1.2.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It appears to affect v8.2+&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:17:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574649#M200257</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-11-15T21:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574807#M200300</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/190794"&gt;@johnhuang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I have just copied the same query given by you, but the results are multivalue only. Unsure why you got in a single row. Can you try again?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bhargavi_0-1636800785295.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16845i3A2280D97F755686/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bhargavi_0-1636800785295.png" alt="bhargavi_0-1636800785295.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Nov 2021 10:53:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574807#M200300</guid>
      <dc:creator>bhargavi</dc:creator>
      <dc:date>2021-11-13T10:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574855#M200326</link>
      <description>&lt;P&gt;This is an incredible find! &amp;nbsp;I can confirm that, in a plain installation, multi-valued field with any value matching the regex "data\s*:" will be displayed in single line, as if there is a compulsory mvzip(). &amp;nbsp;Before I post additional diagnosis, let me demonstrate an idiotic workaround: add the following to the end&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval desc_data = mvjoin(desc_data, "
")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: the newline must be entered as literal (Ctrl + "Enter" in search window), not &amp;nbsp;as "\n", for example. &amp;nbsp;This should get the display as you intended, even though desc_data becomes single-valued after this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="data-spell.png" style="width: 999px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16854iF80407D988F63EA1/image-size/large?v=v2&amp;amp;px=999" role="button" title="data-spell.png" alt="data-spell.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now to diagnosis. &amp;nbsp;Like yourself, I made lots of tests. &amp;nbsp;Stripped to the bare bones, the "data: spell", or compulsory mvzip syndrome, can be demonstrated with the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults | eval category="fruits" | eval name="apple;orange;strawberry;apricot;my data : blueberry;mango" | eval name=SPLIT(name, ";")
| table category name&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;TABLE width="514px"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="74.875px" height="47px"&gt;category&lt;/TD&gt;&lt;TD width="438.125px" height="47px"&gt;name&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="74.875px" height="25px"&gt;fruits&lt;/TD&gt;&lt;TD width="438.125px" height="25px"&gt;apple,orange,strawberry,apricot,my data : blueberry,mango&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Only one of the values contains the pattern "data\s*:". &amp;nbsp;The space character can be anything, even a newline.&lt;/LI&gt;&lt;LI&gt;The spell-bound pattern can be prefixed by other patterns; in this demonstration, "my ".&lt;/LI&gt;&lt;LI&gt;In the above example, field "category" is just an accessary and not a necessary part of the demonstration.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I cannot find anything explicit in etc/system/defaults that can explain this spell even though "data:" appears in several entries &amp;nbsp;in conf.conf. &amp;nbsp;I would consider this a bug as it can really catch many by surprise.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 00:42:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574855#M200326</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-11-15T00:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574858#M200327</link>
      <description>&lt;P&gt;I can confirm. Simple&lt;/P&gt;&lt;PRE&gt;| makeresults count=10&lt;BR /&gt;| streamstats count&lt;BR /&gt;| eval count="data: ".count&lt;BR /&gt;| stats values(count)&lt;/PRE&gt;&lt;P&gt;Produces results in a single line, separated by commas.&lt;/P&gt;&lt;P&gt;Splink 8.2.2.1&lt;/P&gt;</description>
      <pubDate>Sun, 14 Nov 2021 22:33:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574858#M200327</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2021-11-14T22:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574960#M200351</link>
      <description>&lt;P&gt;Splunk 8.0.1 standalone installation does not behave as you describe, it displays desc_data as MV on multiple lines, same as desc field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 20:59:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574960#M200351</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-11-15T20:59:58Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574961#M200352</link>
      <description>&lt;P&gt;I have tried this on Splunk 7.3.9, 8.0.1 and two instances of 8.2.1 and it exhibits the behaviour on 8.2.1, but not on the other two versions.&lt;/P&gt;&lt;P&gt;In Splunk 8.2.1 even though it displays the data on a single line, the data is still MV, i.e. mvindex and mvfind functions still work as though it is an MV field, i.e.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval c=mvcount(name)
| eval f=mvindex(name,2)
| eval i=mvfind(name, "my data : blueberry")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;return 6, 'strawberry" and 4 respectively.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:14:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574961#M200352</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2021-11-15T21:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574962#M200353</link>
      <description>&lt;P&gt;Very creative of you Yuanliu.&lt;/P&gt;&lt;P&gt;I took your solution and split it back into a multivalue field which worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| eval desc_data=split(mvjoin(desc_data, ";"), ";")
| eval mv_count_desc_data=MVCOUNT(desc_data)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:16:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574962#M200353</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-11-15T21:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574963#M200354</link>
      <description>&lt;P&gt;&lt;SPAN&gt;bowesmana,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Great work there. I did not think this was a new bug. I just tested this on 8.1.2 confirm it was not affected.&lt;/P&gt;&lt;P&gt;This bug seem to have been introduced 8.2.1&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:20:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574963#M200354</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-11-15T21:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574964#M200355</link>
      <description>&lt;P&gt;Looks like a 8.2.x + bug.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Nov 2021 21:21:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574964#M200355</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-11-15T21:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574973#M200360</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;| eval desc_data=split(mvjoin(desc_data, ";"), ";")
| eval mv_count_desc_data=MVCOUNT(desc_data)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Unfortunately, join then split doesn't help me with display. &amp;nbsp; Tested in 8.2.0 and 8.2.2. &amp;nbsp;Gives me the same display as if no change is made&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="join-split.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16867i4D2B2BF6AED2BB52/image-size/medium?v=v2&amp;amp;px=400" role="button" title="join-split.png" alt="join-split.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 02:36:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574973#M200360</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2021-11-16T02:36:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multivalue field which contains the string "data:" cause the UI to display all values as a single line</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574984#M200364</link>
      <description>&lt;P&gt;You're right, my bad -- I inadvertently tested this on 8.1.x.&lt;/P&gt;&lt;P&gt;Some other interesting observations:&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can insert newlines at the end of each values and the UI will respect it (Wrap Results needs to be turned on).&lt;/P&gt;&lt;P&gt;| rex field=desc_data mode=sed "s/$/\n/g"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="johnhua_0-1637036147241.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/16868iE2239A88F342D5F3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="johnhua_0-1637036147241.png" alt="johnhua_0-1637036147241.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can't, however, try to interact with the comma. It seems like the comma only exists in the UI. For example replacing comma with newline doesn't work.&lt;/P&gt;&lt;P&gt;| rex field=desc_data mode=sed "s/\,/\n/g"&lt;BR /&gt;&lt;BR /&gt;Trying another character like "!" works:&lt;/P&gt;&lt;P&gt;| rex field=desc_data mode=sed "s/\!/\\0\n/g"&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 04:17:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Multivalue-field-which-contains-the-string-quot-data-quot-cause/m-p/574984#M200364</guid>
      <dc:creator>johnhuang</dc:creator>
      <dc:date>2021-11-16T04:17:53Z</dc:date>
    </item>
  </channel>
</rss>

