you are trying to execute a HTTP request against a TLS/SSL secured resource, and therefore elasticsearch cuts the connection, as it does not receive the expected TLS data.
Use HTTPS, by specifying "scheme" : "https" in the request. The http input does not know if you are using shield or not, it is basically just a HTTP client and thus not very smart
If you are using shield it is likely that you are using auth, which requires you to add auth information as well
do you a have sample watch that works with shield? or do you know where I can find one?
I got this error when I'm trying, if there was an example I can leverage.
{"error":{"root_cause":[{"type":"parse_exception","reason":"could not read search request. unexpected string field [scheme]"}],"type":"parse_exception","reason":"could not parse [search] input for watch [cluster_red_alert]. failed to parse [request]","caused_by":{"type":"parse_exception","reason":"could not read search request. unexpected string field [scheme]"}},"status":400}
apparently you are trying to access a property that does not exist, which is named cluster_state. Why are you using fields and not the _source field? Also cluster_state.status is kind of a shortcut for two elements, and it is not put in quotes, thus interpreted as a variable.
thanks Alex. they updated the documentation yesterday...support confirmed
that. also curl was stripping off the quotes from my code. it is working
when I do a json import
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.