Elastalert not sending email

Hi Friends need help on elastalert

I wrote one rule for cpu sike alert

the monitored Mule CE ESB.

es_host: elastsearch-hostname
es_port: 9200
name: CPU spike
type: spike
index: host_stats*

threshold: 1
minutes: 1
spike_height: 1
spike_type: "up"


  • query:
    query: 'contgroup: "mygroup" AND measure: "ContCpuUsed" AND value: >1.00'
    #- type:
    #value: "log"
    #doc_type: "json_platform_metrics"

minutes: 0

When i am running this :-
python elastalert.elastalert --verbose --config config.yaml --rule spike.yaml

i am getting this 0 / 0 hits

INFO:elastalert:Queried rule Frequency Alert from 2016-09-08 17:05 UTC to 2016-09-08 17:50 UTC: 0 / 0 hits

But when i am doing elastalert-test-rule spike.yaml
i am getting below and its showing hits there

INFO:elastalert:Queried rule CPU spike from 2016-09-08 16:43 UTC to 2016-09-08 17:28 UTC: 282 / 84 hits

I am not getting alert email can anyone help me on this regard please

Elastalert is not an Elastic product and is not supported by Elastic in any way.

I would suggest seeking help in the issues section of their repository: https://github.com/Yelp/elastalert