I have configured, Logstash + redis + indexer + elasticsearch + kibana in
mysetup for logcollection. Using beaver + rsyslog agent to pushlogs to the
logstash. The logs are being collected successfully. What I want to setup
now if the email based alert.
My requirement was If any specific exceptions a JDBC or OutOfMemory
exception for example, an email should be triggered to my emailid.
To achieve that tried multiple options like filter at logstash/indexer
level, shell script to pull from elasticsearch via json query. The filter
option in logstash did not work.
The shell script option worked and I was able to get email with the data
from elasticsearch, however the filter in the json script did not work
somehow and it used to send me the data for entire day(index) rather than
the last 5 minutes.
Not sure if anyone has already tried this and or is this discussed already.
I have configured, Logstash + redis + indexer + elasticsearch + kibana in
mysetup for logcollection. Using beaver + rsyslog agent to pushlogs to the
logstash. The logs are being collected successfully. What I want to setup
now if the email based alert.
My requirement was If any specific exceptions a JDBC or OutOfMemory
exception for example, an email should be triggered to my emailid.
To achieve that tried multiple options like filter at logstash/indexer
level, shell script to pull from elasticsearch via json query. The filter
option in logstash did not work.
The shell script option worked and I was able to get email with the data
from elasticsearch, however the filter in the json script did not work
somehow and it used to send me the data for entire day(index) rather than
the last 5 minutes.
Not sure if anyone has already tried this and or is this discussed
already.
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.