elastalert icon indicating copy to clipboard operation
elastalert copied to clipboard

datetime parse error

Open hongjn opened this issue 9 years ago • 4 comments

rule:

es_host: eshost
es_port: esport
name: Example new term rule
type: new_term
index: myindex
timestamp_field: postDate
fields:
 - "name"
terms_window_size:
  days: 7
filter:
- term:
    _type: "mytype"
alert:
- "command"
command: ["/bin/echo find sth."]

postDate: datetype, its format: epoch_millis. run in docker, build from elastalert-docker

error msg:

File "/usr/lib/python2.7/site-packages/elasticsearch-2.4.1-py2.7.egg/elasticsearch/connection/base.py", line 114, in _raise_error
elastalert.util.EAException: Error initializing rule Example new term rule: Error searching for existing terms: RequestError(400, u'search_phase_execution_exception', {u'status': 400, u'error': {u'failed_shards': [{u'node': u'KbQ8A-QIQ2CoBuBQS1YtuQ', u'index': u'citic3', u'reason': {u'caused_by': {u'reason': u'Invalid format: "2017-07-11T12:35:42.225162Z"', u'type': u'illegal_argument_exception'}, u'reason': u'failed to parse date field [2017-07-11T12:35:42.225162Z] with format [epoch_millis]', u'type': u'parse_exception'}, u'shard': 0}], u'root_cause': [{u'reason': u'failed to parse date field [2017-07-11T12:35:42.225162Z] with format [epoch_millis]', u'type': u'parse_exception'}], u'grouped': True, u'reason': u'all shards failed', u'phase': u'query', u'type': u'search_phase_execution_exception'}})

hongjn avatar Jul 18 '17 12:07 hongjn

@hongjn

I hope this helps to fix the date-time parse error

https://github.com/Yelp/elastalert/pull/1022

sathishdsgithub avatar Jul 23 '17 10:07 sathishdsgithub

@sathishdsgithub Thanks. We just fix it.

#1245

hongjn avatar Jul 24 '17 08:07 hongjn

@Qmando this shouldn't be closed?

tomaszkrzyzanowski avatar Oct 11 '18 20:10 tomaszkrzyzanowski

yes. I need to go through close all of the fixed and stale support issues pretty badly.

Qmando avatar Oct 11 '18 20:10 Qmando