Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): latest image ( working with docker)
Describe the issue:
when i try to run live analysis on logs ( with a detector) i get this error -
here is an example of how my logs are saved in the index -
{
“level” => “INFO”,
“@timestamp” => 2025-11-03T15:59:59.000Z,
“message” => “Connection to postgres is alive\\r”,
“app_name” => “app1”
}
this is how i configured the detector -
{
"name": f"error_count_for\_{data_stream}",
"description": f"Anomaly detector for error logs in {data_stream}",
"time_field": "@timestamp",
"indices": \[f"{data_stream}-\*"\],
"feature_attributes": \[{
"feature_name": "errors_count",
"feature_enabled": True,
"aggregation_query": {
"errors_count": {
"filter": {
"term": {
"level": {
"value": "ERROR",
"boost": 1
}
}
},
"aggregations": {
"errors_count": {
"value_count": {
"field": "level"
}
}
}
}
}
}\],
"detection_interval": {
"period": {
"interval": 1,
"unit": "Minutes"
}
},
"window_delay": {
"period": {
"interval": 10,
"unit": "Minutes"
}
},
"history": 40
}
so i dont understand what is being ingested the wrong way.
thanks in advance for all the helpers.
Configuration:
Relevant Logs or Screenshots:

