title: Log file monitoring with zabbix 3
body: <p>My objective is to get notified every time when the word "alert" occurrence has been detected in a specific Log file :</p>
  
  <p><em>/var/log/apache2/test-error.log</em></p>
  
  <p><strong>steps I did</strong> :</p>
  
  <p>1 - ensure configuration between zabbix's server and agent</p>
  
  <p>2 - zabbix user in the host has right to read the log file</p>
  
  <p>3 - an item is created with the following key :</p>
  
  <pre><code>log[/var/log/apache2/test-error.log,alert]
  </code></pre>
  
  <p>4 - a trigger has been created with the following expression :</p>
  
  <pre><code>{ha3.datacenter.ma:log[/var/log/apache2/test-error.log,alert].str(server)}=1
  </code></pre>
  
  <p><strong>Problem</strong> :</p>
  
  <p>the trigger stat always is OK, where they are multiple lines added to the log file witch match the regex continuously ! </p>