<?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: Format table field with a space in the column name in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305547#M91715</link>
    <description>&lt;P&gt;It's great to include working code in your answer.  It might have been easier for the poster to understand your answer if you'd also told him what field name to look for in your HTML - which is "Source Type" in this instance.&lt;/P&gt;

&lt;P&gt;Or just told him -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;format type="number" field="fieldname with spaces"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Wed, 15 Feb 2017 22:43:37 GMT</pubDate>
    <dc:creator>DalJeanis</dc:creator>
    <dc:date>2017-02-15T22:43:37Z</dc:date>
    <item>
      <title>Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305545#M91713</link>
      <description>&lt;P&gt;I would like to use the Simple XML &lt;CODE&gt;format&lt;/CODE&gt; rule to specify the formatting of table columns as documented &lt;A href="http://docs.splunk.com/Documentation/Splunk/latest/Viz/TableFormatsXML"&gt;here&lt;/A&gt;, e.g.:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;format type="number" field="count"&amp;gt;
  &amp;lt;option name="precision"&amp;gt;3&amp;lt;/option&amp;gt;
  &amp;lt;option name="unit"&amp;gt;MB&amp;lt;/option&amp;gt;
&amp;lt;/format&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;How do I specify a field name with a space in it? Does that even work?&lt;/STRONG&gt;&lt;/P&gt;

&lt;P&gt;My table would be defined as follows:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;SOME_SPL | table "fieldname with spaces"
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 21:51:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305545#M91713</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2017-02-15T21:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305546#M91714</link>
      <description>&lt;P&gt;Yes. field name with space you can use in the format. Sample is below, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;dashboard&amp;gt;

  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;

      &amp;lt;table&amp;gt;

        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=_internal | head 100 | bin span=1d _time | stats count by _time sourcetype |rename sourcetype as "Source Type"&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;0&amp;lt;/earliest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="count"&amp;gt;20&amp;lt;/option&amp;gt;
        &amp;lt;option name="dataOverlayMode"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;cell&amp;lt;/option&amp;gt;
        &amp;lt;option name="rowNumbers"&amp;gt;false&amp;lt;/option&amp;gt;
        &amp;lt;option name="wrap"&amp;gt;true&amp;lt;/option&amp;gt;

        &amp;lt;format type="color" field="Source Type"&amp;gt;
          &amp;lt;colorPalette type="map"&amp;gt;{"splunkd":#6DB7C6,"splunk-access":#F7BC38,"s":#AFEEEE}&amp;lt;/colorPalette&amp;gt;
        &amp;lt;/format&amp;gt;
        &amp;lt;format type="color" field="count"&amp;gt;
          &amp;lt;colorPalette type="minMidMax" maxColor="#31A35F" midColor="#A2CC3E" minColor="#FFFFFF"&amp;gt;&amp;lt;/colorPalette&amp;gt;
          &amp;lt;scale type="minMidMax" maxType="percentile" maxValue="100" midType="percentile" midValue="50" minType="percentile" minValue="0"&amp;gt;&amp;lt;/scale&amp;gt;
        &amp;lt;/format&amp;gt;
      &amp;lt;/table&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&amp;lt;/dashboard&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:32:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305546#M91714</guid>
      <dc:creator>vasanthmss</dc:creator>
      <dc:date>2017-02-15T22:32:44Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305547#M91715</link>
      <description>&lt;P&gt;It's great to include working code in your answer.  It might have been easier for the poster to understand your answer if you'd also told him what field name to look for in your HTML - which is "Source Type" in this instance.&lt;/P&gt;

&lt;P&gt;Or just told him -&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;format type="number" field="fieldname with spaces"&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:43:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305547#M91715</guid>
      <dc:creator>DalJeanis</dc:creator>
      <dc:date>2017-02-15T22:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305548#M91716</link>
      <description>&lt;P&gt;&lt;EM&gt;Not&lt;/EM&gt; adding additional quotes in some way is the one thing I did not try &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Feb 2017 22:45:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305548#M91716</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2017-02-15T22:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305549#M91717</link>
      <description>&lt;P&gt;Hy, is there a way to color fields of a table by an other field? I have created a field with colors und want to apply this to the Numbers of an other field. Thanks in advance. George&lt;BR /&gt;
&lt;span class="lia-inline-image-display-wrapper" image-alt="alt text"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/2496i79AB7D51327682DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 10:38:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305549#M91717</guid>
      <dc:creator>GDude</dc:creator>
      <dc:date>2018-01-24T10:38:41Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305550#M91718</link>
      <description>&lt;P&gt;You should post this as a new question. Mixing topics is a no-no.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:47:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305550#M91718</guid>
      <dc:creator>helge</dc:creator>
      <dc:date>2018-01-24T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305551#M91719</link>
      <description>&lt;P&gt;Sorry, I missed that you were only discussing fields with spaces. I'll place a new question.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jan 2018 13:54:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305551#M91719</guid>
      <dc:creator>GDude</dc:creator>
      <dc:date>2018-01-24T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Format table field with a space in the column name</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305552#M91720</link>
      <description>&lt;P&gt;Hi @helge ,&lt;/P&gt;

&lt;P&gt;I have a field called "TOTAL_TIME" which is in the format of "HH:MM:SS" and I am trying to apply the color format to it. But the color is not getting applied. &lt;/P&gt;

&lt;P&gt;Could you please help me in getting the code to apply the color for the time format.&lt;/P&gt;

&lt;P&gt;Thankyou.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2019 07:27:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Format-table-field-with-a-space-in-the-column-name/m-p/305552#M91720</guid>
      <dc:creator>akarivaratharaj</dc:creator>
      <dc:date>2019-12-04T07:27:22Z</dc:date>
    </item>
  </channel>
</rss>

