<?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: Do this in Simple XML? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156192#M9596</link>
    <description>&lt;P&gt;Thanks helenashton, never knew that, opens up another Splunk door &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 03 Jun 2017 04:19:49 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2017-06-03T04:19:49Z</dc:date>
    <item>
      <title>Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156184#M9588</link>
      <description>&lt;P&gt;I am using Advanced XML and plan on doing so as long as I can but I am curious to know whether I can do the following in Simple XML. This is a small sample of stuff I do every day in Advanced XML.&lt;/P&gt;

&lt;P&gt;Hide one or more columns in a table&lt;/P&gt;

&lt;P&gt;Pass multiple arguments, including hidden columns, to a new dashboard from table results as drilldowns&lt;/P&gt;

&lt;P&gt;Replace column values with icons based on value&lt;/P&gt;</description>
      <pubDate>Wed, 10 Dec 2014 16:13:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156184#M9588</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2014-12-10T16:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156185#M9589</link>
      <description>&lt;P&gt;&lt;STRONG&gt;for Hide one or more columns in a table&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;
 you can use the  " .........|fields - fieldName1" to hide one colunn in a table&lt;BR /&gt;
 or  " .........|fields - fieldName1, fieldName2, fieldName3, ...  fieldNamen " to  hide more colunns in a table&lt;/P&gt;

&lt;P&gt;exple you this search:   "" |eventcount  eventcount summarize=false index=* 0r index=_* ""  but if i want to hide server colunn i add   "|fields - server" command to end such    &lt;/P&gt;

&lt;P&gt;|eventcount  eventcount summarize=false index=* 0r index=_* | fields - server   you see in you result the server colunn is hide. &lt;/P&gt;

&lt;P&gt;after   your_search...    for  version 6.0 and  6.1  or       your_search...   for version6.2 in your xml  you can Pass multiple arguments, including hidden columns, to a new dashboard from table results as drilldowns&lt;BR /&gt;
and Replace column values with icons based on value&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:25:26 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156185#M9589</guid>
      <dc:creator>fdi01</dc:creator>
      <dc:date>2020-09-28T18:25:26Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156186#M9590</link>
      <description>&lt;P&gt;That doesn't hide them, it removes them. If I do a CSV export the "hidden" field does not get included. The results of this search do not meet my requirements.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=portal sourcetype=portal WebPage!="*poller*" | table Date, user, WebPage, cs_uri_query | fields Date, user, WebPage
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 15 Dec 2014 14:18:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156186#M9590</guid>
      <dc:creator>kmattern</dc:creator>
      <dc:date>2014-12-15T14:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156187#M9591</link>
      <description>&lt;P&gt;You can use CSS to hide a column. I have done below (hides last column in the table of panel2):&lt;/P&gt;

&lt;P&gt;div#panel2 .table tr&amp;gt;td:last-child {padding-right:20px; display:none !important;}&lt;BR /&gt;
div#panel2 .table tr&amp;gt;th:last-child {padding-right:20px; display:none !important;}&lt;/P&gt;

&lt;P&gt;Hope it helps.&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2015 07:07:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156187#M9591</guid>
      <dc:creator>meenal901</dc:creator>
      <dc:date>2015-02-13T07:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156188#M9592</link>
      <description>&lt;P&gt;If I remember correctly, in simple xml you can have then in your table, but in the fields option for the table you can specify the fields. The data is still present, but not shown to the user.&lt;/P&gt;

&lt;P&gt;For example, here I show the time, systemFrom and systemTo to the user, but on drilldown I grab the eventId value from that row and use this later on.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;table&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;&amp;lt;![CDATA[
index=myIndex  host=myHost 
...
          ]]&amp;gt;&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fields&amp;gt;_time, systemFrom, systemTo &amp;lt;/fields&amp;gt;
        &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
        &amp;lt;drilldown&amp;gt;
          &amp;lt;condition field="*"&amp;gt;
            &amp;lt;set token="myEventId"&amp;gt;$row.eventId$&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/drilldown&amp;gt;
      &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:46:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156188#M9592</guid>
      <dc:creator>helenashton</dc:creator>
      <dc:date>2015-04-07T19:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156189#M9593</link>
      <description>&lt;P&gt;"Pass multiple arguments, including hidden columns, to a new dashboard from table results as drilldowns"&lt;/P&gt;

&lt;P&gt;I was just doing this yesterday and recalled your question. &lt;BR /&gt;
You can use the drilldown option and then the link to specify the new dashboard URL. In this you can include the token value (mine was &lt;EM&gt;row.Account&lt;/EM&gt;) and assign this to an input field (mine was called &lt;EM&gt;UserInput&lt;/EM&gt;). I have left in the XML for setting the token for normal drilldown use two - I often have both options.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;table&amp;gt;
    &amp;lt;search&amp;gt;
      &amp;lt;query&amp;gt;...&amp;lt;/query&amp;gt;
    &amp;lt;/search&amp;gt;
    &amp;lt;option name="drilldown"&amp;gt;row&amp;lt;/option&amp;gt;
    &amp;lt;drilldown field="*"&amp;gt;
      &amp;lt;set token="Account"&amp;gt;$row.Account$&amp;lt;/set&amp;gt;
      &amp;lt;link target="_blank"&amp;gt;&amp;lt;![CDATA[
        &lt;A href="http://SplunkURL/en-US/app/myappName/my_dashboard?autoRun=True&amp;amp;form.UserInput=$row.Account$" target="test_blank"&gt;http://SplunkURL/en-US/app/myappName/my_dashboard?autoRun=True&amp;amp;form.UserInput=$row.Account$&lt;/A&gt;
      ]]&amp;gt;&amp;lt;/link&amp;gt;
    &amp;lt;/drilldown&amp;gt;
  &amp;lt;/table&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 May 2015 14:19:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156189#M9593</guid>
      <dc:creator>helenashton</dc:creator>
      <dc:date>2015-05-01T14:19:14Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156190#M9594</link>
      <description>&lt;P&gt;Thank you, those _time, systemFrom, systemTo  and   was exactly what i need.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 13:57:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156190#M9594</guid>
      <dc:creator>felipesewaybric</dc:creator>
      <dc:date>2015-07-21T13:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156191#M9595</link>
      <description>&lt;P&gt;For requirement 2, use the example dashboard "Table Icon Set" from the "Splunk 6.x Dashboard Example" app.&lt;/P&gt;

&lt;P&gt;App link:  &lt;A href="https://splunkbase.splunk.com/app/1603/"&gt;https://splunkbase.splunk.com/app/1603/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jul 2015 15:28:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156191#M9595</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2015-07-21T15:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156192#M9596</link>
      <description>&lt;P&gt;Thanks helenashton, never knew that, opens up another Splunk door &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Jun 2017 04:19:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156192#M9596</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2017-06-03T04:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156193#M9597</link>
      <description>&lt;P&gt;Thanks a lot! this works on tables. But this does not seem to work if I am using a column table? When I add the  tag, it gives me an error warning that I cannot use "fields" node inside the column table. Any workaround?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Sep 2018 17:01:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156193#M9597</guid>
      <dc:creator>mabinn</dc:creator>
      <dc:date>2018-09-20T17:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: Do this in Simple XML?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156194#M9598</link>
      <description>&lt;P&gt;thank you @helenashton! this is great. I hesitated to try it at first thinking it wouldn't make sense after the | table line in my search, but it works exactly as expected! &lt;/P&gt;

&lt;P&gt;in your search, you &lt;CODE&gt;| table&lt;/CODE&gt; all the fields you need to keep and then copy only the field names you want to be visible into the &lt;CODE&gt;|fields&lt;/CODE&gt; line.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2019 16:53:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Do-this-in-Simple-XML/m-p/156194#M9598</guid>
      <dc:creator>cblanton</dc:creator>
      <dc:date>2019-08-09T16:53:25Z</dc:date>
    </item>
  </channel>
</rss>

