<?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: How to table results with multiple evals? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-results-with-multiple-evals/m-p/633818#M220134</link>
    <description>&lt;P&gt;I assume that you are saying that if a search has True anywhere, then it's True, otherwise false.&lt;/P&gt;&lt;P&gt;You could do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*) as * by Search
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(isnotnull(mvfind(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, "True")), "True", "False") ]&lt;/LI-CODE&gt;&lt;P&gt;but you could also set values to 1 and 0 for True/False and then do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats max(*) as * by Search
| foreach Triggered	Scheduled Test [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=1, "True", "False") ]&lt;/LI-CODE&gt;</description>
    <pubDate>Wed, 08 Mar 2023 22:19:06 GMT</pubDate>
    <dc:creator>bowesmana</dc:creator>
    <dc:date>2023-03-08T22:19:06Z</dc:date>
    <item>
      <title>How to table results with multiple evals?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-results-with-multiple-evals/m-p/633808#M220129</link>
      <description>&lt;P&gt;I have a search where I have multiple evals to check if items are true of false. With my results I want to show something like:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;Search&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Triggered&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Scheduled&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Test&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="40px"&gt;TestAlert1&lt;/TD&gt;
&lt;TD width="25%" height="40px"&gt;
&lt;P&gt;True&lt;/P&gt;
&lt;/TD&gt;
&lt;TD width="25%" height="40px"&gt;True&lt;/TD&gt;
&lt;TD width="25%" height="40px"&gt;True&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currently what I am getting is something like this:&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;Search&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Triggered&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Scheduled&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;Test&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;TestAlert1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;True&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;TestAlert1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;True&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="25%" height="25px"&gt;TestAlert1&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;False&lt;/TD&gt;
&lt;TD width="25%" height="25px"&gt;True&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;I am thinking I need to use xyseries chart but am not sure.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Mar 2023 20:43:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-table-results-with-multiple-evals/m-p/633808#M220129</guid>
      <dc:creator>aohls</dc:creator>
      <dc:date>2023-03-08T20:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to table results with multiple evals?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-table-results-with-multiple-evals/m-p/633818#M220134</link>
      <description>&lt;P&gt;I assume that you are saying that if a search has True anywhere, then it's True, otherwise false.&lt;/P&gt;&lt;P&gt;You could do something like&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats values(*) as * by Search
| foreach * [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(isnotnull(mvfind(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;, "True")), "True", "False") ]&lt;/LI-CODE&gt;&lt;P&gt;but you could also set values to 1 and 0 for True/False and then do&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;| stats max(*) as * by Search
| foreach Triggered	Scheduled Test [ eval &amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=if(&amp;lt;&amp;lt;FIELD&amp;gt;&amp;gt;=1, "True", "False") ]&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 08 Mar 2023 22:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-table-results-with-multiple-evals/m-p/633818#M220134</guid>
      <dc:creator>bowesmana</dc:creator>
      <dc:date>2023-03-08T22:19:06Z</dc:date>
    </item>
  </channel>
</rss>

