I was testing logstash for a java application and it was looking good but in order to have a better solution i need to know if i can send an email when we have an ERROR or when the server starts(if we deploy our application). For example for a Java Jboss log, if an error occurs we can a see a message level "ERROR" and when an application start we can see this message in log "Started in".
Someone knows if this is possible with logstash filters or a tool related to logstash like elastic or kibana?
Currently we use file beat too.
You can wrap an email output in a conditional that checks if the current event is an error. The problem with doing this is that there won't be any rate-limiting. If your application acts up and spews error messages you'll get flooded with email.
Another option could be to use Watcher or Elastalert.
I haven't used either Watcher or Elastalert so I can't make a recommendation, but I suggest you don't use the email output for the reasons I mentioned previously.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.