<?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 I search for multiple errors found in /var/log/messages? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-multiple-errors-found-in-var-log-messages/m-p/384419#M169581</link>
    <description>&lt;P&gt;It looks like you're limiting your results to 1 event per host with the dedup before the stats, which may be why you only see 1 error.  If you remove that, do you see multiple error conditions by host?&lt;/P&gt;</description>
    <pubDate>Wed, 16 May 2018 04:24:04 GMT</pubDate>
    <dc:creator>wildcats12</dc:creator>
    <dc:date>2018-05-16T04:24:04Z</dc:date>
    <item>
      <title>How do I search for multiple errors found in /var/log/messages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-multiple-errors-found-in-var-log-messages/m-p/384418#M169580</link>
      <description>&lt;P&gt;I want to search for the following 3 error combinations and send alert if any, some or all are found:&lt;/P&gt;

&lt;OL&gt;
&lt;LI&gt;Error #1 - process=kernel AND the strings "segfault" AND "error" appear&lt;/LI&gt;
&lt;LI&gt;Error #2 - process=abrt AND the string "core dump" appear&lt;/LI&gt;
&lt;LI&gt;Error #3 - process=xinetd AND the strings "EXIT" AND "omni" appear&lt;/LI&gt;
&lt;/OL&gt;

&lt;P&gt;My search attempt below seems to only find/match and report only Error #3 where I want to show any/all matches in the report.&lt;/P&gt;

&lt;P&gt;My Current search is:&lt;/P&gt;

&lt;P&gt;host=node-1 OR host=node-2 index=os &lt;BR /&gt;
(source=/var/log/messages OR source=/var/log/secure sourcetype=syslog OR sourcetype=linux_secure (process=kernel AND segfault AND error) OR (process=abrt AND "core dump") OR (process=xinetd AND "EXIT" AND omni))&lt;BR /&gt;
| dedup host&lt;BR /&gt;
|stats count list(process), list(filesystem), list(event_time) by host &lt;BR /&gt;
|rename host AS "NFS Server", list(process) AS "Failed Process", list(filesystem) AS "Failed Filesystem", count AS "Errors Found", list(event_time) as "Time"&lt;BR /&gt;
|table "NFS Server", "Failed Process", "Failed Filesystem", "Errors Found", "Time"&lt;/P&gt;

&lt;P&gt;All advice appreciated.&lt;BR /&gt;
cheers,&lt;BR /&gt;
D&lt;/P&gt;</description>
      <pubDate>Tue, 29 Sep 2020 19:26:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-multiple-errors-found-in-var-log-messages/m-p/384418#M169580</guid>
      <dc:creator>damonmanni</dc:creator>
      <dc:date>2020-09-29T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I search for multiple errors found in /var/log/messages?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-multiple-errors-found-in-var-log-messages/m-p/384419#M169581</link>
      <description>&lt;P&gt;It looks like you're limiting your results to 1 event per host with the dedup before the stats, which may be why you only see 1 error.  If you remove that, do you see multiple error conditions by host?&lt;/P&gt;</description>
      <pubDate>Wed, 16 May 2018 04:24:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/How-do-I-search-for-multiple-errors-found-in-var-log-messages/m-p/384419#M169581</guid>
      <dc:creator>wildcats12</dc:creator>
      <dc:date>2018-05-16T04:24:04Z</dc:date>
    </item>
  </channel>
</rss>

