<?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 query data that has no value? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384534#M173832</link>
    <description>&lt;P&gt;@dscott198 if your issue is resolved, please accept the answer by @sdchakraborty to mark this question as answered!&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jan 2019 19:33:18 GMT</pubDate>
    <dc:creator>niketn</dc:creator>
    <dc:date>2019-01-09T19:33:18Z</dc:date>
    <item>
      <title>How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384528#M173826</link>
      <description>&lt;P&gt;Hi fellow Splunkers!&lt;/P&gt;

&lt;P&gt;I'm hoping you can help my manager and I with a certain problem we're trying to solve. We have an internal system that's used by a number of employees and we're trying to find the pages that exist but employees never use. &lt;/P&gt;

&lt;P&gt;You may already see the predicament we're running into -- When running a query with the 'rare' function, we're getting page hits that have a value of at least 1 -- as there's no log that's generated when a page is not accessed. We're looking for page hits with a value of 0.&lt;/P&gt;

&lt;P&gt;We've thought about running a script periodically that accesses every page, therefore any value that has 1 would actually be 0. Though we don't want to do this as we're a large company and there's other organizations that very well could be thrown off by this fake data.&lt;/P&gt;

&lt;P&gt;The best idea my manager and I have come with is finding a way to upload a table of every page that's available and comparing the logs with that table in Splunk. He and I are both novices with Splunk and don't know if this is actually possible, however. Splunk may not be the right tool for this task but we'd prefer to do it in Splunk so we can start generated regular reports on these pages that don't get accessed month over month.&lt;/P&gt;

&lt;P&gt;Any insight you all may be able to provide would be amazing!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 23:29:03 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384528#M173826</guid>
      <dc:creator>dscott198</dc:creator>
      <dc:date>2019-01-02T23:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384529#M173827</link>
      <description>&lt;P&gt;Unless you have Petabytes of txt this should be easy Please give more concrete logs.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Jan 2019 00:05:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384529#M173827</guid>
      <dc:creator>valiquet</dc:creator>
      <dc:date>2019-01-03T00:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384530#M173828</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I think the below idea of yours should work.&lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;The best idea my manager and I have come with is finding a way to upload a table of every page that's available and comparing the logs with that table in Splunk.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;

&lt;P&gt;you can store the page list in a lookup file then write a SPL query to compare the indexed data to lookup table data. If you need help on creating lookups and SPL query let me know I can help. &lt;/P&gt;

&lt;P&gt;Also you can refer the below link for lookup creation,&lt;/P&gt;

&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/Usefieldlookupstoaddinformationtoyourevents"&gt;https://docs.splunk.com/Documentation/Splunk/7.2.3/Knowledge/Usefieldlookupstoaddinformationtoyourevents&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;your SPL should look like below,&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| inputlookup &amp;lt;your lookup name(lookup should contain the page title)&amp;gt;
| join type=left page_title
[| &amp;lt;your search which should return the page name as well&amp;gt; ]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Sid&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 03:37:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384530#M173828</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-01-04T03:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384531#M173829</link>
      <description>&lt;P&gt;@dscott198 for the internal system that you have is there a repository of how many pages exist in the system. If there is one then after every system change (i.e. Addition or Removal of Pages during Upgrades) the list would need to be updated in Splunk. It could be through&lt;BR /&gt;
1) Database (through &lt;A href="https://splunkbase.splunk.com/app/2686/"&gt;Splunk DB Connect&lt;/A&gt;)&lt;BR /&gt;
2) REST API (through &lt;A href="https://splunkbase.splunk.com/app/2962/"&gt;Splunk Add On Builder&lt;/A&gt;)&lt;BR /&gt;
or 3) Manually Scripted (through &lt;A href="https://splunkbase.splunk.com/app/2962/"&gt;Splunk Add On Builder&lt;/A&gt;)&lt;/P&gt;

&lt;P&gt;Based on your need update the master inventory list to &lt;A href="https://docs.splunk.com/Documentation/Splunk/latest/Knowledge/Aboutlookupsandfieldactions"&gt;Lookup&lt;/A&gt; or &lt;A href="http://dev.splunk.com/view/webframework-developapps/SP-CAAAEZK"&gt;KV Store&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;Once you have master inventory in Splunk you can refer to several examples on Splunk Answers where Lookups can be used to find missing Data in the Index:&lt;/P&gt;

&lt;P&gt;&lt;A href="https://answers.splunk.com/answers/574406/how-to-show-hosts-with-no-entries.html"&gt;https://answers.splunk.com/answers/574406/how-to-show-hosts-with-no-entries.html&lt;/A&gt;&lt;BR /&gt;
&lt;A href="https://answers.splunk.com/answers/614029/how-to-alert-when-we-are-receiving-data-from-hosts.html"&gt;https://answers.splunk.com/answers/614029/how-to-alert-when-we-are-receiving-data-from-hosts.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Jan 2019 03:35:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384531#M173829</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-05T03:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384532#M173830</link>
      <description>&lt;P&gt;This totally worked!&lt;/P&gt;

&lt;P&gt;Thanks for the help, sdchakraborty. Also thank you for offering to help me with it in case I got stuck but I was able to struggle through it on my own. &lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:56:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384532#M173830</guid>
      <dc:creator>dscott198</dc:creator>
      <dc:date>2019-01-09T14:56:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384533#M173831</link>
      <description>&lt;P&gt;Cool...Have a nice day ☺️&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:59:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384533#M173831</guid>
      <dc:creator>sdchakraborty</dc:creator>
      <dc:date>2019-01-09T14:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to query data that has no value?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384534#M173832</link>
      <description>&lt;P&gt;@dscott198 if your issue is resolved, please accept the answer by @sdchakraborty to mark this question as answered!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 19:33:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-query-data-that-has-no-value/m-p/384534#M173832</guid>
      <dc:creator>niketn</dc:creator>
      <dc:date>2019-01-09T19:33:18Z</dc:date>
    </item>
  </channel>
</rss>

