My rule is not getting any hits?
Using CentOS 7 and python2.7, installation (python setup.py install) was successful.
However, running lastalert-test-rule shows with the following exception:
[root@elk elastalert]# elastalert-test-rule --days 5 example_rules/example_frequency.yaml
Successfully loaded Example rule
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent. To send them, use --verbose.
INFO:requests.packages.urllib3.connectionpool:Starting new HTTP connection (1): 127.0.0.1
INFO:elastalert:Queried rule Example rule from 2016-05-29 10:48 ICT to 2016-05-29 11:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 11:33 ICT to 2016-05-29 12:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 12:18 ICT to 2016-05-29 13:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 13:03 ICT to 2016-05-29 13:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 13:48 ICT to 2016-05-29 14:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 14:33 ICT to 2016-05-29 15:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 15:18 ICT to 2016-05-29 16:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 16:03 ICT to 2016-05-29 16:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 16:48 ICT to 2016-05-29 17:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 17:33 ICT to 2016-05-29 18:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 18:18 ICT to 2016-05-29 19:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 19:03 ICT to 2016-05-29 19:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 19:48 ICT to 2016-05-29 20:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 20:33 ICT to 2016-05-29 21:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 21:18 ICT to 2016-05-29 22:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 22:03 ICT to 2016-05-29 22:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 22:48 ICT to 2016-05-29 23:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-29 23:33 ICT to 2016-05-30 00:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 00:18 ICT to 2016-05-30 01:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 01:03 ICT to 2016-05-30 01:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 01:48 ICT to 2016-05-30 02:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 02:33 ICT to 2016-05-30 03:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 03:18 ICT to 2016-05-30 04:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 04:03 ICT to 2016-05-30 04:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 04:48 ICT to 2016-05-30 05:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 05:33 ICT to 2016-05-30 06:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 06:18 ICT to 2016-05-30 07:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 07:03 ICT to 2016-05-30 07:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 07:48 ICT to 2016-05-30 08:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 08:33 ICT to 2016-05-30 09:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 09:18 ICT to 2016-05-30 10:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 10:03 ICT to 2016-05-30 10:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 10:48 ICT to 2016-05-30 11:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 11:33 ICT to 2016-05-30 12:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 12:18 ICT to 2016-05-30 13:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 13:03 ICT to 2016-05-30 13:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 13:48 ICT to 2016-05-30 14:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 14:33 ICT to 2016-05-30 15:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 15:18 ICT to 2016-05-30 16:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 16:03 ICT to 2016-05-30 16:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 16:48 ICT to 2016-05-30 17:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 17:33 ICT to 2016-05-30 18:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 18:18 ICT to 2016-05-30 19:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 19:03 ICT to 2016-05-30 19:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 19:48 ICT to 2016-05-30 20:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 20:33 ICT to 2016-05-30 21:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 21:18 ICT to 2016-05-30 22:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 22:03 ICT to 2016-05-30 22:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 22:48 ICT to 2016-05-30 23:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-30 23:33 ICT to 2016-05-31 00:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 00:18 ICT to 2016-05-31 01:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 01:03 ICT to 2016-05-31 01:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 01:48 ICT to 2016-05-31 02:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 02:33 ICT to 2016-05-31 03:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 03:18 ICT to 2016-05-31 04:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 04:03 ICT to 2016-05-31 04:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 04:48 ICT to 2016-05-31 05:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 05:33 ICT to 2016-05-31 06:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 06:18 ICT to 2016-05-31 07:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 07:03 ICT to 2016-05-31 07:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 07:48 ICT to 2016-05-31 08:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 08:33 ICT to 2016-05-31 09:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 09:18 ICT to 2016-05-31 10:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 10:03 ICT to 2016-05-31 10:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 10:48 ICT to 2016-05-31 11:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 11:33 ICT to 2016-05-31 12:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 12:18 ICT to 2016-05-31 13:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 13:03 ICT to 2016-05-31 13:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 13:48 ICT to 2016-05-31 14:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 14:33 ICT to 2016-05-31 15:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 15:18 ICT to 2016-05-31 16:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 16:03 ICT to 2016-05-31 16:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 16:48 ICT to 2016-05-31 17:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 17:33 ICT to 2016-05-31 18:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 18:18 ICT to 2016-05-31 19:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 19:03 ICT to 2016-05-31 19:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 19:48 ICT to 2016-05-31 20:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 20:33 ICT to 2016-05-31 21:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 21:18 ICT to 2016-05-31 22:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 22:03 ICT to 2016-05-31 22:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 22:48 ICT to 2016-05-31 23:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-05-31 23:33 ICT to 2016-06-01 00:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 00:18 ICT to 2016-06-01 01:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 01:03 ICT to 2016-06-01 01:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 01:48 ICT to 2016-06-01 02:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 02:33 ICT to 2016-06-01 03:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 03:18 ICT to 2016-06-01 04:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 04:03 ICT to 2016-06-01 04:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 04:48 ICT to 2016-06-01 05:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 05:33 ICT to 2016-06-01 06:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 06:18 ICT to 2016-06-01 07:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 07:03 ICT to 2016-06-01 07:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 07:48 ICT to 2016-06-01 08:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 08:33 ICT to 2016-06-01 09:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 09:18 ICT to 2016-06-01 10:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 10:03 ICT to 2016-06-01 10:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 10:48 ICT to 2016-06-01 11:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 11:33 ICT to 2016-06-01 12:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 12:18 ICT to 2016-06-01 13:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 13:03 ICT to 2016-06-01 13:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 13:48 ICT to 2016-06-01 14:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 14:33 ICT to 2016-06-01 15:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 15:18 ICT to 2016-06-01 16:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 16:03 ICT to 2016-06-01 16:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 16:48 ICT to 2016-06-01 17:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 17:33 ICT to 2016-06-01 18:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 18:18 ICT to 2016-06-01 19:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 19:03 ICT to 2016-06-01 19:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 19:48 ICT to 2016-06-01 20:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 20:33 ICT to 2016-06-01 21:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 21:18 ICT to 2016-06-01 22:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 22:03 ICT to 2016-06-01 22:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 22:48 ICT to 2016-06-01 23:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-01 23:33 ICT to 2016-06-02 00:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 00:18 ICT to 2016-06-02 01:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 01:03 ICT to 2016-06-02 01:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 01:48 ICT to 2016-06-02 02:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 02:33 ICT to 2016-06-02 03:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 03:18 ICT to 2016-06-02 04:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 04:03 ICT to 2016-06-02 04:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 04:48 ICT to 2016-06-02 05:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 05:33 ICT to 2016-06-02 06:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 06:18 ICT to 2016-06-02 07:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 07:03 ICT to 2016-06-02 07:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 07:48 ICT to 2016-06-02 08:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 08:33 ICT to 2016-06-02 09:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 09:18 ICT to 2016-06-02 10:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 10:03 ICT to 2016-06-02 10:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 10:48 ICT to 2016-06-02 11:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 11:33 ICT to 2016-06-02 12:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 12:18 ICT to 2016-06-02 13:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 13:03 ICT to 2016-06-02 13:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 13:48 ICT to 2016-06-02 14:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 14:33 ICT to 2016-06-02 15:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 15:18 ICT to 2016-06-02 16:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 16:03 ICT to 2016-06-02 16:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 16:48 ICT to 2016-06-02 17:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 17:33 ICT to 2016-06-02 18:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 18:18 ICT to 2016-06-02 19:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 19:03 ICT to 2016-06-02 19:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 19:48 ICT to 2016-06-02 20:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 20:33 ICT to 2016-06-02 21:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 21:18 ICT to 2016-06-02 22:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 22:03 ICT to 2016-06-02 22:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 22:48 ICT to 2016-06-02 23:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-02 23:33 ICT to 2016-06-03 00:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 00:18 ICT to 2016-06-03 01:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 01:03 ICT to 2016-06-03 01:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 01:48 ICT to 2016-06-03 02:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 02:33 ICT to 2016-06-03 03:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 03:18 ICT to 2016-06-03 04:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 04:03 ICT to 2016-06-03 04:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 04:48 ICT to 2016-06-03 05:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 05:33 ICT to 2016-06-03 06:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 06:18 ICT to 2016-06-03 07:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 07:03 ICT to 2016-06-03 07:48 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 07:48 ICT to 2016-06-03 08:33 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 08:33 ICT to 2016-06-03 09:18 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 09:18 ICT to 2016-06-03 10:03 ICT: 0 hits
INFO:elastalert:Queried rule Example rule from 2016-06-03 10:03 ICT to 2016-06-03 10:48 ICT: 0 hits
Would have written the following documents to elastalert_status:
elastalert_status - {'hits': 0, 'matches': 0, '@timestamp': datetime.datetime(2016, 6, 3, 3, 48, 22, 780474, tzinfo=tzutc()), 'rule_name': 'Example rule', 'starttime': datetime.datetime(2016, 5, 29, 3, 48, 22, 480387, tzinfo=tzutc()), 'endtime': datetime.datetime(2016, 6, 3, 3, 48, 22, 480387, tzinfo=tzutc()), 'time_taken': 0.2984790802001953}
And my rule.yaml:
# From example_rules/example_frequency.yaml
es_host: 127.0.0.1
es_port: 9200
name: Example rule
type: any
timestamp_field: Timestamp
index: logstash-*
use_local_time: True
timestamp_type: iso
filter:
- query:
query_string:
query: 'help'
alert:
- "email"
email:
- "[email protected]"
And my log with "help" command:
message:Jun 3 10:15:59 26 journal: root[2208] 10.100.26.18 54281 10.100.26.82 22: help @version:1 @timestamp:June 3rd 2016, 10:16:01.972 input_type:log fields: - source:/var/log/bash.log offset:46,953 type:log count:1 beat.hostname:26.82.klb beat.name:26.82.klb host:26.82.klb tags:beats_input_codec_plain_applied _id:AVUUZrSP4qNwjAw1hKgr _type:log _index:filebeat-2016.06.03 _score: -
Pls, help me ! Thanks !
Maybe because you have timestamp_field: Timestamp when in the your example document it's the default @timestamp?
Thanks @Qmando, but i need your help. (Sorry, my english is very bad )
I don't know how to config @timestamp. I need a example doc from you. I think problem is "date":
timedatectl
Local time: Mon 2016-06-06 15:54:48 ICT
Universal time: Mon 2016-06-06 08:54:48 UTC
RTC time: Mon 2016-06-06 15:54:48
Time zone: Asia/Ho_Chi_Minh (ICT, +0700)
NTP enabled: yes
NTP synchronized: no
RTC in local TZ: yes
DST active: n/a
And when i run elastalert-test-rule:
datetime.datetime(2016, 6, 6, 8, 55, 22, 780474, tzinfo=tzutc())
elastalert_status - {'hits': 0, 'matches': 0, '@timestamp': datetime.datetime(2016, 6, 6, 8, 55, 22, 780474, tzinfo=tzutc()), 'rule_name': 'Example rule', 'starttime': datetime.datetime(2016, 5, 29, 3, 48, 22, 480387, tzinfo=tzutc()), 'endtime': datetime.datetime(2016, 6, 6, 8, 56, 22, 480387, tzinfo=tzutc()), 'time_taken': 0.2984790802001953}
I think elastalert set wrong time (it use universal_times but i use local_times) !
remove timestamp_field: Timestamp. The timezone doesn't matter because it queries using UTC and Elasticsearch will do the necessary conversion.
hi,Qmando,I got the same problem,and I did not config the timestamp_field: Timestamp ,I think the problem is timezone,so there abviously cause alert,but it did not,can you help me?thanks a lot
Time zones should never matter. Everything is done using timezone-aware comparisons.
I can't help you unless you tell me what the problem is.
@Qmando
Ok, I have commited my problem in issue #893 , sorry to disturb