Error running filter
I'm always getting this error while trying to run a simple rule:
Error running your filter:
RequestError(400, u'parsing_exception', {u'status': 400, u'error': {u'line': 1, u'root_cause': [{u'reason': u'no [query] registered for [filtered]', u'type': u'parsing_exception', u'line': 1, u'col': 62}], u'type': u'parsing_exception', u'reason': u'no [query] registered for [filtered]', u'col': 62}})
I use ElasticSearch 6.
This issue is popping up all over the place. Can we get these merged into one issue with some kind of official response?
Either the code or the docs need to be updated because using the example filters is not working.
Of course! I'm watching for a official response.
I get the same error, as well
Hello,
es_host: 192.168.2.4
es_port: 9200
name: port_scan
type: frequency
index: bro*
timestamp_field: timestamp
timestamp_type: unix
num_events: 1
timeframe:
minutes: 1
query_key: [ip_src_addr, ip_dst_addr]
cardinality_field: "ip_dst_port"
max_cardinality: 10
filter:
- term:
proto: "tcp"
alert:
- "email"
email:
- ""
This is my query and I am getting an error: Error running your filter: RequestError(400, u'search_phase_execution_exception', {u'status': 400, u'error': {u'failed_shards': [{u'node': u'aIOa3uVJSJCuReBfrT2V6Q', u'index': u'bro_index_2018.06.25.16', u'reason': {u'caused_by': {u'reason': u'Invalid format: "2018-06-24T12:38:27.866247Z"', u'type': u'illegal_argument_exception'}, u'reason': u'failed to parse date field [2018-06-24T12:38:27.866247Z] with format [epoch_millis]', u'type': u'parse_exception'}, u'shard': 0}], u'root_cause': [{u'reason': u'failed to parse date field [2018-06-24T12:38:27.866247Z] 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'}}) INFO:elastalert:Note: In debug mode, alerts will be logged to console but NOT actually sent.
Please tell me what is wrong with my query.
@arunimachoudhary24 Are you on the latest version of ElastAlert? If you aren't, try that first.
Next, you may want to try timestamp_type: unix_ms instead. And try to run elastalert with --es_debug_trace trace.log, which should put the exact query made into the trace.log file. If i attempt this on the latest version, it sends unix timestamps properly in the filter instead of ISO8601, so I'm not sure what the issue is right now.