<?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 do I make one field mandatory? in Dashboards &amp; Visualizations</title>
    <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407535#M40903</link>
    <description>&lt;P&gt;writing &lt;CODE&gt;AND&lt;/CODE&gt; makes it compulsory to have both fields in events and making it &lt;CODE&gt;OR&lt;/CODE&gt; makes either one of the field is present then also you will get results.&lt;BR /&gt;
So what is your expected output?&lt;/P&gt;</description>
    <pubDate>Fri, 05 Oct 2018 09:47:20 GMT</pubDate>
    <dc:creator>493669</dc:creator>
    <dc:date>2018-10-05T09:47:20Z</dc:date>
    <item>
      <title>How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407530#M40898</link>
      <description>&lt;P&gt;Hello everybody&lt;/P&gt;

&lt;P&gt;I have a dashboard with 4 text inputs (Example: color, shape size, weight)&lt;/P&gt;

&lt;P&gt;Splunk takes all these values and performs a search over 9 different indexes.&lt;/P&gt;

&lt;P&gt;The problem is that some indexes don't contain all the fields.&lt;BR /&gt;
for example&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Index A has ALL fields
Index B has fields: size, shape and taste
Index C has fields:color, size, sound
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;that's why when i enter red asterix asterix asterix&lt;/P&gt;

&lt;P&gt;i want to have all the events with color=red even if i get something like&lt;BR /&gt;
&lt;STRONG&gt;red&lt;/STRONG&gt; null big 80 indexY&lt;BR /&gt;
&lt;STRONG&gt;red&lt;/STRONG&gt; square small null indexX&lt;/P&gt;

&lt;P&gt;by the next search i would define the shape=square as mandatory field&lt;BR /&gt;
red &lt;STRONG&gt;square&lt;/STRONG&gt; small null indexX&lt;BR /&gt;
null &lt;STRONG&gt;square&lt;/STRONG&gt; null null 80 indexZ&lt;/P&gt;

&lt;P&gt;Is it somehow possible? maybe with a checkbox?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:01:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407530#M40898</guid>
      <dc:creator>alex_kh</dc:creator>
      <dc:date>2018-10-04T12:01:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407531#M40899</link>
      <description>&lt;P&gt;make field value as null whose value is not present like below-&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|eval size=if(isnull(size),"NULL",size), shape=if(isnull(shape),"NULL",shape)
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:11:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407531#M40899</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-04T12:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407532#M40900</link>
      <description>&lt;P&gt;I suppose you got me wrong.&lt;/P&gt;

&lt;P&gt;I have 4 inputs &lt;BR /&gt;
color=/*&lt;BR /&gt;
size=/*&lt;BR /&gt;
shape=/*&lt;BR /&gt;
weight=/*&lt;/P&gt;

&lt;P&gt;If user enters&lt;/P&gt;

&lt;P&gt;color= red&lt;BR /&gt;
size=/*&lt;BR /&gt;
shape=/*&lt;BR /&gt;
weight=/*&lt;/P&gt;

&lt;P&gt;i want to have results like&lt;/P&gt;

&lt;P&gt;red smth smth smth&lt;BR /&gt;
red smth smth smth&lt;BR /&gt;
red null  null smth&lt;/P&gt;

&lt;P&gt;But the color column is ALWAYS filled with red&lt;/P&gt;

&lt;P&gt;&lt;STRONG&gt;next search&lt;/STRONG&gt;&lt;BR /&gt;
User enters&lt;/P&gt;

&lt;P&gt;color= /*&lt;BR /&gt;
size=Big&lt;BR /&gt;
shape=/*&lt;BR /&gt;
weight=/*&lt;/P&gt;

&lt;P&gt;I get a table with&lt;BR /&gt;
smth &lt;STRONG&gt;big&lt;/STRONG&gt; smth smth&lt;BR /&gt;
smth &lt;STRONG&gt;big&lt;/STRONG&gt; smth Null&lt;BR /&gt;
null &lt;STRONG&gt;big&lt;/STRONG&gt; smth smth&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 12:42:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407532#M40900</guid>
      <dc:creator>alex_kh</dc:creator>
      <dc:date>2018-10-04T12:42:21Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407533#M40901</link>
      <description>&lt;P&gt;@alex_kh ,&lt;BR /&gt;
Suppose when you search with &lt;CODE&gt;Colour=Red&lt;/CODE&gt; and other field as &lt;CODE&gt;*&lt;/CODE&gt;, then which events you are receiving and what events you are expecting to come as output?&lt;/P&gt;</description>
      <pubDate>Thu, 04 Oct 2018 14:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407533#M40901</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-04T14:07:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407534#M40902</link>
      <description>&lt;P&gt;If i run my query with AND&lt;BR /&gt;
color=$token1$ shape=$token2$ I either get no results or only results from the index which contains all fields&lt;/P&gt;

&lt;P&gt;when i do the same stuff with OR&lt;BR /&gt;
color=$token1$ OR shape=$token2$ &lt;/P&gt;

&lt;P&gt;I get smth like&lt;BR /&gt;
red round&lt;BR /&gt;
red square&lt;BR /&gt;
yellow round&lt;BR /&gt;
green triangle&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 09:40:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407534#M40902</guid>
      <dc:creator>alex_kh</dc:creator>
      <dc:date>2018-10-05T09:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I make one field mandatory?</title>
      <link>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407535#M40903</link>
      <description>&lt;P&gt;writing &lt;CODE&gt;AND&lt;/CODE&gt; makes it compulsory to have both fields in events and making it &lt;CODE&gt;OR&lt;/CODE&gt; makes either one of the field is present then also you will get results.&lt;BR /&gt;
So what is your expected output?&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2018 09:47:20 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Dashboards-Visualizations/How-do-I-make-one-field-mandatory/m-p/407535#M40903</guid>
      <dc:creator>493669</dc:creator>
      <dc:date>2018-10-05T09:47:20Z</dc:date>
    </item>
  </channel>
</rss>

