mayank023
mayank023
@itsecureadmin is it working example?
@Qmando i have tried this and found ``` python -m elastalert.elastalert --config config/config.yaml --rule rules/flatline.yaml --debug --start 2019-09-16 --end 2019-09-17 /root/sre/git/main/datacollector/cloud-platform-data-monitor/venv/lib/python2.7/site-packages/elastalert/config.py:31: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the...
I got it working as I want but land up with another issue defined [here](https://github.com/Yelp/elastalert/issues/2490)
any idea on how can I get values of service, environment and start time in command alert, I have done google and tried changing the value for `use_terms_query` as false...
Tried even below does not help. ``` - script: script: inline: ((doc['expires_on'].value.millis - new Date().getTime()) /1000/86400) BETWEEN 30 TO 60 ```