# Elasticalert windows service is getting paused automatically after starting or resuming it , all the configurations are right

**URL:** <https://discuss.elastic.co/t/elasticalert-windows-service-is-getting-paused-automatically-after-starting-or-resuming-it-all-the-configurations-are-right/371513>\
**Category:** Kibana\
**Created:** [December 5, 2024, 8:24am UTC](https://discuss.elastic.co/t/elasticalert-windows-service-is-getting-paused-automatically-after-starting-or-resuming-it-all-the-configurations-are-right/371513 "2024-12-05T08:24:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![chaitanya12](https://avatars.discourse-cdn.com/v4/letter/c/f9ae1b/32.png) [@chaitanya12](https://discuss.elastic.co/u/chaitanya12)\
**Post date:** [December 5, 2024, 8:24am UTC](https://discuss.elastic.co/t/elasticalert-windows-service-is-getting-paused-automatically-after-starting-or-resuming-it-all-the-configurations-are-right/371513/1 "2024-12-05T08:24:44Z")

</div>

The elasticalert is going in paused sate automatically after starting and never in runnning state. this is very strange.  
this is the config.yaml -

# This is the folder that contains the rule yaml files

# Any .yaml file will be loaded as a rule

rules\_folder: xxxx

# How often ElastAlert will query Elasticsearch

# The unit can be anything from weeks to seconds

run\_every:  
minutes: 1

# ElastAlert will buffer results from the most recent

# period of time, in case some log sources are not in real time

buffer\_time:  
minutes: 15

# The Elasticsearch hostname for metadata writeback

# Note that every rule can have its own Elasticsearch host

es\_host: xxxxxx

# The Elasticsearch port

es\_port: xxx

# Connect with TLS to Elasticsearch

#use\_ssl: True

# Verify TLS certificates

#verify\_certs: True

# Option basic-auth username and password for Elasticsearch

es\_username: xxx  
es\_password: xxx

# Use SSL authentication with client certificates client\_cert must be

# a pem file containing both cert and key for client

#verify\_certs: True  
#ca\_certs: /path/to/cacert.pem  
#client\_cert: /path/to/client\_cert.pem  
#client\_key: /path/to/client\_key.key

# The index on es\_host which is used for metadata storage

# This can be a unmapped index, but it is recommended that you run

# elastalert-create-index to set a mapping

writeback\_index: elastalert\_status  
writeback\_alias: elastalert\_alerts

# If an alert fails for some reason, ElastAlert will retry

# sending the alert until this time period has elapsed

alert\_time\_limit:  
days: 2
