Error WATCHER smtp.host

Hi, i have the elasticsearch version 7.12, and im trying do a Watcher.

I have that error:

Summary
 {
  "watch_id": "prueba",
  "node": "RWT064xBSfu5wmGh9bksrA",
  "state": "executed",
  "status": {
    "state": {
      "active": true,
      "timestamp": "2021-05-20T08:03:59.369Z"
    },
    "last_checked": "2021-05-20T10:54:13.269Z",
    "last_met_condition": "2021-05-20T10:54:13.269Z",
    "actions": {
      "email_administrator": {
        "ack": {
          "timestamp": "2021-05-20T08:03:59.369Z",
          "state": "awaits_successful_execution"
        },
        "last_execution": {
          "timestamp": "2021-05-20T10:54:13.269Z",
          "successful": false,
          "reason": ""
        }
      }
    },
    "execution_state": "executed",
    "version": -1
  },
  "trigger_event": {
    "type": "schedule",
    "triggered_time": "2021-05-20T10:54:13.269Z",
    "schedule": {
      "scheduled_time": "2021-05-20T10:54:12.876Z"
    }
  },
  "input": {
    "search": {
      "request": {
        "search_type": "query_then_fetch",
        "indices": [
          "cajamar-*"
        ],
        "rest_total_hits_as_int": true,
        "body": {
          "size": 0,
          "query": {
            "match": {
              "result": "error"
            }
          }
        }
      }
    }
  },
  "condition": {
    "compare": {
      "ctx.payload.hits.total": {
        "gt": 1
      }
    }
  },
  "metadata": {
    "color": "red"
  },
  "result": {
    "execution_time": "2021-05-20T10:54:13.269Z",
    "execution_duration": 34,
    "input": {
      "type": "search",
      "status": "success",
      "payload": {
        "_shards": {
          "total": 2,
          "failed": 0,
          "successful": 2,
          "skipped": 0
        },
        "hits": {
          "hits": [x],
          "total": 18,
          "max_score": null
        },
        "took": 12,
        "timed_out": false
      },
      "search": {
        "request": {
          "search_type": "query_then_fetch",
          "indices": [
            "cajamar-*"
          ],
          "rest_total_hits_as_int": true,
          "body": {
            "size": 0,
            "query": {
              "match": {
                "result": "error"
              }
            }
          }
        }
      }
    },
    "condition": {
      "type": "compare",
      "status": "success",
      "met": true,
      "compare": {
        "resolved_values": {
          "ctx.payload.hits.total": 18
        }
      }
    },
    "actions": [
      {
        "id": "email_administrator",
        "type": "email",
        "status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "settings_exception",
              "reason": "missing required email account setting for account [outlook_account]. 'smtp.host' must be configured"
            }
          ],
          "type": "settings_exception",
          "reason": "missing required email account setting for account [outlook_account]. 'smtp.host' must be configured"
        }
      }
    ]
  },

"messages":
}

Console:
"stacktrace": ["org.elasticsearch.common.settings.SettingsException: missing required email account setting for account [outlook_account]. ' smtp .host' must be configured",

My Elasticsearch.yml:
image

Check it here, you may need email_defaults.from to be same as smtp.user

Where should i put it? Into outlook_account?

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