title: Zabbix log trigger
body: <p>I'm using Zabbix to monitor a log file. I want to be notified whenever the regular expression 'error' has been inserted to the log.</p>
  
  <p>The Item is:</p>
  
  <pre><code>log[/var/log/device-registry-service/DeviceRegistryService.log]
  </code></pre>
  
  <p>And this is the trigger:</p>
  
  <pre><code>svname1:log[/var/log/device-registry-service/DeviceRegistryService.log].iregexp(error)}=1
  </code></pre>
  
  <p>Problem is, usually when error occurs, the regex 'error' is repeating on the log's delta 10-20 times, which mean I get 10-20 mail notifications.</p>
  
  <p>Can I configure it the notify me when it triggers, unless it was triggered in the last 5 minutes (or so)?</p>
  
  <p>Just to make it clearer: if some arbitrary time the log delta is:</p>
  
  <p><i>
  line1<br>
  line2<br>
  error1<br>
  line3<br>
  error2<br>
  line4<br>
  error3<br>
  </i>
  <br></p>
  
  <p>I want it to trigger only once (or alternatively, configure the action to only once per hour)</p>
  
  <p>Thanks!</p>
  
  <p>edit:
  since I want to know if any error has occurred, last() does not seem to help</p>