# POST \_analyze error

**URL:** <https://discuss.elastic.co/t/post-analyze-error/210054>\
**Category:** Elasticsearch\
**Created:** [December 1, 2019, 10:39am UTC](https://discuss.elastic.co/t/post-analyze-error/210054 "2019-12-01T10:39:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 1, 2019, 10:39am UTC](https://discuss.elastic.co/t/post-analyze-error/210054/1 "2019-12-01T10:39:01Z")

</div>

The analyzer does not work，So who can help me.Thanks!Here is my error and example:  
(1)error:  
{  
"error": {  
"root\_cause": [  
{  
"type": "x\_content\_parse\_exception",  
"reason": "[3:12] [analyze\_request] failed to parse field [text]"  
}  
],  
"type": "x\_content\_parse\_exception",  
"reason": "[3:12] [analyze\_request] failed to parse field [text]",  
"caused\_by": {  
"type": "json\_parse\_exception",  
"reason": "Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value\n at [Source: org.elasticsearch.transport.netty4.ByteBufStreamInput@6eb3d4e; line: 3, column: 206]"  
}  
},  
"status": 400  
}  
(2)example:

POST \_analyze  
{  
"analyzer": "ik\_max\_word",  
"text": ["[2019-11-29 02:14:26,704][ERROR][865463d59436486a8355f449c3b740bf][pool-1-kafka-thread-4][c.c.c.i.m.c.thread.KafkaConsumerRunner][line:101]:es集群超时异常,topic=clm\_event\_err\_log\_topic  
java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-390 [ACTIVE]  
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:773)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:218)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:221)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:205)  
at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1454)  
at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1424)  
at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1394)  
at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:492)  
at com.cupdata.clmes.api.es.dao.impl.EsDaoImpl.saveOrUpdateOrDelete(EsDaoImpl.java:334)  
at com.cupdata.clmes.indexer.model.handle.DefaultConsumerHandle.handle(DefaultConsumerHandle.java:55)  
at com.cupdata.clmes.indexer.model.consumer.thread.KafkaConsumerRunner.handleRecords(KafkaConsumerRunner.java:95)  
at com.cupdata.clmes.indexer.model.consumer.thread.KafkaConsumerRunner.run(KafkaConsumerRunner.java:68)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)  
Suppressed: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-388 [ACTIVE]  
at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:773)  
at org.elasticsearch.client.RestClient.performRequest(RestClient.java:218)  
... 12 common frames omitted  
Caused by: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-388 [ACTIVE]  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:387)  
at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:92)  
at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:39)  
at org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:175)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:263)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:492)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:213)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)  
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)  
... 1 common frames omitted  
Caused by: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-390 [ACTIVE]  
at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:387)  
at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:92)  
at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:39)  
at org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:175)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:263)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:492)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:213)  
at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)  
at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)  
at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)  
... 1 common frames omitted"]  
}

---

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 1, 2019, 10:43am UTC](https://discuss.elastic.co/t/post-analyze-error/210054/2 "2019-12-01T10:43:37Z")

</div>

This is an SocketTimeoutException log when I request to Elasticsearch by the resthighlevelapi.And I put the log to Elasticsearch.I use filebeat to collect the log,and push it to kafka.Than I have a consumer to put the log to es.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 1, 2019, 11:31am UTC](https://discuss.elastic.co/t/post-analyze-error/210054/3 "2019-12-01T11:31:47Z")

</div>

Can you please create a minimal recreation script with data and mappings that can be run from the Kibana dev console or curl? How is the analyzer configured? Are there any error messages in the Elasticsearch logs?

---

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 1, 2019, 2:25pm UTC](https://discuss.elastic.co/t/post-analyze-error/210054/4 "2019-12-01T14:25:04Z")

</div>

> [@xyx](#):
>
> [2019-11-29 02:14:26,704][ERROR][865463d59436486a8355f449c3b740bf][pool-1-kafka-thread-4][c.c.c.i.m.c.thread.KafkaConsumerRunner][line:101]:es集群超时异常,topic=clm\_event\_err\_log\_topic  
> java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-390 [ACTIVE]  
> at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:773)  
> at org.elasticsearch.client.RestClient.performRequest(RestClient.java:218)  
> at org.elasticsearch.client.RestClient.performRequest(RestClient.java:221)  
> at org.elasticsearch.client.RestClient.performRequest(RestClient.java:205)  
> at org.elasticsearch.client.RestHighLevelClient.internalPerformRequest(RestHighLevelClient.java:1454)  
> at org.elasticsearch.client.RestHighLevelClient.performRequest(RestHighLevelClient.java:1424)  
> at org.elasticsearch.client.RestHighLevelClient.performRequestAndParseEntity(RestHighLevelClient.java:1394)  
> at org.elasticsearch.client.RestHighLevelClient.bulk(RestHighLevelClient.java:492)  
> at com.cupdata.clmes.api.es.dao.impl.EsDaoImpl.saveOrUpdateOrDelete(EsDaoImpl.java:334)  
> at com.cupdata.clmes.indexer.model.handle.DefaultConsumerHandle.handle(DefaultConsumerHandle.java:55)  
> at com.cupdata.clmes.indexer.model.consumer.thread.KafkaConsumerRunner.handleRecords(KafkaConsumerRunner.java:95)  
> at com.cupdata.clmes.indexer.model.consumer.thread.KafkaConsumerRunner.run(KafkaConsumerRunner.java:68)  
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
> at java.lang.Thread.run(Thread.java:745)  
> Suppressed: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-388 [ACTIVE]  
> at org.elasticsearch.client.RestClient.extractAndWrapCause(RestClient.java:773)  
> at org.elasticsearch.client.RestClient.performRequest(RestClient.java:218)  
> ... 12 common frames omitted  
> Caused by: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-388 [ACTIVE]  
> at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:387)  
> at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:92)  
> at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:39)  
> at org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:175)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:263)  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:492)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:213)  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)  
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)  
> ... 1 common frames omitted  
> Caused by: java.net.SocketTimeoutException: 30,000 milliseconds timeout on connection http-outgoing-390 [ACTIVE]  
> at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.timeout(HttpAsyncRequestExecutor.java:387)  
> at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:92)  
> at org.apache.http.impl.nio.client.InternalIODispatch.onTimeout(InternalIODispatch.java:39)  
> at org.apache.http.impl.nio.reactor.AbstractIODispatch.timeout(AbstractIODispatch.java:175)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.sessionTimedOut(BaseIOReactor.java:263)  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.timeoutCheck(AbstractIOReactor.java:492)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.validate(BaseIOReactor.java:213)  
> at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIOReactor.java:280)  
> at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.java:104)  
> at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.run(AbstractMultiworkerIOReactor.java:591)  
> ... 1 common frames omitted

"analyzer": "standard", also has an error.

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [December 1, 2019, 3:02pm UTC](https://discuss.elastic.co/t/post-analyze-error/210054/5 "2019-12-01T15:02:22Z")

</div>

That is not what I asked for. Please provide a mapping and document which allows us to recreate this issue.

---

<div class="post-metadata">

**Author:** ![xyx](https://avatars.discourse-cdn.com/v4/letter/x/eb8c5e/32.png) [@xyx](https://discuss.elastic.co/u/xyx)\
**Post date:** [December 2, 2019, 5:34am UTC](https://discuss.elastic.co/t/post-analyze-error/210054/6 "2019-12-02T05:34:58Z")

</div>

Maybe It is not a problem. I have find other problem.Thank you all the same.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 30, 2019, 5:35am UTC](https://discuss.elastic.co/t/post-analyze-error/210054/7 "2019-12-30T05:35:07Z")

</div>

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