<?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 How to remove a label that's not being searched using token? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291078#M18461</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm having difficulties removing the "CPU Used" label on my dashboard. When I search for "Memory Used" or "Free Space," the "CPU Used" label shows on the graph. I have 2 appendcols for each search; you may see my search below and also the attached screenshot.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon eventtype="perfmon_windows" * Host="$hostname$" object=Processor counter="$kpi$" 
 | multikv 
 | eval cpu=100-Value
 | timechart span=5m latest(cpu)
 | rename latest(cpu) as "CPU Used"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt; | append [search index=perfmon eventtype="perfmon_windows" * Host="$hostname$" object=Memory counter="$kpi$" 
 | multikv 
 | timechart span=5m latest(Value)
 | rename latest(Value) as "Memory Used"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;| append [search index=perfmon Host="$hostname$"  sourcetype="Perfmon:LogicalDisk" object=LogicalDisk counter="$kpi$" mount!=HarddiskVolume*
| multikv
| timechart span=5m latest(storage_free_percent) as "Free Space" by mount]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Kevin&lt;/P&gt;

&lt;P&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/3391i4B759F7D3FAA25D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&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/3392iE91AF7E7390B2662/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, 16 Aug 2017 10:47:19 GMT</pubDate>
    <dc:creator>vino06</dc:creator>
    <dc:date>2017-08-16T10:47:19Z</dc:date>
    <item>
      <title>How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291078#M18461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I'm having difficulties removing the "CPU Used" label on my dashboard. When I search for "Memory Used" or "Free Space," the "CPU Used" label shows on the graph. I have 2 appendcols for each search; you may see my search below and also the attached screenshot.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=perfmon eventtype="perfmon_windows" * Host="$hostname$" object=Processor counter="$kpi$" 
 | multikv 
 | eval cpu=100-Value
 | timechart span=5m latest(cpu)
 | rename latest(cpu) as "CPU Used"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt; | append [search index=perfmon eventtype="perfmon_windows" * Host="$hostname$" object=Memory counter="$kpi$" 
 | multikv 
 | timechart span=5m latest(Value)
 | rename latest(Value) as "Memory Used"]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;HR /&gt;

&lt;PRE&gt;&lt;CODE&gt;| append [search index=perfmon Host="$hostname$"  sourcetype="Perfmon:LogicalDisk" object=LogicalDisk counter="$kpi$" mount!=HarddiskVolume*
| multikv
| timechart span=5m latest(storage_free_percent) as "Free Space" by mount]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thank you!&lt;BR /&gt;
Kevin&lt;/P&gt;

&lt;P&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/3391i4B759F7D3FAA25D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="alt text" alt="alt text" /&gt;&lt;/span&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/3392iE91AF7E7390B2662/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, 16 Aug 2017 10:47:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291078#M18461</guid>
      <dc:creator>vino06</dc:creator>
      <dc:date>2017-08-16T10:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291079#M18462</link>
      <description>&lt;P&gt;@vino06, Based on your screenshots I dont think you need to run append or appendcols since you are displaying only one KPI at a time.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;Code the KPI dropdown change event to create the query specific to a KPI.&lt;/STRONG&gt; &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;    &amp;lt;input type="dropdown" token="tokKPI"&amp;gt;
      &amp;lt;label&amp;gt;KPI&amp;lt;/label&amp;gt;
      &amp;lt;choice value="CPU"&amp;gt;CPU&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="Memory"&amp;gt;Memory&amp;lt;/choice&amp;gt;
      &amp;lt;choice value="% Free Space"&amp;gt;Free Space&amp;lt;/choice&amp;gt;
      &amp;lt;change&amp;gt;
        &amp;lt;condition label="CPU"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;index="perfmon" eventtype="perfmon_windows" Host="$hostname$" object="Processor" counter="$value$" 
  | multikv 
  | eval cpu=100-Value
  | timechart span=5m latest(cpu)
  | rename latest(cpu) as "CPU Used"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="Memory"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;index="perfmon" eventtype="perfmon_windows" Host="$hostname$" object="Memory" counter="$value$" 
| multikv 
| timechart span=5m latest(Value)
| rename latest(Value) as "Memory Used"&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
        &amp;lt;condition label="Free Space"&amp;gt;
          &amp;lt;set token="tokQuery"&amp;gt;index="perfmon" Host="$hostname$" sourcetype="Perfmon:LogicalDisk" object=LogicalDisk counter="$value$" mount!="HarddiskVolume*"
| multikv
| timechart span=5m latest(storage_free_percent) as "Free Space" by mount&amp;lt;/set&amp;gt;
        &amp;lt;/condition&amp;gt;
      &amp;lt;/change&amp;gt;
      &amp;lt;default&amp;gt;CPU&amp;lt;/default&amp;gt;
    &amp;lt;/input&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;STRONG&gt;Then use the KPI token &lt;CODE&gt;$tokKPI$&lt;/CODE&gt; as your search query&lt;/STRONG&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokQuery$&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 11:41:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291079#M18462</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-16T11:41:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291080#M18463</link>
      <description>&lt;P&gt;@niketnilay How about the query for my Hostname? do I need to change it also? my KPI are connected to my Hostname dropdown.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 12:18:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291080#M18463</guid>
      <dc:creator>vino06</dc:creator>
      <dc:date>2017-08-16T12:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291081#M18464</link>
      <description>&lt;P&gt;On change of hostname you can unset the token $tokKPI$ and $form.tokKPI$, so that KPI would be selected after changing the host name&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;change&amp;gt;
    &amp;lt;unset token="tokKPI"&amp;gt;&amp;lt;/unset&amp;gt;
    &amp;lt;unset token="form.tokKPI"&amp;gt;&amp;lt;/unset&amp;gt;
&amp;lt;/change&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 18:53:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291081#M18464</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-16T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291082#M18465</link>
      <description>&lt;P&gt;@niketnilay I tried to use the search you gave me but its not working and I find it difficult. Is there a simple way? I think my search is just wrong and need to be fix.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 08:02:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291082#M18465</guid>
      <dc:creator>vino06</dc:creator>
      <dc:date>2017-08-18T08:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291083#M18466</link>
      <description>&lt;P&gt;Based on your initial question and screenshot, I had not changed anything in your query since I assumed your queries were working fine as per the screenshot.&lt;/P&gt;

&lt;P&gt;Since you had not provided Performance Counters (KPIs) in your question, I had just cooked up the KPI Values. Please double check to add specific counter values in the dropdown. I expect following to be the counters you are using. However, unfortunately I can not be sure.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;   &amp;lt;choice value="% Processor Time"&amp;gt;CPU&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="% Committed Bytes In Use"&amp;gt;Memory&amp;lt;/choice&amp;gt;
   &amp;lt;choice value="% Free Space"&amp;gt;Free Space&amp;lt;/choice&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Run the queries in separate searches for specific KPI and test. Also you can rename field name in timechart command itself. Further for CPU KPI you should ideally perform 100-CPU% after the timechart command.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=perfmon eventtype="perfmon_windows" * Host="$hostname$" object=Processor counter="$kpi$" 
  | timechart span=5m latest(Value) as "CPU Used"
  | eval "CPU Used"=100-'CPU Used'
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please let me know if you are facing any issue other than this or if the dropdown token is not working as expected.&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 09:41:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291083#M18466</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2017-08-18T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291084#M18467</link>
      <description>&lt;P&gt;@niketnilay, Here is my xml for the drop down.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;      &amp;lt;input type="dropdown" token="hostname"&amp;gt;
        &amp;lt;label&amp;gt;Hostname&amp;lt;/label&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=perfmon Host=* | dedup Host | sort 0 Host&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;Host&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;Host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="dropdown" token="kpi" searchWhenChanged="false"&amp;gt;
        &amp;lt;label&amp;gt;KPI&amp;lt;/label&amp;gt;
        &amp;lt;choice value="% Idle Time"&amp;gt;CPU&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="% Committed Bytes In Use"&amp;gt;Memory&amp;lt;/choice&amp;gt;
        &amp;lt;choice value="% Free Space"&amp;gt;Free Space&amp;lt;/choice&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;counter&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;counter&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=perfmon Host="$hostname$" object=Processor counter="$kpi$" 
 | eval cpu=100-Value
 | timechart span=5m latest(cpu) as "CPU Used"

 | append [search index=perfmon Host="$hostname$" object=Memory counter="$kpi$" 
 | timechart span=5m latest(Value) as "Memory Used"]

 | append [search index=perfmon Host="$hostname$"  sourcetype="Perfmon:LogicalDisk" object=LogicalDisk counter="$kpi$" mount!=HarddiskVolume*
| timechart span=5m latest(storage_free_percent) as "Free Space" by mount]
          &amp;lt;earliest&amp;gt;$timepckr.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timepckr.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;log&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;connect&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 18 Aug 2017 10:03:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291084#M18467</guid>
      <dc:creator>vino06</dc:creator>
      <dc:date>2017-08-18T10:03:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove a label that's not being searched using token?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291085#M18468</link>
      <description>&lt;P&gt;I can see that you have not made changes to KPI Dropdown as request to pass on Single Search query instead of append.&lt;/P&gt;

&lt;P&gt;Please run splunk search on &lt;CODE&gt;index="perfmon" earliest="-15m" latest="now"&lt;/CODE&gt; to pull sample events to validate all fields like :&lt;BR /&gt;
1) sourcetypes for different Performance Counters&lt;BR /&gt;
2) Host field name is &lt;CODE&gt;Host&lt;/CODE&gt; or &lt;CODE&gt;host&lt;/CODE&gt;?  I expected it to be lower case. Please confirm.&lt;BR /&gt;
3)  Object Collection and Counter field names&lt;BR /&gt;
4) Other fields like mount and storage_free_percent, whether they actually exist for "Logical Disc" performance counters.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;row&amp;gt;
    &amp;lt;panel&amp;gt;
      &amp;lt;input type="time" token="timepckr" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Select Time&amp;lt;/label&amp;gt;
        &amp;lt;default&amp;gt;
          &amp;lt;earliest&amp;gt;-15m&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
        &amp;lt;/default&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="dropdown" token="hostname" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;Hostname&amp;lt;/label&amp;gt;
        &amp;lt;choice value="*"&amp;gt;All&amp;lt;/choice&amp;gt;
        &amp;lt;default&amp;gt;*&amp;lt;/default&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=performance_counters sourcetype="Perfmon:*" host="*" earliest="$timepckr.earliest$" latest="$timepckr.latest$"
| dedup host
| table host
| sort 0 host&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;host&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;input type="dropdown" token="kpi" searchWhenChanged="true"&amp;gt;
        &amp;lt;label&amp;gt;KPI&amp;lt;/label&amp;gt;
        &amp;lt;selectFirstChoice&amp;gt;true&amp;lt;/selectFirstChoice&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;index=performance_counters sourcetype="Perfmon:*" host="$hostname$" object="*" counter="*" earliest="$timepckr.earliest$" latest="$timepckr.latest$"
| dedup counter
| table counter collection
| sort counter&amp;lt;/query&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;fieldForLabel&amp;gt;collection&amp;lt;/fieldForLabel&amp;gt;
        &amp;lt;fieldForValue&amp;gt;counter&amp;lt;/fieldForValue&amp;gt;
        &amp;lt;change&amp;gt;
          &amp;lt;condition label="CPU"&amp;gt;
            &amp;lt;set token="tokQuery"&amp;gt;index=performance_counters sourcetype="Perfmon:CPU" host="$hostname$" object="Processor Information" counter="$value$" 
| timechart span=5m latest(Value) as "CPU Used"&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition label="Memory"&amp;gt;
            &amp;lt;set token="tokQuery"&amp;gt;index=performance_counters sourcetype="Perfmon:Memory" host="$hostname$" object="Memory" counter="$value$" 
| timechart span=5m latest(Value) as "Memory Used"&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition label="Free Space"&amp;gt;
            &amp;lt;set token="tokQuery"&amp;gt;index=performance_counters host="$hostname$" sourcetype="Perfmon:LogicalDisk" object="LogicalDisk" mount!="HarddiskVolume*" counter="$value$"
 | timechart span=5m latest(storage_free_percent) as "Free Space" by mount&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
          &amp;lt;condition&amp;gt;
            &amp;lt;set token="tokQuery"&amp;gt;| makeresults| eval ErrorMsg="Performance Counter not configured"&amp;lt;/set&amp;gt;
          &amp;lt;/condition&amp;gt;
        &amp;lt;/change&amp;gt;
      &amp;lt;/input&amp;gt;
      &amp;lt;chart&amp;gt;
        &amp;lt;search&amp;gt;
          &amp;lt;query&amp;gt;$tokQuery$&amp;lt;/query&amp;gt;
          &amp;lt;earliest&amp;gt;$timepckr.earliest$&amp;lt;/earliest&amp;gt;
          &amp;lt;latest&amp;gt;$timepckr.latest$&amp;lt;/latest&amp;gt;
          &amp;lt;sampleRatio&amp;gt;1&amp;lt;/sampleRatio&amp;gt;
        &amp;lt;/search&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.overflowMode"&amp;gt;ellipsisNone&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisLabelsX.majorLabelStyle.rotation"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleX.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisTitleY2.visibility"&amp;gt;visible&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisX.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY.scale"&amp;gt;linear&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.enabled"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.axisY2.scale"&amp;gt;log&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart"&amp;gt;line&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMaximumSize"&amp;gt;50&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleMinimumSize"&amp;gt;10&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.bubbleSizeBy"&amp;gt;area&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.nullValueMode"&amp;gt;connect&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.showDataLabels"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.sliceCollapsingThreshold"&amp;gt;0.01&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.stackMode"&amp;gt;default&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.chart.style"&amp;gt;shiny&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.drilldown"&amp;gt;none&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.layout.splitSeries.allowIndependentYRanges"&amp;gt;0&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.labelStyle.overflowMode"&amp;gt;ellipsisMiddle&amp;lt;/option&amp;gt;
        &amp;lt;option name="charting.legend.placement"&amp;gt;right&amp;lt;/option&amp;gt;
      &amp;lt;/chart&amp;gt;
    &amp;lt;/panel&amp;gt;
  &amp;lt;/row&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following are some of the major changes:&lt;BR /&gt;
1) Process performance counter changed to "% Processor Time". This way extra calculation is not required in query.&lt;BR /&gt;
2) earliest and latest moved to dropdown query to fetch the records from same timeframe being instead of hard-coded 15 min for Dashboard Search queries including dropdown searches.&lt;BR /&gt;
3) Sourcetype added to all searches base query.&lt;/P&gt;

&lt;P&gt;There is still scope of performance improvement through:&lt;BR /&gt;
1) If host name is being pulled from host and not Host, tstats can be used to pull host name for dropdown.&lt;BR /&gt;
2) Running single base search using Post Processing to fetch required details in single query. Then show only fields interested in.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 15:27:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-to-remove-a-label-that-s-not-being-searched-using-token/m-p/291085#M18468</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2020-09-29T15:27:30Z</dc:date>
    </item>
  </channel>
</rss>

