Pipe is not supported – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.13-8.9

Briefly, this error occurs when you’re trying to use a pipe character “|” in Elasticsearch, which is not supported. Elasticsearch uses JSON-based REST API for communication, and the pipe character is not a valid character in JSON. To resolve this issue, you can either remove the pipe character from your query or replace it with a supported character or operator. If you’re trying to perform multiple operations, consider breaking them down into separate queries or using the bulk API.

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

Log Context

Log “Pipe [{}] is not supported” class name is LogicalPlanBuilder.java. We extracted the following from Elasticsearch source code for those seeking an in-depth context :

 case TAIL_PIPE -> {
 Expression tailLimit = pipeIntArgument(source(ctx); name; ctx.booleanExpression());
 // negate the limit
 return new Tail(source(ctx); tailLimit; plan);
 default -> throw new ParsingException(source(ctx); "Pipe [{}] is not supported"; name);
 }  private Expression onlyOnePipeArgument(Source source; String pipeName; List exps) {
 int size = CollectionUtils.isEmpty(exps) ? 0 : exps.size();


How helpful was this guide?

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?