<?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: Why are Splunk multiple 'condition match' statements not working in my xml dashboard? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457486#M30009</link>
    <description>&lt;P&gt;thanks this works, i get it now. if you want to reply with an answer i can mark it as answered.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Nov 2018 16:11:21 GMT</pubDate>
    <dc:creator>johnmvang</dc:creator>
    <dc:date>2018-11-02T16:11:21Z</dc:date>
    <item>
      <title>Why are Splunk multiple 'condition match' statements not working in my xml dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457484#M30007</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;I have the following dashboard code:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;progress&amp;gt;
&amp;lt;condition match="'job.resultCount' &amp;gt; 0"&amp;gt;
              &amp;lt;set token="set_cp1_tok"&amp;gt;$result.cp1$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_cp2_tok"&amp;gt;$result.cp2$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_cp3_tok"&amp;gt;$result.cp3$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_pa1_tok"&amp;gt;$result.pa1$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_pa2_tok"&amp;gt;$result.pa2$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_pa3_tok"&amp;gt;$result.pa3$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_ws1_tok"&amp;gt;$result.ws1$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_ws2_tok"&amp;gt;$result.ws2$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_ws3_tok"&amp;gt;$result.ws3$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_dct1_tok"&amp;gt;$result.dct1$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_dct2_tok"&amp;gt;$result.dct2$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_dct3_tok"&amp;gt;$result.dct3$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_asm1_tok"&amp;gt;$result.asm1$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_asm2_tok"&amp;gt;$result.asm2$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_asm3_tok"&amp;gt;$result.asm3$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_asm11_tok"&amp;gt;$result.asm11$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_asm22_tok"&amp;gt;$result.asm22$&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_desc_tok"&amp;gt;$result.description$&amp;lt;/set&amp;gt;
              &amp;lt;set token="edit_id_tok"&amp;gt;$result.id$&amp;lt;/set&amp;gt;
              &amp;lt;set token="show_loading"&amp;gt;true&amp;lt;/set&amp;gt;
              &amp;lt;set token="set_key_tok"&amp;gt;$result.key$&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="'result.custom_r1p1_vi'==&amp;amp;quot;line&amp;amp;quot;"&amp;gt;
              &amp;lt;set token="show_row1p1_line"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="'result.custom_r1p2_vi'==&amp;amp;quot;line&amp;amp;quot;"&amp;gt;
              &amp;lt;set token="show_row1p2_line"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
            &amp;lt;condition match="'result.custom_r1p3_vi'==&amp;amp;quot;line&amp;amp;quot;"&amp;gt;
              &amp;lt;set token="show_row1p3_line"&amp;gt;true&amp;lt;/set&amp;gt;
            &amp;lt;/condition&amp;gt;
&amp;lt;/progress&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and only the first condition match statement is applying. The other 3 condition matches do not apply when the results are there, and the tokens should all be true.&lt;/P&gt;

&lt;P&gt;I saw this answer, but every time i try to do it, i get XML errors stating i'm missing closing tags:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/575552/set-multiple-tokens-using-condition-match.html"&gt;https://answers.splunk.com/answers/575552/set-multiple-tokens-using-condition-match.html&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;What am i doing wrong?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 23:45:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457484#M30007</guid>
      <dc:creator>johnmvang</dc:creator>
      <dc:date>2018-11-01T23:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Splunk multiple 'condition match' statements not working in my xml dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457485#M30008</link>
      <description>&lt;P&gt;@johnmvang&lt;/P&gt;

&lt;P&gt;If your search has data then the first condition will be executed; otherwise, it won't be. You have to write conditions in such a manner that will set your tokens for &lt;CODE&gt;'job.resultCount' &amp;gt; 0&lt;/CODE&gt;. Just remove the first condition and merge it with the remaining. &lt;/P&gt;

&lt;P&gt;something like.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;&amp;lt;condition match="''job.resultCount' &amp;gt; 0 AND result.custom_r1p1_vi'==&amp;amp;quot;line&amp;amp;quot;"&amp;gt;
&amp;lt;set token="show_row1p1_line"&amp;gt;true&amp;lt;/set&amp;gt;
SET OTHER TOKENS
&amp;lt;/condition&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Just let me know if you need further assistance.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 04:01:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457485#M30008</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-02T04:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Splunk multiple 'condition match' statements not working in my xml dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457486#M30009</link>
      <description>&lt;P&gt;thanks this works, i get it now. if you want to reply with an answer i can mark it as answered.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:11:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457486#M30009</guid>
      <dc:creator>johnmvang</dc:creator>
      <dc:date>2018-11-02T16:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why are Splunk multiple 'condition match' statements not working in my xml dashboard?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457487#M30010</link>
      <description>&lt;P&gt;@johnmvang&lt;/P&gt;

&lt;P&gt;Glad to help you. Please accept the answer and upvote.&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Happy Splunking&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 16:28:36 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/Why-are-Splunk-multiple-condition-match-statements-not-working/m-p/457487#M30010</guid>
      <dc:creator>kamlesh_vaghela</dc:creator>
      <dc:date>2018-11-02T16:28:36Z</dc:date>
    </item>
  </channel>
</rss>

