Error while sending the report

I am getting an error while setting up email report:

Watch[inlined] reporting[error_report.pdf] Error when polling pdf from

Error message
----------------------------------------------------------------------------------
{
"watch_id": "inlined",
"node": "K08xUVhJSfaW6Rs25SvL2w",
"state": "executed",
"status": {
"state": {
"active": true,
"timestamp": "2017-12-30T19:27:07.075Z"
},
"last_checked": "2017-12-30T19:27:07.076Z",
"last_met_condition": "2017-12-30T19:27:07.076Z",
"actions": {
"email_admin": {
"ack": {
"timestamp": "2017-12-30T19:27:07.075Z",
"state": "awaits_successful_execution"
},
"last_execution": {
"timestamp": "2017-12-30T19:27:07.076Z",
"successful": false,
"reason": ""
}
}
},
"execution_state": "executed",
"version": -1
},
"trigger_event": {
"type": "manual",
"triggered_time": "2017-12-30T19:27:07.076Z",
"manual": {
"schedule": {
"scheduled_time": "2017-12-30T19:27:07.076Z"
}
}
},
"input": {
"none": {}
},
"condition": {
"always": {}
},
"metadata": {
"xpack": {
"type": "json"
}
},
"result": {
"execution_time": "2017-12-30T19:27:07.076Z",
"execution_duration": 12163,
"input": {
"type": "none",
"status": "success",
"payload": {}
},
"condition": {
"type": "always",
"status": "success",
"met": true
},
"actions": [
{
"id": "email_admin",
"type": "email",
"status": "failure",
"error": {
"root_cause": [
{
"type": "exception",
"reason": "Watch[inlined] reporting[error_report.pdf] Error when polling pdf from host[10.177.219.149], port[5601], method[POST], path[/api/reporting/generate/printablePdf], status[500], body[{"message":"Reporting generation failed","reason":"Max attempts reached (3)"}]"
}
],
"type": "exception",
"reason": "Watch[inlined] reporting[error_report.pdf] Error when polling pdf from host[10.177.219.149], port[5601], method[POST], path[/api/reporting/generate/printablePdf], status[500], body[{"message":"Reporting generation failed","reason":"Max attempts reached (3)"}]"
}
}
]
},
"messages": []
}

Hi All,

I am getting socket_timeout_exception issue now after addressing report generate issue. Could you please help me on this?

{
  "watch_id": "_inlined_",
  "node": "K08xUVhJSfaW6Rs25SvL2w",
  "state": "executed",
  "status": {
    "state": {
      "active": true,
      "timestamp": "2018-01-08T06:39:13.930Z"
    },
    "last_checked": "2018-01-08T06:39:13.931Z",
    "last_met_condition": "2018-01-08T06:39:13.931Z",
    "actions": {
      "email_admin": {
        "ack": {
          "timestamp": "2018-01-08T06:39:13.930Z",
          "state": "awaits_successful_execution"
        },
        "last_execution": {
          "timestamp": "2018-01-08T06:39:13.931Z",
          "successful": false,
          "reason": ""
        }
      }
    },
    "execution_state": "executed",
    "version": -1
  },
  "trigger_event": {
    "type": "manual",
    "triggered_time": "2018-01-08T06:39:13.931Z",
    "manual": {
      "schedule": {
        "scheduled_time": "2018-01-08T06:39:13.931Z"
      }
    }
  },
  "input": {
    "none": {}
  },
  "condition": {
    "always": {}
  },
  "metadata": {
    "xpack": {
      "type": "json"
    }
  },
  "result": {
    "execution_time": "2018-01-08T06:39:13.931Z",
    "execution_duration": 15016,
    "input": {
      "type": "none",
      "status": "success",
      "payload": {}
    },
    "condition": {
      "type": "always",
      "status": "success",
      "met": true
    },
    "actions": [
      {
        "id": "email_admin",
        "type": "email",
        "status": "failure",
        "error": {
          "root_cause": [
            {
              "type": "socket_timeout_exception",
              "reason": "Read timed out"
            }
          ],
          "type": "socket_timeout_exception",
          "reason": "Read timed out"
        }
      }
    ]
  },
  "messages": []
}

Please make the effort to format your post to be as readable as possible - there's a live preview panel for exactly this reasons.
Lots of people read these forums, and many of them will simply skip over a post that is difficult to read, because it's just too large an investment of their time to try and follow a wall of badly formatted text.
If your goal is to get an answer to your questions, it's in your interest to make it as easy to read and understand as possible.

From the error you've posted, the most likely problem is that Elasticsearch cannot connect to the mail server that you have configured.
Double check your email account configuration and check that the servers on which you are running your ES nodes have network access to the mail server.

thanks for your reply. I will follow your instructions.

I have followed the same. Please find the email setting in elasticsearch.yml below


"xpack.notification.email.account:
exchange_account:
profile: outlook
email_defaults:
from: subash.duraipandi@domain.com
smtp:
auth: true
starttls.enable: true
host: mail-xxxxx.domain.com
port: 25
user: elastic
password: mrkibana

xpack.notification.email.html.sanitization.enabled: true

xpack.security.audit.enabled : true"

Please use the preformatted text option (</> button) for configuration files and for JSON blocks.

We have no way of knowing whether these values are correct, but my best guess based on the error you are seeing is that your ES servers cannot reach that host/port.

Hi Tim,
Thanks.
I'm getting below error after changing the setting . any idea?
<
{
"statusCode": 504,
"error": "Gateway Time-out",
"message": "Client request timeout"
}
/>

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