<?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 display string values containing numbers as strings? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653222#M53687</link>
    <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;for the reply..&lt;/P&gt;&lt;P&gt;Probably my question was not precise enough. The data is ok and the sample produces exactly what I have, but &lt;STRONG&gt;Dashboard Studio&lt;/STRONG&gt; seems to have a problem.&lt;/P&gt;&lt;P&gt;Using the data from above in a table &lt;STRONG&gt;widget&lt;/STRONG&gt; as data source, I can reproduce the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dominik_0-1691157563500.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26637i265B7E3CBDDC58EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dominik_0-1691157563500.png" alt="Dominik_0-1691157563500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;leading zeros cut off and colums formatted differently per row.&lt;/P&gt;&lt;P&gt;Playing around with this, I found a completely wired feature of the table widget. With a greater Result set, switching pages, it looks like the widget 'thinks' about the data and&amp;nbsp; if the majority of lines cannot be misinterpreted as numbers, the whole page is correctly displayed as left-aligned strings. Otherwise the data ist misinterpreted as numbers and changed (leading zeros cut off)..&amp;nbsp; Setting the Column formatting to string does not change anything.&lt;/P&gt;&lt;P&gt;In my untersanding, this is everything else than correct behavior for a display widget. But I'm a complete Splunk newbie and not sure if this is worth a bug report. Can you confirm that&amp;nbsp; this is really bad?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Aug 2023 14:15:50 GMT</pubDate>
    <dc:creator>Dominik</dc:creator>
    <dc:date>2023-08-04T14:15:50Z</dc:date>
    <item>
      <title>How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/652383#M53558</link>
      <description>&lt;P&gt;I extract with &lt;EM&gt;rex&lt;/EM&gt; a field that contains numeric values, often with leading zeros. I want to display the values as strings, left aligned without getting leading zeros truncated.&lt;/P&gt;&lt;P&gt;Example values: 00123, 22222, 12345_67&lt;/P&gt;&lt;P&gt;When showing these values in a dashboard table, the String values are interpreted as numbers, where possible, and I get&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;123&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 22222&lt;BR /&gt;12345_67&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there a way to get string values correctly displayed as such in a dashboard table?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried also the dirty way &lt;A href="https://community.splunk.com/t5/Dashboards-Visualizations/Dashboard-Studio-Column-Data-keeps-getting-detected-by-a-number/m-p/610485/thread-id/50050" target="_self"&gt;as proposed here&lt;/A&gt;, prefixing the strings with space or non-breaking-space, but it does not work (I'm on Splunk 9.0.4). It works when adding a visible char (e.g. "x"), but that makes the table unusable.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 14:25:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/652383#M53558</guid>
      <dc:creator>Dominik</dc:creator>
      <dc:date>2023-07-28T14:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/652388#M53559</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259155"&gt;@Dominik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;using your data I didn't find any problem:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval _raw="00123, 22222, 12345_67"
| rex max_match=0 "(?&amp;lt;num&amp;gt;[^,\n]+)"
| mvexpand num
| eval num=tostring(trim(num))
| table num&lt;/LI-CODE&gt;&lt;P&gt;could you share some full log sample to test the regex?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2023 14:44:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/652388#M53559</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-07-28T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653222#M53687</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/161352"&gt;@gcusello&lt;/a&gt;&amp;nbsp;for the reply..&lt;/P&gt;&lt;P&gt;Probably my question was not precise enough. The data is ok and the sample produces exactly what I have, but &lt;STRONG&gt;Dashboard Studio&lt;/STRONG&gt; seems to have a problem.&lt;/P&gt;&lt;P&gt;Using the data from above in a table &lt;STRONG&gt;widget&lt;/STRONG&gt; as data source, I can reproduce the problem.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Dominik_0-1691157563500.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/26637i265B7E3CBDDC58EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Dominik_0-1691157563500.png" alt="Dominik_0-1691157563500.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;leading zeros cut off and colums formatted differently per row.&lt;/P&gt;&lt;P&gt;Playing around with this, I found a completely wired feature of the table widget. With a greater Result set, switching pages, it looks like the widget 'thinks' about the data and&amp;nbsp; if the majority of lines cannot be misinterpreted as numbers, the whole page is correctly displayed as left-aligned strings. Otherwise the data ist misinterpreted as numbers and changed (leading zeros cut off)..&amp;nbsp; Setting the Column formatting to string does not change anything.&lt;/P&gt;&lt;P&gt;In my untersanding, this is everything else than correct behavior for a display widget. But I'm a complete Splunk newbie and not sure if this is worth a bug report. Can you confirm that&amp;nbsp; this is really bad?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:15:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653222#M53687</guid>
      <dc:creator>Dominik</dc:creator>
      <dc:date>2023-08-04T14:15:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653226#M53688</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/259155"&gt;@Dominik&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I'm delaying the use of Dashboard Studio as long as I can&amp;nbsp; just for this reason: it still has some issue.&lt;/P&gt;&lt;P&gt;Anyway, using my search have you the same issue?&lt;/P&gt;&lt;P&gt;Ciao.&lt;/P&gt;&lt;P&gt;Giuseppe&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 14:29:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653226#M53688</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2023-08-04T14:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653237#M53693</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes, as written above.&amp;nbsp; This is your example data. The data is perfect, the result fatal.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2023 15:17:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653237#M53693</guid>
      <dc:creator>Dominik</dc:creator>
      <dc:date>2023-08-04T15:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display string values containing numbers as strings?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653303#M53711</link>
      <description>&lt;P&gt;I take "&lt;SPAN&gt;delaying the use of Dashboard Studio as long as I can" as good solution.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Widgets that change data values are inacceptable. &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Worth a bug report?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2023 08:22:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-display-string-values-containing-numbers-as-strings/m-p/653303#M53711</guid>
      <dc:creator>Dominik</dc:creator>
      <dc:date>2023-08-05T08:22:00Z</dc:date>
    </item>
  </channel>
</rss>

