<?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: Correlation using OR ? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96381#M24908</link>
    <description>&lt;P&gt;This sounds dangerous - if ALL your Itatraffic events have the Location field, by doing &lt;CODE&gt;"NOT Location=*"&lt;/CODE&gt; you are effectively removing all ItaTraffic events from your search altogether.&lt;/P&gt;</description>
    <pubDate>Tue, 16 Jul 2013 07:37:11 GMT</pubDate>
    <dc:creator>Ayn</dc:creator>
    <dc:date>2013-07-16T07:37:11Z</dc:date>
    <item>
      <title>Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96375#M24902</link>
      <description>&lt;P&gt;I have used this search command to display timechart and I need to search between two sourcetype and return the specific location from sourcetype="CurrentWeatherSGTraffic" but it returns me all the location even from sourcetype="ltaTraffic". How can I return location only from sourcetype="CurrentWeatherSGTraffic". (note that sourcetype="CurrentWeatherSGTraffic" has the location extracted and is the same as sourcetype="ltaTraffic")&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;sourcetype="CurrentWeatherSGTraffic" OR sourcetype="ltaTraffic" | timechart count(eval(current_summary="Partly Cloudy")) as Cloudy , count(eval(Type=="Accident")) as Ancident by Location&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;&lt;IMG src="http://splunk-base.splunk.com//storage/Unasdasdasdtitled.png" alt="alt text" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 06:59:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96375#M24902</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T06:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96376#M24903</link>
      <description>&lt;P&gt;If both sourcetypes carry the same values for Location, I don't see what the problem is? Or for that matter how you want it to look instead?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:03:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96376#M24903</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-16T07:03:45Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96377#M24904</link>
      <description>&lt;P&gt;My mistake, sourcetype="CurrentWeatherSGTraffic" contains only 6 Location while sourcetype="ltaTraffic" contains a lot.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:05:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96377#M24904</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96378#M24905</link>
      <description>&lt;P&gt;Brackets should do the trick;&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;(sourcetype="CurrentWeatherSGTraffic" Location=*) OR (sourcetype=ltaTraffic NOT Location=*)&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;But, how will you do a By Location in the timechart if the ltaTraffic events don't have a Location?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:10:55 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96378#M24905</guid>
      <dc:creator>Drainy</dc:creator>
      <dc:date>2013-07-16T07:10:55Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96379#M24906</link>
      <description>&lt;P&gt;I needed only the 6 location from sourcetype="CurrentWeatherSGTraffic", which the 6 location is also in ltatraffic. Thanks !&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:14:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96379#M24906</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T07:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96380#M24907</link>
      <description>&lt;P&gt;I had a null field for ltatraffic Location as all the other location is added into NULL, is there anyway to not show it ?&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:25:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96380#M24907</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T07:25:24Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96381#M24908</link>
      <description>&lt;P&gt;This sounds dangerous - if ALL your Itatraffic events have the Location field, by doing &lt;CODE&gt;"NOT Location=*"&lt;/CODE&gt; you are effectively removing all ItaTraffic events from your search altogether.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:37:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96381#M24908</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-16T07:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96382#M24909</link>
      <description>&lt;P&gt;How can I correct it ? I only need the six location.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 07:50:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96382#M24909</guid>
      <dc:creator>kailun92</dc:creator>
      <dc:date>2013-07-16T07:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96383#M24910</link>
      <description>&lt;P&gt;I believed all my location that has accidents has changed to NULL. Including the 6 location I needed.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 08:05:25 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96383#M24910</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T08:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96384#M24911</link>
      <description>&lt;P&gt;If ItaTraffic contains many more locations than the only 6 from CurrentWeatherSGTraffic you care about, my advice would be to create a filter for these using a subsearch.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype="CurrentWeatherSGTraffic" OR sourcetype=ltaTraffic [search sourcetype="CurrentWeatherSGTraffic" | dedup Location | fields Location] | timechart count(eval(current_summary="Partly Cloudy")) as Cloudy , count(eval(Type=="Accident")) as Accident by Location
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will add the Location values from CurrentWeatherSGTraffic as a filter string in your search.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 08:07:29 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96384#M24911</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-07-16T08:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Correlation using OR ?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96385#M24912</link>
      <description>&lt;P&gt;Thanks you are right ! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Jul 2013 08:12:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Correlation-using-OR/m-p/96385#M24912</guid>
      <dc:creator>sbnoobbb</dc:creator>
      <dc:date>2013-07-16T08:12:24Z</dc:date>
    </item>
  </channel>
</rss>

