<?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: where command with multiple sourcetypes in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64772#M13025</link>
    <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Perhaps what you're trying to do is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=SOURCE1 AS_AS_Call_Type=network) OR sourcetype=SOURCE2 OR sourcetype=SOURCE3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will match events with "sourcetype=SOURCE1 AND AS_AS_Call_Type=network", as well as the other two sourcetypes.&lt;/P&gt;

&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 09:49:56 GMT</pubDate>
    <dc:creator>sophy</dc:creator>
    <dc:date>2020-09-28T09:49:56Z</dc:date>
    <item>
      <title>where command with multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64771#M13024</link>
      <description>&lt;P&gt;Greetings.&lt;BR /&gt;
I am using multiple sourcetypes in a query that I am working with. If you open a search using something like this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=SOURCE1 OR sourcetype=SOURCE2 OR sourcetype=SOURCE3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Playing around, if I try to filter anything with SOURCE1's events, all of the events from SOURCE2 and SOURCE3 get eliminated as well. For example (where AS_AS_Call_Type is an event field found only in SOURCE1):&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=SOURCE1 or sourcetype=SOURCE2 OR sourcetype=SOURCE3 AS_AS_Call_Type=network
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Only events of SOURCE1 get returned. What I want is to keep all of the events from SOURCE2 and SOURCE3, along with the filtered events of SOURCE1.&lt;/P&gt;

&lt;P&gt;How can I do this?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:49:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64771#M13024</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2020-09-28T09:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: where command with multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64772#M13025</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;

&lt;P&gt;Perhaps what you're trying to do is:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;(sourcetype=SOURCE1 AS_AS_Call_Type=network) OR sourcetype=SOURCE2 OR sourcetype=SOURCE3
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;This will match events with "sourcetype=SOURCE1 AND AS_AS_Call_Type=network", as well as the other two sourcetypes.&lt;/P&gt;

&lt;P&gt;Does that make sense?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 09:49:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64772#M13025</guid>
      <dc:creator>sophy</dc:creator>
      <dc:date>2020-09-28T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: where command with multiple sourcetypes</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64773#M13026</link>
      <description>&lt;P&gt;Makes sense! The only command that seems not to be working is isnotnull(field) but I can do without that for now. Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Aug 2011 18:12:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/where-command-with-multiple-sourcetypes/m-p/64773#M13026</guid>
      <dc:creator>msarro</dc:creator>
      <dc:date>2011-08-25T18:12:05Z</dc:date>
    </item>
  </channel>
</rss>

