<?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: Display sources which do not have a string in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48361#M9155</link>
    <description>&lt;P&gt;Is not output to the list if any (host log is not output) host has not been activated within the specified time that it is the search is present but OK?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Aug 2013 02:28:48 GMT</pubDate>
    <dc:creator>HiroshiSatoh</dc:creator>
    <dc:date>2013-08-28T02:28:48Z</dc:date>
    <item>
      <title>Display sources which do not have a string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48358#M9152</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;When I restart a large application with hundreds of processes, I can see a string like "startup successful" from the logs.&lt;/P&gt;

&lt;P&gt;How can I display a list of host and sources which do not have this string?&lt;/P&gt;

&lt;P&gt;host1:/a/b/c1/file1.log&lt;BR /&gt;
host1:/a/b/c2/file2.log&lt;BR /&gt;
host1:/a/b/c3/file3.log&lt;BR /&gt;
host2:/a/b/c1/file1.log&lt;BR /&gt;
host2:/a/b/c2/file2.log&lt;BR /&gt;
host2:/a/b/c3/file3.log&lt;BR /&gt;
...&lt;/P&gt;

&lt;P&gt;Suppose host99:/a/b/c13/file23.log did not have the "startup successful" string.  How would I display that?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 18:50:31 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48358#M9152</guid>
      <dc:creator>nbk7e9d</dc:creator>
      <dc:date>2013-08-27T18:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Display sources which do not have a string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48359#M9153</link>
      <description>&lt;P&gt;Proving the negative is a bit harder than opposite. Assuming that all of those files are of the same &lt;CODE&gt;sourcetype&lt;/CODE&gt;, one approach is to use a simple subsearch;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sourcetype=XXX earliest=-15m NOT [search sourcetype=XXX earliest=-15m "startup successful" | dedup host, source | fields + host, source] | dedup host, source | table host, source
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Set the &lt;CODE&gt;earliest&lt;/CODE&gt; time at the time of the restart, so you don't get irrelevant older events included. In this case I gave the application 15 minutes to startup, before running the search so-to-speak.&lt;/P&gt;

&lt;P&gt;/K&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 19:34:18 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48359#M9153</guid>
      <dc:creator>kristian_kolb</dc:creator>
      <dc:date>2013-08-27T19:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Display sources which do not have a string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48360#M9154</link>
      <description>&lt;P&gt;Since I'm selecting a custom time from the timepicker and my sourcetypes aren't exactly the same, I used:&lt;/P&gt;

&lt;P&gt;host=host* sourcetype=logs* NOT [search host=host* sourcetype=logs* "startup successful" | dedup host, source | fields + host, source] | dedup host, source | table host, source&lt;/P&gt;

&lt;P&gt;This works nicely.  Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2013 22:01:02 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48360#M9154</guid>
      <dc:creator>nbk7e9d</dc:creator>
      <dc:date>2013-08-27T22:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: Display sources which do not have a string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48361#M9155</link>
      <description>&lt;P&gt;Is not output to the list if any (host log is not output) host has not been activated within the specified time that it is the search is present but OK?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 02:28:48 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48361#M9155</guid>
      <dc:creator>HiroshiSatoh</dc:creator>
      <dc:date>2013-08-28T02:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Display sources which do not have a string</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48362#M9156</link>
      <description>&lt;P&gt;The double negative type question is confusing me.  &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;  This search will give me a table of hosts,logs that do NOT have "start successful" message from the time I choose in the TimePicker.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2013 17:35:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/Display-sources-which-do-not-have-a-string/m-p/48362#M9156</guid>
      <dc:creator>nbk7e9d</dc:creator>
      <dc:date>2013-08-28T17:35:37Z</dc:date>
    </item>
  </channel>
</rss>

