<?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: AND STATMENTS - HOW DOES LIMIT THE DATA in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320787#M4481</link>
    <description>&lt;P&gt;Hi thanks for you answer &lt;/P&gt;

&lt;P&gt;But if I am searching for DATA and BASE does this not in theory mean that all the entries for DATABASE will be picked up by this search. As DATEBASE contains DATA and BASE &lt;/P&gt;

&lt;P&gt;But this is not what I am seeing DATABASE is yelding more results the (DATA AND BASE) &lt;/P&gt;

&lt;P&gt;if I have say a string like  manchesteruniteduseDATAwhentheyareplayinggamestogiveaBASE  &lt;/P&gt;

&lt;P&gt;and I search  for (DATA AND BASE) it not also going to pick it up &lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 11:21:31 GMT</pubDate>
    <dc:creator>J_Walker_Ex</dc:creator>
    <dc:date>2017-07-20T11:21:31Z</dc:date>
    <item>
      <title>AND STATMENTS - HOW DOES LIMIT THE DATA</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320785#M4479</link>
      <description>&lt;P&gt;Hi , I have just performed a search &lt;/P&gt;

&lt;P&gt;Using Database and file path as the items &lt;/P&gt;

&lt;P&gt;(DATABASE) (I:\LOCATION\AREA\UK). This returns 1000000 Results&lt;/P&gt;

&lt;P&gt;I tried to QC my method by looking for the following &lt;/P&gt;

&lt;P&gt;(DATA AND BASE) (I:\LOCATION\AREA\UK). This only returned 30000 Results. Which seems strange as I thought in theory this one should return all the DATABASE entries and any other occurrence of data and base. I am doing something obvious wrong ? &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 09:21:59 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320785#M4479</guid>
      <dc:creator>J_Walker_Ex</dc:creator>
      <dc:date>2017-07-20T09:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: AND STATMENTS - HOW DOES LIMIT THE DATA</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320786#M4480</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;if I am correct, there is quite a difference here.&lt;BR /&gt;
Searching for "database" will return events with the term "database". Whereas searching for DATA AND BASE will &lt;STRONG&gt;only&lt;/STRONG&gt; return events with the terms data and base.&lt;BR /&gt;
You would need to specify wildcards in order to get everything that contains the term &lt;EM&gt;data&lt;/EM&gt;, like "*data*". "data*" etc.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 11:13:08 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320786#M4480</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-07-20T11:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: AND STATMENTS - HOW DOES LIMIT THE DATA</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320787#M4481</link>
      <description>&lt;P&gt;Hi thanks for you answer &lt;/P&gt;

&lt;P&gt;But if I am searching for DATA and BASE does this not in theory mean that all the entries for DATABASE will be picked up by this search. As DATEBASE contains DATA and BASE &lt;/P&gt;

&lt;P&gt;But this is not what I am seeing DATABASE is yelding more results the (DATA AND BASE) &lt;/P&gt;

&lt;P&gt;if I have say a string like  manchesteruniteduseDATAwhentheyareplayinggamestogiveaBASE  &lt;/P&gt;

&lt;P&gt;and I search  for (DATA AND BASE) it not also going to pick it up &lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 11:21:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320787#M4481</guid>
      <dc:creator>J_Walker_Ex</dc:creator>
      <dc:date>2017-07-20T11:21:31Z</dc:date>
    </item>
    <item>
      <title>Re: AND STATMENTS - HOW DOES LIMIT THE DATA</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320788#M4482</link>
      <description>&lt;P&gt;No, think of it like SQL (if you know this language).&lt;/P&gt;

&lt;P&gt;If you search for something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE x LIKE "DATA" OR "BASE"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;this will only return events where x = DATA or x = BASE, but it will NOT return events with x = DATABASE.&lt;/P&gt;

&lt;P&gt;Because then, you would need to define wildcards, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;WHERE x LIKE "DATA%" OR "%BASE"
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;So, searching for "base" AND "data" will not return database, if it is one term without a space.&lt;BR /&gt;
Is it clearer now?&lt;/P&gt;

&lt;P&gt;Searching for (DATA* AND *BASE) should return all the events you want.&lt;/P&gt;

&lt;P&gt;Skalli&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 11:37:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320788#M4482</guid>
      <dc:creator>skalliger</dc:creator>
      <dc:date>2017-07-20T11:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: AND STATMENTS - HOW DOES LIMIT THE DATA</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320789#M4483</link>
      <description>&lt;P&gt;In order for them to be similar, you need to use &lt;CODE&gt;(DATA* AND *BASE)&lt;/CODE&gt;.  You would very much benefit from examining the &lt;CODE&gt;lispy&lt;/CODE&gt; generated (the internal Splunk DB language) for each of your searches.  Run a search, then after it is done, towards the right above the histogram is a &lt;CODE&gt;Job&lt;/CODE&gt; menu.  Click that and select &lt;CODE&gt;Inspect job&lt;/CODE&gt;.  This will open a new window with useful information, but not the &lt;CODE&gt;lispy&lt;/CODE&gt;.  At the top of this window is a &lt;CODE&gt;search log&lt;/CODE&gt; link.  Click that and search for &lt;CODE&gt;lispy&lt;/CODE&gt;.  Dig and learn.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 14:49:22 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/AND-STATMENTS-HOW-DOES-LIMIT-THE-DATA/m-p/320789#M4483</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-07-20T14:49:22Z</dc:date>
    </item>
  </channel>
</rss>

