<?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: lable and value in dropdownlist for dynamic load in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684150#M56014</link>
    <description>&lt;P&gt;i have replaced with like.. but it search from one host only. as i mentioned in QA i have 3 hosts and Prod i have 3 hosts. i have used dedup label to avoid duplicate in drop down list . but search result containes only from one host. not from all the 3 hosts if i select QA or PROD. please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="dropdown" token="envtoken"&amp;gt;
      &amp;lt;label&amp;gt;env&amp;lt;/label&amp;gt;
     &amp;lt;fieldForLabel&amp;gt;label&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;prefix&amp;gt;(host=&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;search&amp;gt; &amp;lt;query&amp;gt;
index=aaa (source="/var/log/testd.log")
|stats count by host 
| eval label=case(like(host, "%tv00.test"), "Test", 
                     like(host, "%qv00.qa"), "QA",
                     like(host, "%pv00.prod"), "Prod")| dedup label&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;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 13 Apr 2024 08:12:41 GMT</pubDate>
    <dc:creator>Jasmine</dc:creator>
    <dc:date>2024-04-13T08:12:41Z</dc:date>
    <item>
      <title>lable and value in dropdownlist for dynamic load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684139#M56012</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="dropdown" token="envtoken"&amp;gt;
      &amp;lt;label&amp;gt;env&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;label&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt; &amp;lt;query&amp;gt;
index=aaa (source="/var/log/testd.log")
|stats count by host 
| eval label=case(match(host, ".*tv*."), "Test", 
                     match(host, ".*qv*."), "QA",
                     match(host, ".*pv*."), "Prod")| dedup label&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;/input&amp;gt;
					 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;dropdownlist binding with TEST, QA and PROD&lt;/P&gt;&lt;P&gt;In QA and prod have 3 host. If i select QA from dropdown list , will the search includes from all the three hosts? could you plase confirm&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 07:10:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684139#M56012</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-04-13T07:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: lable and value in dropdownlist for dynamic load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684145#M56013</link>
      <description>&lt;P&gt;&lt;a href="https://community.splunk.com/t5/user/viewprofilepage/user-id/255320"&gt;@Jasmine&lt;/a&gt;&amp;nbsp;- Use &lt;STRONG&gt;like&lt;/STRONG&gt; instead of &lt;STRONG&gt;match&lt;/STRONG&gt; function.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| eval label=case(like(host, "%tv00.test.net"), "Test", 
                     like(host, "%qv00.qa.net"), "QA",
                     like(host, "%pv00.prod.net"), "Prod")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 07:32:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684145#M56013</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2024-04-13T07:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: lable and value in dropdownlist for dynamic load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684150#M56014</link>
      <description>&lt;P&gt;i have replaced with like.. but it search from one host only. as i mentioned in QA i have 3 hosts and Prod i have 3 hosts. i have used dedup label to avoid duplicate in drop down list . but search result containes only from one host. not from all the 3 hosts if i select QA or PROD. please advise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; &amp;lt;input type="dropdown" token="envtoken"&amp;gt;
      &amp;lt;label&amp;gt;env&amp;lt;/label&amp;gt;
     &amp;lt;fieldForLabel&amp;gt;label&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;host&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;prefix&amp;gt;(host=&amp;lt;/prefix&amp;gt;
      &amp;lt;suffix&amp;gt;)&amp;lt;/suffix&amp;gt;
      &amp;lt;search&amp;gt; &amp;lt;query&amp;gt;
index=aaa (source="/var/log/testd.log")
|stats count by host 
| eval label=case(like(host, "%tv00.test"), "Test", 
                     like(host, "%qv00.qa"), "QA",
                     like(host, "%pv00.prod"), "Prod")| dedup label&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;/input&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 13 Apr 2024 08:12:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684150#M56014</guid>
      <dc:creator>Jasmine</dc:creator>
      <dc:date>2024-04-13T08:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: lable and value in dropdownlist for dynamic load</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684230#M56019</link>
      <description>&lt;P&gt;That's correct because label has to be unique, in this case it will not generate unique label.&lt;/P&gt;&lt;P&gt;I would suggest set the &lt;STRONG&gt;label&lt;/STRONG&gt; as well with &lt;STRONG&gt;host&lt;/STRONG&gt; field, because host name already tells you whether its QA or Prod or Dev.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps!!!&lt;/P&gt;</description>
      <pubDate>Mon, 15 Apr 2024 11:09:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/lable-and-value-in-dropdownlist-for-dynamic-load/m-p/684230#M56019</guid>
      <dc:creator>VatsalJagani</dc:creator>
      <dc:date>2024-04-15T11:09:47Z</dc:date>
    </item>
  </channel>
</rss>

