<?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: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351344#M42476</link>
    <description>&lt;P&gt;it doesnt work either &lt;/P&gt;</description>
    <pubDate>Wed, 25 Apr 2018 08:15:30 GMT</pubDate>
    <dc:creator>atulod1</dc:creator>
    <dc:date>2018-04-25T08:15:30Z</dc:date>
    <item>
      <title>Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351335#M42467</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;

&lt;P&gt;I created a customized  dashboard for my PCI DSS for number 10 requirements.&lt;BR /&gt;
I have a 2 Drop-down list ( one is for our Server Environment) (one for PCI Requirements 10)&lt;BR /&gt;
1. On the first Drop-down list - here are the option that I created (ServerEnv1, ServerEnv2, ServerEnv3, ServerEnv4)&lt;BR /&gt;
2. On the 2nd Drop downlist - (10.2.2, 10.2.3, 10.2.4 , 10.2.5a, 10.2.5b, 10.2.5c)&lt;BR /&gt;
3. if I choose the on the first drop-down list "ServerEnv1" on the 2nd dropdown list will reflect "10.2.3, 10.2.4 and 10.2.5a)  and if choose "ServerEnv2" on the 2nd drop-down list will be "10.2.2" only , then ServerEnv3, ServerEv4 all list on the 2nd  drop-down list will be reflected. Hoping you can help me how to construct using XML Command. -- Thanks in Advance --ALLAN &lt;/P&gt;</description>
      <pubDate>Fri, 20 Apr 2018 07:36:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351335#M42467</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2018-04-20T07:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351336#M42468</link>
      <description>&lt;P&gt;Based on the sample data provided you can try the following inputs. However, ideally you should create a lookup file for &lt;CODE&gt;version_servers_mapping.csv&lt;/CODE&gt; to maintain this kind of mapping and populate the Dynamic Dropdown through inputlookup/lookup commands in Splunk&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;versions         servers
10.2.2           ServerEnv1,ServerEnv3,ServerEnv4
10.2.3           ServerEnv2,ServerEnv3,ServerEnv4
10.2.4           ServerEnv2,ServerEnv3,ServerEnv4
10.2.5a          ServerEnv2,ServerEnv3,ServerEnv4
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Following is the run anywhere simple XML code for inputs.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokServer" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;servers&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;servers&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| fields - _time
| eval servers="ServerEnv1,ServerEnv2,ServerEnv3,ServerEnv4"
| makemv servers delim=","
| mvexpand servers
| sort servers&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;
    &amp;lt;input type="dropdown" token="tokVersion" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Version&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;versions&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;versions&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| makeresults
| eval _raw="versions=\"10.2.2\";server=\"ServerEnv1,ServerEnv3,ServerEnv4\""
| append [| makeresults
| eval _raw="versions=\"10.2.3\";server=\"ServerEnv2,ServerEnv3,ServerEnv4\""]
| append [| makeresults
| eval _raw="versions=\"10.2.4\";server=\"ServerEnv2,ServerEnv3,ServerEnv4\""]
| append [| makeresults
| eval _raw="versions=\"10.2.5a\";server=\"ServerEnv2,ServerEnv3,ServerEnv4\""]
| KV
| fields - _raw, _time
| makemv server delim=","
| mvexpand server
| search server="$tokServer$"&amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;
  &amp;lt;/fieldset&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 20 Apr 2018 17:21:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351336#M42468</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2018-04-20T17:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351337#M42469</link>
      <description>&lt;P&gt;where should I declare my lookup here since I created the lookup &lt;/P&gt;</description>
      <pubDate>Mon, 23 Apr 2018 07:22:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351337#M42469</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2018-04-23T07:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351338#M42470</link>
      <description>&lt;P&gt;@atulod1, can you try this please, &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; &amp;lt;form&amp;gt;
      &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
      &amp;lt;fieldset submitButton="false"&amp;gt;
        &amp;lt;input type="dropdown" token="tokServer" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Select Server&amp;lt;/label&amp;gt;
          &amp;lt;fieldForLabel&amp;gt;servers&amp;lt;/fieldForLabel&amp;gt;
          &amp;lt;fieldForValue&amp;gt;servers&amp;lt;/fieldForValue&amp;gt;
          &amp;lt;search&amp;gt;
            &amp;lt;query/&amp;gt;
            &amp;lt;earliest&amp;gt;-24h@h&amp;lt;/earliest&amp;gt;
            &amp;lt;latest&amp;gt;now&amp;lt;/latest&amp;gt;
          &amp;lt;/search&amp;gt;
          &amp;lt;choice value="ServerEnv1"&amp;gt;ServerEnv1&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="ServerEnv2"&amp;gt;ServerEnv2&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="ServerEnv3"&amp;gt;ServerEnv3&amp;lt;/choice&amp;gt;
          &amp;lt;choice value="ServerEnv4"&amp;gt;ServerEnv4&amp;lt;/choice&amp;gt;
        &amp;lt;/input&amp;gt;
        &amp;lt;input type="dropdown" token="version" searchWhenChanged="true"&amp;gt;
          &amp;lt;label&amp;gt;Select Version&amp;lt;/label&amp;gt;
          &amp;lt;fieldForLabel&amp;gt;field&amp;lt;/fieldForLabel&amp;gt;
          &amp;lt;fieldForValue&amp;gt;field&amp;lt;/fieldForValue&amp;gt;
          &amp;lt;search&amp;gt;
            &amp;lt;query&amp;gt;| makeresults| eval server="$tokServer$"
                   | eval field=case(server="ServerEnv1","10.2.3,10.2.4,10.2.5a",server="ServerEnv2","10.2.2",server="ServerEnv3" OR server="ServerEnv4","10.2.3,10.2.4,10.2.5a,10.2.2")
                   | makemv delim="," field| mvexpand field
            &amp;lt;/query&amp;gt;
            &amp;lt;earliest&amp;gt;-24h@h&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;
      &amp;lt;/fieldset&amp;gt;
    &amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:04:39 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351338#M42470</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-23T10:04:39Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351339#M42471</link>
      <description>&lt;P&gt;how can i add the lookup that i created per example version_servers_mapping.csv where do i assign this&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:11:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351339#M42471</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2020-09-29T19:11:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351340#M42472</link>
      <description>&lt;P&gt;For lookup, you can find example in this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.0.3/Knowledge/LookupexampleinSplunkWeb" target="test_blank"&gt;https://docs.splunk.com/Documentation/Splunk/7.0.3/Knowledge/LookupexampleinSplunkWeb&lt;/A&gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Apr 2018 10:19:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351340#M42472</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2018-04-23T10:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351341#M42473</link>
      <description>&lt;P&gt;Response with lookup,&lt;/P&gt;

&lt;P&gt;in settings&amp;gt;lookups add lookup file&lt;BR /&gt;&lt;BR /&gt;
For example i create the csv file version_servers_mapping.csv with content&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;"servers","versions"
 "ServerEnv1","10.2.3,10.2.4,10.2.5a"
 "ServerEnv2","10.2.2"
 "ServerEnv3","10.2.3,10.2.4,10.2.5a,10.2.2"
 "ServerEnv4","10.2.3,10.2.4,10.2.5a,10.2.2"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And, i used it in the dashboard like:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;form&amp;gt;
  &amp;lt;label&amp;gt;test&amp;lt;/label&amp;gt;
  &amp;lt;fieldset submitButton="false"&amp;gt;
    &amp;lt;input type="dropdown" token="tokServer" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Server&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;servers&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;servers&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;
          | inputlookup version_servers_mapping.csv | table servers
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;
    &amp;lt;input type="dropdown" token="version" searchWhenChanged="true"&amp;gt;
      &amp;lt;label&amp;gt;Select Version&amp;lt;/label&amp;gt;
      &amp;lt;fieldForLabel&amp;gt;versions&amp;lt;/fieldForLabel&amp;gt;
      &amp;lt;fieldForValue&amp;gt;versions&amp;lt;/fieldForValue&amp;gt;
      &amp;lt;search&amp;gt;
        &amp;lt;query&amp;gt;| inputlookup version_servers_mapping.csv |search servers="$tokServer$"
               | makemv delim="," versions| mvexpand versions
        &amp;lt;/query&amp;gt;
        &amp;lt;earliest&amp;gt;-24h@h&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;
  &amp;lt;/fieldset&amp;gt;
&amp;lt;/form&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:11:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351341#M42473</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-09-29T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351342#M42474</link>
      <description>&lt;P&gt;This one is not populating the result.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 11:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351342#M42474</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2018-04-24T11:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351343#M42475</link>
      <description>&lt;P&gt;it doesn't work either both&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:13:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351343#M42475</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2018-04-25T07:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351344#M42476</link>
      <description>&lt;P&gt;it doesnt work either &lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 08:15:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351344#M42476</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2018-04-25T08:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351345#M42477</link>
      <description>&lt;P&gt;if you run | inputlookup version_servers_mapping.csv can you share the result of this query&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:13:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351345#M42477</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-09-29T19:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351346#M42478</link>
      <description>&lt;P&gt;when I type this on the excel sheet this kind of format&lt;BR /&gt;
"servers","versions"&lt;BR /&gt;
  "ServerEnv1","10.2.3,10.2.4,10.2.5a"&lt;BR /&gt;
  "ServerEnv2","10.2.2"&lt;BR /&gt;
  "ServerEnv3","10.2.3,10.2.4,10.2.5a,10.2.2"&lt;BR /&gt;
  "ServerEnv4","10.2.3,10.2.4,10.2.5a,10.2.2"&lt;BR /&gt;
and when I run the query on the search using |inputlookup version_servers_mapping.csv there was an error message. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:14:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351346#M42478</guid>
      <dc:creator>atulod1</dc:creator>
      <dc:date>2020-09-29T19:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to match the 2 dropdownlist using XML and create a report for the following for PCI DSS</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351347#M42479</link>
      <description>&lt;P&gt;if the file not exist you must find "Not result find" and not error.&lt;BR /&gt;
are create a file .text and change it to csv for example&lt;BR /&gt;
version_servers_mapping.txt --&amp;gt; version_servers_mapping.csv&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:14:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Unable-to-match-the-2-dropdownlist-using-XML-and-create-a-report/m-p/351347#M42479</guid>
      <dc:creator>TISKAR</dc:creator>
      <dc:date>2020-09-29T19:14:50Z</dc:date>
    </item>
  </channel>
</rss>

