When I made single metric job with
Aggregation: count
Bucket span: 10m
and start datafeed "No end time (Real-time search)",
real-time search didn't start at all.
At that time, I stopped datafeeed, edit job to change frequency as 10m and start datafeed again.
Then the datafeed started correctly.
The default value of frequency was 300s.
Do I need to set frequency greater than bucket span?
Elasticsearch version is 6.0.0.
Here is the settings of my test job.
{
"job_id": "test2_job_bucketspan10m",
"job_type": "anomaly_detector",
"job_version": "6.0.0",
"description": "bucket span 10m",
"create_time": 1511851800489,
"finished_time": 1511851801975,
"analysis_config": {
"bucket_span": "10m",
"summary_count_field_name": "doc_count",
"detectors": [
{
"detector_description": "count",
"function": "count",
"detector_rules": [],
"detector_index": 0
}
],
"influencers": []
},
"data_description": {
"time_field": "@timestamp",
"time_format": "epoch_ms"
},
"model_plot_config": {
"enabled": true
},
"model_snapshot_retention_days": 1,
"model_snapshot_id": "1511909470",
"results_index_name": "shared",
"data_counts": {
"job_id": "test2_job_bucketspan10m",
"processed_record_count": 874,
"processed_field_count": 874,
"input_bytes": 40088,
"input_field_count": 874,
"invalid_date_count": 0,
"missing_field_count": 0,
"out_of_order_timestamp_count": 0,
"empty_bucket_count": 0,
"sparse_bucket_count": 0,
"bucket_count": 872,
"earliest_record_timestamp": 1511395799640,
"latest_record_timestamp": 1511923199983,
"last_data_time": 1511923270691,
"input_record_count": 874
},
"model_size_stats": {
"job_id": "test2_job_bucketspan10m",
"result_type": "model_size_stats",
"model_bytes": 79064,
"total_by_field_count": 3,
"total_over_field_count": 0,
"total_partition_field_count": 2,
"bucket_allocation_failures_count": 0,
"memory_status": "ok",
"log_time": 1511910070000,
"timestamp": 1511909400000
},
"datafeed_config": {
"datafeed_id": "datafeed-test2_job_bucketspan10m",
"job_id": "test2_job_bucketspan10m",
"query_delay": "70587ms",
"frequency": "600s",
"indices": [
"test2-*"
],
"types": [
"doc"
],
"query": {
"match_all": {
"boost": 1
}
},
"aggregations": {
"buckets": {
"date_histogram": {
"field": "@timestamp",
"interval": 600000,
"offset": 0,
"order": {
"_key": "asc"
},
"keyed": false,
"min_doc_count": 0
},
"aggregations": {
"@timestamp": {
"max": {
"field": "@timestamp"
}
}
}
}
},
"scroll_size": 1000,
"chunking_config": {
"mode": "manual",
"time_span": "600000000ms"
},
"state": "started",
"node": {
"id": "WMwq9r88Rq2P3Etj1pmfzQ",
"name": "WMwq9r8",
"ephemeral_id": "iYzswhp9SymdvkDe9LOl-g",
"transport_address": "127.0.0.1:9300",
"attributes": {
"ml.max_open_jobs": "10",
"ml.enabled": "true"
}
}
},
"state": "opened",
"node": {
"id": "WMwq9r88Rq2P3Etj1pmfzQ",
"name": "WMwq9r8",
"ephemeral_id": "iYzswhp9SymdvkDe9LOl-g",
"transport_address": "127.0.0.1:9300",
"attributes": {
"ml.max_open_jobs": "10",
"ml.enabled": "true"
}
},
"open_time": "71962s"
}