Pipe is not supported – How to solve this Elasticsearch exception

Opster Team

August-23, Version: 7.13-8.9

Before you dig into reading this guide, have you tried asking OpsGPT what this log means? You’ll receive a customized analysis of your log.

Try OpsGPT now for step-by-step guidance and tailored insights into your Elasticsearch operation.

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.

For a complete solution to your to your search operation, try for free AutoOps for Elasticsearch & OpenSearch . With AutoOps and Opster’s proactive support, you don’t have to worry about your search operation – we take charge of it. Get improved performance & stability with less hardware.

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?