Multiple filter on alias


I wish it could be possible to define an alias with multiple filters, like in:

POST /_aliases
  "actions": [
      "add": {
        "index": "av-asset",
        "alias": "av-server-recent",
        "filter": [
        {"term": {"Av_Target_Type": "Server"}},
        {"range": {"@timestamp": {
              "gte": "now/d-7d"

which fails for:

"root_cause": [{
  "type": "x_content_parse_exception",
  "reason": "[7:19] [add] filter doesn't support values of type: START_ARRAY"

Any other way to accomplish this kind of result?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.