<?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: Advanced XML in Splunk for Single Value in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117528#M6747</link>
    <description>&lt;P&gt;I have done that but nothing is happening , I am using html module under "afterlabel" param . I want to use "enter" after afterlabel param so that after each count it will go to the new line.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Apr 2014 19:02:53 GMT</pubDate>
    <dc:creator>abhayneilam</dc:creator>
    <dc:date>2014-04-02T19:02:53Z</dc:date>
    <item>
      <title>Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117525#M6744</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I want to show the output in the following ways :&lt;/P&gt;

&lt;P&gt;Today_Count : 1023&lt;BR /&gt;
Yesterday_Count : 3456&lt;BR /&gt;
Error_Count : 58657&lt;BR /&gt;
Day1_count : 5757 average&lt;BR /&gt;
Day2_Count : 8898 average&lt;/P&gt;

&lt;P&gt;Now , I am using "single value" and using panel_row1_col1_grp1 , panel_row1_col1_grp2 , panel_row1_col1_grp3, panel_row1_col1_grp4 , so on , but the output is coming like :&lt;/P&gt;

&lt;P&gt;Today_Count : 1023  Yesterday_Count : 3456 Error_Count : 58657 .....&lt;/P&gt;

&lt;P&gt;The numeric value I am getting after running various queries.&lt;/P&gt;

&lt;P&gt;Please help me to allign the results in a vertical manner instead of horizontal manner&lt;/P&gt;

&lt;P&gt;Thanks in advance !!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:18:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117525#M6744</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-28T16:18:03Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117526#M6745</link>
      <description>&lt;P&gt;You can use HTML module to generated more formatted output. This can give your a start (using sideview util)&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="Search"&amp;gt;
  &amp;lt;param name="search"&amp;gt;
    &amp;lt;![CDATA[
Your Search giving field1, field2...
                        ]]&amp;gt;
  &amp;lt;/param&amp;gt;

  &amp;lt;module name="ResultsValueSetter"&amp;gt;
    &amp;lt;param name="fields"&amp;gt;field1, field2...&amp;lt;/param&amp;gt;
    &amp;lt;!--html--&amp;gt;

    &amp;lt;module name="HTML" layoutPanel="panel_row1_col1" group="Panle Header"&amp;gt;
      &amp;lt;param name="html"&amp;gt;
        &amp;lt;![CDATA[             

&amp;lt;table cellpadding="0" cellspacing="0" style="width: 100%;"&amp;gt;
  &amp;lt;tr&amp;gt;
      &amp;lt;td&amp;gt;
          &amp;lt;table cellpadding="4" cellspacing="0" style="width: 100%;"&amp;gt;
              &amp;lt;tr&amp;gt;
                  &amp;lt;td align="left"&amp;gt;
                     &amp;lt;font size="2"&amp;gt;&amp;lt;b&amp;gt; Field1 Label :&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                      $field1$
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                      &amp;amp;nbsp;
                  &amp;lt;/td&amp;gt;
              &amp;lt;/tr&amp;gt;
              &amp;lt;tr&amp;gt;
                  &amp;lt;td align="left"&amp;gt;
                       &amp;lt;font size="2"&amp;gt;&amp;lt;b&amp;gt; Field2 Label :&amp;lt;/b&amp;gt;&amp;lt;/font&amp;gt;
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                      $field2$
                  &amp;lt;/td&amp;gt;
                  &amp;lt;td&amp;gt;
                      &amp;amp;nbsp;
                  &amp;lt;/td&amp;gt;
              &amp;lt;/tr&amp;gt;
        &amp;lt;/table&amp;gt;
     &amp;lt;/td&amp;gt;
  &amp;lt;/tr&amp;gt;
&amp;lt;/table&amp;gt;  ]]&amp;gt;
      &amp;lt;/param&amp;gt;
    &amp;lt;/module&amp;gt;
  &amp;lt;/module&amp;gt;
  &amp;lt;!-- ResultsValueSetter--&amp;gt;
&amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Apr 2014 18:35:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117526#M6745</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-02T18:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117527#M6746</link>
      <description>&lt;P&gt;I like to use HTML modules for that.  You can use &lt;CODE&gt;&amp;lt;br/&amp;gt;&lt;/CODE&gt; and other tags to place the text where you like.  You'll need the SideviewUtils app, though.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 18:35:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117527#M6746</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-02T18:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117528#M6747</link>
      <description>&lt;P&gt;I have done that but nothing is happening , I am using html module under "afterlabel" param . I want to use "enter" after afterlabel param so that after each count it will go to the new line.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 19:02:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117528#M6747</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2014-04-02T19:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117529#M6748</link>
      <description>&lt;P&gt;I'm not sure what "afterlabel" is.  You should get results close you those you seek using the following within your Search module:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;module name="HTML" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;
    &amp;lt;param name="html"&amp;gt;&amp;lt;![CDATA[
      Today_Count : $results[0].Today_Count$&amp;lt;br/&amp;gt; Yesterday_Count : $results[0].Yesterday_Count$&amp;lt;br/&amp;gt; Error_Count : $results[0].Error_Count$&amp;lt;br/&amp;gt; Day1_count : $results[0].Day1_count$&amp;lt;br/&amp;gt; average Day2_Count : $results[0].Day2_Count$&amp;lt;br/&amp;gt; average
    ]]&amp;gt;&amp;lt;/param&amp;gt;
  &amp;lt;/module&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 02 Apr 2014 19:12:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117529#M6748</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-02T19:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117530#M6749</link>
      <description>&lt;P&gt;"afterlable" is a param for "single Value" in Splunk.&lt;BR /&gt;
Beforelable and Afterlable is used to put the string after and before the splunk results.&lt;BR /&gt;
By the way : I have 6 queries running and each generating some count , how do I fit into your solution :&lt;BR /&gt;
module name="HTML" layoutPanel="panel_row1_col1" autoRun="True"&amp;gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  Today_Count : $results[0].Today_Count$&amp;lt;br/&amp;gt; Yesterday_Count : $results[0].Yesterday_Count$&amp;lt;br/&amp;gt; Error_Count : $results[0].Error_Count$&amp;lt;br/&amp;gt; Day1_count : $results[0].Day1_count$&amp;lt;br/&amp;gt; average Day2_Count : $results[0].Day2_Count$&amp;lt;br/&amp;gt; average
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:18:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117530#M6749</guid>
      <dc:creator>abhayneilam</dc:creator>
      <dc:date>2020-09-28T16:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117531#M6750</link>
      <description>&lt;P&gt;Combine all your search into one result set (may be using appendcols) to get one result row with multiple column. Remove all your single value modules and add this Search-ResultValueSetter-HTML module combination.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2014 20:16:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117531#M6750</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2014-04-02T20:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: Advanced XML in Splunk for Single Value</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117532#M6751</link>
      <description>&lt;P&gt;I assumed all of your results were from a single query.  If you can't combine your queries then you may want to experiment with putting an HTML module after each query with all of the HTML writing to the same layoutPanel.  With any luck, each HTML module will append its output rather than overwrite what the previous HTML module wrote.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Apr 2014 12:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Advanced-XML-in-Splunk-for-Single-Value/m-p/117532#M6751</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2014-04-03T12:18:47Z</dc:date>
    </item>
  </channel>
</rss>

