<?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 search multiple field values from a table? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212953#M62404</link>
    <description>&lt;P&gt;Considering following is true, try something like this&lt;/P&gt;

&lt;P&gt;"I provassignZip has the value, memzipassignzip value is empty, and if the memzipassignzip has the value, provassignZip value is empty in their respective fields"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=$env$
 GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ 
| eval zipcolumnTocheck=coalesce(memzipassignzip,provassignZip)
| search zipcolumnTocheck=$ProvZipCode$ OR zipcolumnTocheck=$MemZipCode$
|table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode, ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 03 Jan 2017 22:58:30 GMT</pubDate>
    <dc:creator>somesoni2</dc:creator>
    <dc:date>2017-01-03T22:58:30Z</dc:date>
    <item>
      <title>How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212952#M62403</link>
      <description>&lt;P&gt;I have a lot of details in my table, so I want to search values from some of the fields IN THOSE FIELDS There is one relationship between the 2 fields: memzipassignzip and provassignZip. I provassignZip  has the value, memzipassignzip value is empty, and if the memzipassignzip has the value, provassignZip value is empty in their respective fields. I want build the report to search the criteria ..&lt;/P&gt;

&lt;P&gt;My search is like this ..&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=$env$
GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ AND memzipassignzip=$MemZipCode$ OR provassignZip=$ProvZipCode$|table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode,ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;i have given the default values for text boxes '*'  but am not getting the results ...could anyone help me ..in this query..&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:30:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212952#M62403</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-03T22:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212953#M62404</link>
      <description>&lt;P&gt;Considering following is true, try something like this&lt;/P&gt;

&lt;P&gt;"I provassignZip has the value, memzipassignzip value is empty, and if the memzipassignzip has the value, provassignZip value is empty in their respective fields"&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt; index=$env$
 GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ 
| eval zipcolumnTocheck=coalesce(memzipassignzip,provassignZip)
| search zipcolumnTocheck=$ProvZipCode$ OR zipcolumnTocheck=$MemZipCode$
|table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode, ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 03 Jan 2017 22:58:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212953#M62404</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-03T22:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212954#M62405</link>
      <description>&lt;P&gt;hi... i have tried the query you have given but whenever am giving  single value it's either memzipcode or porvzipcode am getting whole values so that's reason i have changed my query like this ....&lt;BR /&gt;
index=$env$ | fillnull value=- provassignZip,memzipassignzip |search GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ AND memzipassignzip=$MemZipCode$ AND provassignZip=$ProvZipCode$&lt;BR /&gt;
 |table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode,ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip....&lt;/P&gt;

&lt;P&gt;even through whenever am searching with  with memzipcode and provzipcode am not getting results..except that everything is good...could you please  give me some idea ...thanks &lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 15:54:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212954#M62405</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-04T15:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212955#M62406</link>
      <description>&lt;P&gt;Try replacing &lt;CODE&gt;memzipassignzip=$MemZipCode$ AND provassignZip=$ProvZipCode$&lt;/CODE&gt; with &lt;CODE&gt;(memzipassignzip=$MemZipCode$ OR provassignZip=$ProvZipCode$)&lt;/CODE&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:23:27 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212955#M62406</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-04T16:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212956#M62407</link>
      <description>&lt;P&gt;i think you misunderstood my question..i will explain you.we have table with above fields...from that table i am trying to filter the fields using GroupNbr, ServiceDate, memzipassignzip,provassignZip ...&lt;BR /&gt;
so i have build the dashboard with four text boxes. those are  GroupNbr, ServiceDate, memzipassignzip,provassignZip. Initially those values are '*'  i mean default values.  &lt;/P&gt;

&lt;P&gt;if i search with only single field i need results, either  (GroupNbr, ServiceDate, memzipassignzip,provassignZip).. i can able to retrieve the results if i search only with one field..&lt;BR /&gt;
if i search with combination  of memzipassignzip,provassignZip am not getting the results... for that i have used this query in the dashboard..&lt;BR /&gt;
index=$env$ | fillnull value=- provassignZip,memzipassignzip |search GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ AND memzipassignzip=$MemZipCode$ AND provassignZip=$ProvZipCode$&lt;BR /&gt;
|table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode,ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip&lt;/P&gt;

&lt;P&gt;is their anyway ... thanks for helping me ....&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:43:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212956#M62407</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-04T16:43:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212957#M62408</link>
      <description>&lt;P&gt;The filter that you're writing (or want to write) works on each row of the result. But in your data, both memzipassignzip and provassignZip do not exist in same rows, (correct???), so what you want will not work. Other option would be to first run some command to get both the fields populated in all the rows and then filter the way you want.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:57:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212957#M62408</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-04T16:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212958#M62409</link>
      <description>&lt;P&gt;we have table like this this ..... i am giving example some of the fields &lt;BR /&gt;
id    groupnumber  serivedate   memzipassignzip       provassignzip&lt;BR /&gt;
1          ooo1                  2017-1-2            65890                      -&lt;BR /&gt;
2              00002            2017-2-3              -                             96580&lt;/P&gt;

&lt;P&gt;if i have given the this values in the textbox  65890,96580 in their respective textboxes&lt;BR /&gt;
i need two rows but am getting not even single one...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 16:57:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212958#M62409</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-04T16:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212959#M62410</link>
      <description>&lt;P&gt;How about this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=$env$ | fillnull value=- provassignZip,memzipassignzip |search GroupNbr=$GroupNbr$ AND ServiceDate=$ServiceDate$ AND ((memzipassignzip=$MemZipCode$ AND provassignZip="-") OR (memzipassignzip="-" AND provassignZip=$ProvZipCode$))
|table id,Info,StartTime,EndTime,duration,StatusCode,StatusMessage,corpEntCd,Costlvlpctl,cptCode,memZipCode,ProcChrgamt,ProvZipCode,SectionNbr,ServiceDate,TretCatCd,TretCatName,bnftAgrmtNbr,acctNbr,GroupNbr,memzipassignzip,provassignZip
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:00:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212959#M62410</guid>
      <dc:creator>somesoni2</dc:creator>
      <dc:date>2017-01-04T17:00:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to search multiple field values from a table?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212960#M62411</link>
      <description>&lt;P&gt;thanks bro..it's working...&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 17:15:16 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-search-multiple-field-values-from-a-table/m-p/212960#M62411</guid>
      <dc:creator>prashanthberam</dc:creator>
      <dc:date>2017-01-04T17:15:16Z</dc:date>
    </item>
  </channel>
</rss>

