<?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 How to write a search to only list servers that are sending logs to Splunk with two types of error messages? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224949#M66298</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have server message logs sending to Splunk. Eg 1000 servers sending logs at a time.  Wanted to  find a way to list only the servers which have two types of error appearing in its message files. Both the errors are not in a single line of a message file.&lt;/P&gt;

&lt;P&gt;eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-04-26T13:57:25.940706-07:00 host1 mpath disk disconnected 
2016-04-26T13:57:25.940706-07:00 host1 &amp;lt; other general messages &amp;gt;
----
2016-04-26T13:57:25.940706-07:00 host1 Driver Error 0x1:10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My search should pick all the servers with logs that have BOTH  &lt;CODE&gt;disconnected&lt;/CODE&gt; AND &lt;CODE&gt;Error 0x1:10&lt;/CODE&gt; Messages existing. How would I combine these strings for a search? If I do AND search, it shows servers with both entries present in same line.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;-SG&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2016 14:37:07 GMT</pubDate>
    <dc:creator>sreejithchmd</dc:creator>
    <dc:date>2016-04-27T14:37:07Z</dc:date>
    <item>
      <title>How to write a search to only list servers that are sending logs to Splunk with two types of error messages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224949#M66298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I have server message logs sending to Splunk. Eg 1000 servers sending logs at a time.  Wanted to  find a way to list only the servers which have two types of error appearing in its message files. Both the errors are not in a single line of a message file.&lt;/P&gt;

&lt;P&gt;eg:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2016-04-26T13:57:25.940706-07:00 host1 mpath disk disconnected 
2016-04-26T13:57:25.940706-07:00 host1 &amp;lt; other general messages &amp;gt;
----
2016-04-26T13:57:25.940706-07:00 host1 Driver Error 0x1:10
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;My search should pick all the servers with logs that have BOTH  &lt;CODE&gt;disconnected&lt;/CODE&gt; AND &lt;CODE&gt;Error 0x1:10&lt;/CODE&gt; Messages existing. How would I combine these strings for a search? If I do AND search, it shows servers with both entries present in same line.&lt;/P&gt;

&lt;P&gt;Thanks in advance.&lt;/P&gt;

&lt;P&gt;-SG&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 14:37:07 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224949#M66298</guid>
      <dc:creator>sreejithchmd</dc:creator>
      <dc:date>2016-04-27T14:37:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to only list servers that are sending logs to Splunk with two types of error messages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224950#M66299</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;your search here | rex "(?&amp;lt;err&amp;gt;disconnected|0x1:10)" | search err=* | streamstats count as group by host | stats count by host group | where count&amp;gt;1 | table host
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Apr 2016 18:22:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224950#M66299</guid>
      <dc:creator>sundareshr</dc:creator>
      <dc:date>2016-04-27T18:22:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a search to only list servers that are sending logs to Splunk with two types of error messages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224951#M66300</link>
      <description>&lt;P&gt;Looks like this is not helping .. any  ways of combining two queries together to  filter this ?&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2016 17:07:19 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-to-write-a-search-to-only-list-servers-that-are-sending-logs/m-p/224951#M66300</guid>
      <dc:creator>sreejithchmd</dc:creator>
      <dc:date>2016-04-28T17:07:19Z</dc:date>
    </item>
  </channel>
</rss>

