<?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 Splunk Trigger alert no transaction inside log file from the directory? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364352#M107530</link>
    <description>&lt;P&gt;I have two directory having two log files&lt;/P&gt;

&lt;P&gt;Directory:&lt;/P&gt;

&lt;P&gt;/logs/Test1/&lt;BR /&gt;
/logs/Test2/&lt;/P&gt;

&lt;P&gt;The directory have two log files:&lt;/P&gt;

&lt;P&gt;Logs:&lt;BR /&gt;
error.log&lt;BR /&gt;
systemout.log&lt;/P&gt;

&lt;P&gt;Have to trigger alert  for the directory and logs have no transaction for 10 min&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 07:18:17 GMT</pubDate>
    <dc:creator>karthi2809</dc:creator>
    <dc:date>2018-04-26T07:18:17Z</dc:date>
    <item>
      <title>Splunk Trigger alert no transaction inside log file from the directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364352#M107530</link>
      <description>&lt;P&gt;I have two directory having two log files&lt;/P&gt;

&lt;P&gt;Directory:&lt;/P&gt;

&lt;P&gt;/logs/Test1/&lt;BR /&gt;
/logs/Test2/&lt;/P&gt;

&lt;P&gt;The directory have two log files:&lt;/P&gt;

&lt;P&gt;Logs:&lt;BR /&gt;
error.log&lt;BR /&gt;
systemout.log&lt;/P&gt;

&lt;P&gt;Have to trigger alert  for the directory and logs have no transaction for 10 min&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 07:18:17 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364352#M107530</guid>
      <dc:creator>karthi2809</dc:creator>
      <dc:date>2018-04-26T07:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Trigger alert no transaction inside log file from the directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364353#M107531</link>
      <description>&lt;P&gt;Try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;| stats count 
| eval source="/logs/Test1/error.log, /logs/Test1/systemout.log, /logs/Test2/error.log, /logs/Test2/systemout.log"
| makemv delim="," source 
| mvexpand source 
| append 
    [ search ... whatever search you would use to find these transactions from these files that includes the source] 
| stats sum(eval(if(isnull(_time),0,1))) as count by source
| where count &amp;lt; 1
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Then set your alert to look back 10 minutes and trigger condition to Number of Results &amp;gt; 0&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 12:37:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364353#M107531</guid>
      <dc:creator>kmaron</dc:creator>
      <dc:date>2018-04-26T12:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk Trigger alert no transaction inside log file from the directory?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364354#M107532</link>
      <description>&lt;P&gt;Can you try this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;|metadata type=sources | eval since=now()-lastTime | search since&amp;gt;=600 | search source="*error.log*" OR source="*systemout.log*" 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 13:28:01 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Splunk-Trigger-alert-no-transaction-inside-log-file-from-the/m-p/364354#M107532</guid>
      <dc:creator>p_gurav</dc:creator>
      <dc:date>2018-04-26T13:28:01Z</dc:date>
    </item>
  </channel>
</rss>

