<?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 display what values are missing in my lookup table comparing to actual data? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494220#M137787</link>
    <description>&lt;P&gt;Hi  yuvarajvelu,&lt;BR /&gt;
try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index
| eval SERVER=upper(SERVER), DATA=upper(DATA)
| stats count BY SERVER DATA
| append [ | inputlookup Table.csv | eval SERVER=upper(SERVER), DATA=upper(DATA), count=0 | fields SERVER DATA count ]
| stats sum(count) AS total BY SERVER DATA
| where total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
    <pubDate>Thu, 30 Jan 2020 06:54:14 GMT</pubDate>
    <dc:creator>gcusello</dc:creator>
    <dc:date>2020-01-30T06:54:14Z</dc:date>
    <item>
      <title>How to display what values are missing in my lookup table comparing to actual data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494218#M137785</link>
      <description>&lt;P&gt;How to display what values are missing in my lookup table comparing to actual data?&lt;/P&gt;

&lt;P&gt;Table.csv&lt;BR /&gt;
SERVER_A,DATA_A&lt;BR /&gt;
SERVER_A,DATA_B&lt;BR /&gt;
SERVER_A,DATA_C&lt;BR /&gt;
SERVER_B,DATA_A&lt;BR /&gt;
SERVER_B,DATA_D&lt;BR /&gt;
SERVER_B,DATA_E&lt;BR /&gt;
SERVER_C,DATA_B&lt;BR /&gt;
SERVER_C,DATA_E&lt;BR /&gt;
SERVER_C,DATA_C&lt;/P&gt;

&lt;P&gt;Data:&lt;BR /&gt;
SERVER=SERVER_A DATA=DATA_A&lt;BR /&gt;
SERVER=SERVER_A DATA=DATA_C&lt;BR /&gt;
SERVER=SERVER_B DATA=DATA_D&lt;BR /&gt;
SERVER=SERVER_B DATA=DATA_E&lt;BR /&gt;
SERVER=SERVER_C DATA=DATA_B&lt;BR /&gt;
SERVER=SERVER_C DATA=DATA_E&lt;/P&gt;

&lt;P&gt;Expected result:&lt;BR /&gt;
SERVER_A,DATA_B&lt;BR /&gt;
SERVER_B,DATA_A&lt;BR /&gt;
SERVER_C,DATA_C&lt;/P&gt;

&lt;P&gt;Thanks in Advance&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:53:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494218#M137785</guid>
      <dc:creator>yuvarajvelu</dc:creator>
      <dc:date>2020-09-30T03:53:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to display what values are missing in my lookup table comparing to actual data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494219#M137786</link>
      <description>&lt;P&gt;This should get you started.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup Table.csv NOT [ search index=foo SERVER=* DATA=* | stats count by SERVER, DATA | fields SERVER DATA | format ]
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Jan 2020 22:24:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494219#M137786</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2020-01-29T22:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to display what values are missing in my lookup table comparing to actual data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494220#M137787</link>
      <description>&lt;P&gt;Hi  yuvarajvelu,&lt;BR /&gt;
try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;index=my_index
| eval SERVER=upper(SERVER), DATA=upper(DATA)
| stats count BY SERVER DATA
| append [ | inputlookup Table.csv | eval SERVER=upper(SERVER), DATA=upper(DATA), count=0 | fields SERVER DATA count ]
| stats sum(count) AS total BY SERVER DATA
| where total=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Ciao.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jan 2020 06:54:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494220#M137787</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-01-30T06:54:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to display what values are missing in my lookup table comparing to actual data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494221#M137788</link>
      <description>&lt;P&gt;Hi Giuseppe , Thank you so much for your query. It worked well and got the expected answer.&lt;/P&gt;

&lt;P&gt;Thanks,&lt;BR /&gt;
Yuvaraj &lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:00:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494221#M137788</guid>
      <dc:creator>yuvarajvelu</dc:creator>
      <dc:date>2020-02-04T18:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to display what values are missing in my lookup table comparing to actual data?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494222#M137789</link>
      <description>&lt;P&gt;you're welcome!&lt;BR /&gt;
Ciao and next time.&lt;BR /&gt;
Giuseppe&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 18:03:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-display-what-values-are-missing-in-my-lookup-table/m-p/494222#M137789</guid>
      <dc:creator>gcusello</dc:creator>
      <dc:date>2020-02-04T18:03:29Z</dc:date>
    </item>
  </channel>
</rss>

