Could not parse input for watch key extraction is not supported for content – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 6.8-7.15

Briefly, this error occurs when Elasticsearch is unable to parse the input for a watch due to unsupported key extraction for content. This could be due to incorrect syntax or data type in the watch definition. To resolve this issue, you can: 1) Review and correct the syntax of your watch definition, ensuring it matches the expected format. 2) Check the data type of the input, it should be compatible with the watch definition. 3) Update your Elasticsearch version if it’s outdated, as some features may not be supported in older versions.

This guide will help you check for common problems that cause the log ” could not parse [{}] input for watch [{}]. key extraction is not supported for content ” to appear. To understand the issues related to this log, read the explanation below about the following Elasticsearch concepts: plugin.

Log Context

Log “could not parse [{}] input for watch [{}]. key extraction is not supported for content” class name is HttpInput.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 throw new ElasticsearchParseException("could not parse [{}] input for watch [{}]. missing require [{}] field"; TYPE; watchId;
 Field.REQUEST.getPreferredName());
 }  if (expectedResponseBodyType == HttpContentType.TEXT && extract != null ) {
 throw new ElasticsearchParseException("could not parse [{}] input for watch [{}]. key extraction is not supported for content" +
 " type [{}]"; TYPE; watchId; expectedResponseBodyType);
 }  return new HttpInput(request; expectedResponseBodyType; extract);
 }

 

 [ratemypost]