<?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 do you write a query that lists events from source type A only when a corresponding event in source type B doesn't contain a specific event code? in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401009#M6915</link>
    <description>&lt;P&gt;Thank you for the query. but i tried using transactions it grouped the events but I dont have a way to say &lt;BR /&gt;
startwith and does not endwith &lt;BR /&gt;
| transaction host maxspan=2m  startswith=(EventCode="5009") NOT (endswith=(EventCode="10003"))&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jan 2019 18:15:43 GMT</pubDate>
    <dc:creator>maniishpawar</dc:creator>
    <dc:date>2019-01-10T18:15:43Z</dc:date>
    <item>
      <title>How do you write a query that lists events from source type A only when a corresponding event in source type B doesn't contain a specific event code?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401007#M6913</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am trying to write a query to list events from source type A only when the corresponding event in source type B does not contain a specific event code. I believe the only correlation element here is the _time. &lt;/P&gt;

&lt;P&gt;Real scenario: every time we deploy a build, there are some entries in a log file, but IIS server also generate an error event code at that time. I wanted to capture the IIS errors only when there is no build deployment.&lt;/P&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 14:39:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401007#M6913</guid>
      <dc:creator>maniishpawar</dc:creator>
      <dc:date>2019-01-09T14:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do you write a query that lists events from source type A only when a corresponding event in source type B doesn't contain a specific event code?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401008#M6914</link>
      <description>&lt;P&gt;Try a subsearch, something like this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=access_combined NOT 
    [ search sourcetype=linux_secure 
    | eval clientip=dest 
    | fields clientip]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;If the fieldnames are the same in each source, you won't need to do the eval that I did in my subsearch.  This search above will show all of the clientip field values, within the time frame that I am searching, where those ip addresses aren't in the linux_secure sourcetype in the dest field.&lt;/P&gt;

&lt;P&gt;I know this isn't specific to your data sources, but hopefully, you can extrapolate the concept to use in your search.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jan 2019 15:06:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401008#M6914</guid>
      <dc:creator>kmorris_splunk</dc:creator>
      <dc:date>2019-01-09T15:06:46Z</dc:date>
    </item>
    <item>
      <title>Re: How do you write a query that lists events from source type A only when a corresponding event in source type B doesn't contain a specific event code?</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401009#M6915</link>
      <description>&lt;P&gt;Thank you for the query. but i tried using transactions it grouped the events but I dont have a way to say &lt;BR /&gt;
startwith and does not endwith &lt;BR /&gt;
| transaction host maxspan=2m  startswith=(EventCode="5009") NOT (endswith=(EventCode="10003"))&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jan 2019 18:15:43 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/How-do-you-write-a-query-that-lists-events-from-source-type-A/m-p/401009#M6915</guid>
      <dc:creator>maniishpawar</dc:creator>
      <dc:date>2019-01-10T18:15:43Z</dc:date>
    </item>
  </channel>
</rss>

