Open TomonoriSoejima opened 4 years ago
PUT _ml/anomaly_detectors/koreyo2
{
"job_id": "koreyo2",
"job_type": "anomaly_detector",
"job_version": "7.4.2",
"description": "dpm",
"analysis_config": {
"summary_count_field_name": "doc_count",
"bucket_span": "5m",
"detectors": [
{
"function": "high_info_content",
"field_name": "subdomain",
"over_field_name": "highest_registered_domain",
"custom_rules": [
{
"actions": [
"skip_result"
],
"scope": {
"highest_registered_domain": {
"filter_id": "safe_domains",
"filter_type": "include"
}
}
}
]
}
]
},
"data_description": {
"time_field": "timestamp"
}
}
PUT _ml/datafeeds/datafeed-koreyo2
{
"job_id": "koreyo2",
"query_delay": "119024ms",
"indices": [
"user-activity"
],
"query": {
"bool": {
"must": [
{
"match_all": {}
}
]
}
},
"aggregations": {
"buckets": {
"date_histogram": {
"field": "@timestamp",
"fixed_interval": "300000ms"
},
"aggregations": {
"bytesSent": {
"avg": {
"field": "bytesSent"
}
},
"@timestamp": {
"max": {
"field": "@timestamp"
}
}
}
}
},
"scroll_size": 1000,
"chunking_config": {
"mode": "manual",
"time_span": "90000000ms"
},
"delayed_data_check_config": {
"enabled": true
}
}
In 7.4.1 I get this error if the request contains index_options
"indices_options": {
"expand_wildcards": [
"open"
],
"ignore_unavailable": false,
"allow_no_indices": true,
"ignore_throttled": true
}
"error": {
"root_cause": [
{
"type": "x_content_parse_exception",
"reason": "[21:3] [datafeed_config] unknown field [indices_options], parser not found"
}
],
"type": "x_content_parse_exception",
"reason": "[21:3] [datafeed_config] unknown field [indices_options], parser not found"
},
"status": 400
}
it works in 7.8.0