<?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 add space on a text on a single value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678726#M232066</link>
    <description>&lt;P&gt;Try using printf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test=printf(" %s","this is a test")
| table test&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 26 Feb 2024 21:47:36 GMT</pubDate>
    <dc:creator>burwell</dc:creator>
    <dc:date>2024-02-26T21:47:36Z</dc:date>
    <item>
      <title>How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678723#M232063</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;How to add space on a text on a single value?&amp;nbsp; &amp;nbsp; &amp;nbsp;Thank you for your help&lt;BR /&gt;&lt;BR /&gt;Adding spaces did not have any affect.&amp;nbsp;&lt;BR /&gt;I was trying to align the text to the left&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test="this is a test                                       "
| table test&lt;/LI-CODE&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="LearningGuy_0-1708981490265.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29490iDC37B0AA6D165C0D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LearningGuy_0-1708981490265.png" alt="LearningGuy_0-1708981490265.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If I added period,&amp;nbsp; &amp;nbsp;it worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test="this is a test..........................."
| table test&lt;/LI-CODE&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="LearningGuy_1-1708981526244.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29491iA7E739A593D37D5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LearningGuy_1-1708981526244.png" alt="LearningGuy_1-1708981526244.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>Tue, 27 Feb 2024 14:54:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678723#M232063</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-02-27T14:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678726#M232066</link>
      <description>&lt;P&gt;Try using printf&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test=printf(" %s","this is a test")
| table test&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 26 Feb 2024 21:47:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678726#M232066</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-02-26T21:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678727#M232067</link>
      <description>&lt;P&gt;It does work. See for yourself.&lt;/P&gt;&lt;PRE&gt;| makeresults &lt;BR /&gt;| eval f1="test"&lt;BR /&gt;| eval f1l=len(f1)&lt;BR /&gt;| eval f2="test "&lt;BR /&gt;| eval f2l=len(f2)&lt;/PRE&gt;&lt;P&gt;Maybe you have problems displaying the results in some specific way...&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 22:00:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678727#M232067</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-26T22:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678728#M232068</link>
      <description>&lt;P&gt;Sorry I misread this as wanting a leading space. Ignore my answer.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 22:02:38 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678728#M232068</guid>
      <dc:creator>burwell</dc:creator>
      <dc:date>2024-02-26T22:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678739#M232074</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;points out, adding space does have effect. &amp;nbsp;The real question is: Where are you displaying these results? &amp;nbsp;It cannot possibly be from Splunk search. &amp;nbsp;This is what I see with the two values you illustrated.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults
| eval test="this is a test                                       "
| table test
| append
    [makeresults
| eval test="this is a test..........................."
| table test]
| eval length = len(test)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="append spaces.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29492i5FCE8457D1B85DF8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="append spaces.png" alt="append spaces.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As expected, both of them are aligned to the left. (Splunk search doesn't display right-aligned or center-aligned.) &amp;nbsp;If some external software cannot handle those trailing spaces, it's a problem with those software, not Splunk.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 00:27:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678739#M232074</guid>
      <dc:creator>yuanliu</dc:creator>
      <dc:date>2024-02-27T00:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678853#M232096</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;I tried your solution, it did not display the space as you can see the grey dot is still on the center.&lt;BR /&gt;Note that I was trying to do it on a &lt;STRONG&gt;Single value Panel.&amp;nbsp; Please suggest.&amp;nbsp;&lt;/STRONG&gt;Thank you for your help.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_4-1709044490902.png" style="width: 400px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29516i7AF1A58499B26D70/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LearningGuy_4-1709044490902.png" alt="LearningGuy_4-1709044490902.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LearningGuy_3-1709044404832.png" style="width: 652px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29515i576483806ED718B7/image-dimensions/652x88?v=v2" width="652" height="88" role="button" title="LearningGuy_3-1709044404832.png" alt="LearningGuy_3-1709044404832.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;If I used the dot, instead of spaces, it worked. See the grey dot is in the center&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| makeresults 
| eval f1="test"
| eval f1l=len(f1)
| eval f2="test............"
| eval f2l=len(f2)
| table f2&lt;/LI-CODE&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="LearningGuy_5-1709044886641.png" style="width: 664px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29517i8DF76B98D0875B7C/image-dimensions/664x78?v=v2" width="664" height="78" role="button" title="LearningGuy_5-1709044886641.png" alt="LearningGuy_5-1709044886641.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>Tue, 27 Feb 2024 14:42:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678853#M232096</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-02-27T14:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678855#M232097</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/33901"&gt;@yuanliu&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I was trying to display on a&lt;STRONG&gt; single value panel&lt;/STRONG&gt; as mentioned to the title.&lt;BR /&gt;&lt;BR /&gt;I added your suggestion to Single value panel searches, the space didn't push the text to the left like the dot did.&amp;nbsp; &amp;nbsp;Thanks&lt;BR /&gt;&lt;BR /&gt;Please also see my response to&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 14:54:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678855#M232097</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-02-27T14:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678859#M232098</link>
      <description>&lt;P&gt;Again - your problem is not with the value of the field but with the visualizaiton and the visual effect you want to achieve. The values are trimmed for displaying and it has nothing to do with values themselves. Also, formatting output with spaces is a no-no. We're not in the '80s anymore.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 15:34:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678859#M232098</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-27T15:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678881#M232100</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/231884"&gt;@PickleRick&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Understood. So, Splunk trimmed the space on purpose&lt;BR /&gt;My goal is to move the text to the left like it does on Splunk Dashboard Studio.&lt;BR /&gt;I applied CSS on the panel using "text-align: left", but it didn't work.&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Is it possible to align text to the left in a single value panel?&lt;BR /&gt;Thanks&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="LearningGuy_1-1709053041064.png" style="width: 745px;"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/29521i137A0E304A412C56/image-dimensions/745x82?v=v2" width="745" height="82" role="button" title="LearningGuy_1-1709053041064.png" alt="LearningGuy_1-1709053041064.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 17:03:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678881#M232100</guid>
      <dc:creator>LearningGuy</dc:creator>
      <dc:date>2024-02-27T17:03:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to add space on a text on a single value panel?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678892#M232103</link>
      <description>&lt;P&gt;CSS would be probably the way I'd try to go for something like this but it might require more fiddling around that just simple align for the cell contents.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 18:59:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-add-space-on-a-text-on-a-single-value-panel/m-p/678892#M232103</guid>
      <dc:creator>PickleRick</dc:creator>
      <dc:date>2024-02-27T18:59:13Z</dc:date>
    </item>
  </channel>
</rss>

