# Elasticsearch

**URL:** https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1229

[Latest](https://discuss.elastic.co/latest.md) · [Categories](https://discuss.elastic.co/categories.md) · [Tags](https://discuss.elastic.co/tags.md)

**Page:** 1230

---

## [ES\_PATH\_CONF not working in windows](https://discuss.elastic.co/t/es-path-conf-not-working-in-windows/190179)

<div class="topic-metadata">

**Author:** [@Vishwajeet\_singh](https://discuss.elastic.co/u/Vishwajeet_singh)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 10:18am UTC](https://discuss.elastic.co/t/es-path-conf-not-working-in-windows/190179 "2019-07-12T10:18:14Z")

</div>

Hi Team, I am trying to change my config files path in elasticsearch , I am using zip for instaling elastic version 7.1 and running below command ES\_PATH\_CONF=/home/elasticuser/myconfig ./bin/elasticsearch You can als…

---

## [How to return slightly randomized results?](https://discuss.elastic.co/t/how-to-return-slightly-randomized-results/188482)

<div class="topic-metadata">

**Author:** [@i333](https://discuss.elastic.co/u/i333)\
**Replies:** 3\
**Last updated:** [July 12, 2019, 10:15am UTC](https://discuss.elastic.co/t/how-to-return-slightly-randomized-results/188482 "2019-07-12T10:15:46Z")

</div>

When entering a search term and getting back the results sorted by score, is there a way to get it to return slightly randomized results? I don't mean totally random. I mean maybe a small random multiplier could be adde…

---

## [Elasticsearch editing source code to accomodate \_id field size more than 512 bytes](https://discuss.elastic.co/t/elasticsearch-editing-source-code-to-accomodate-id-field-size-more-than-512-bytes/190163)

<div class="topic-metadata">

**Author:** [@rudhra\_rai](https://discuss.elastic.co/u/rudhra_rai)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 10:04am UTC](https://discuss.elastic.co/t/elasticsearch-editing-source-code-to-accomodate-id-field-size-more-than-512-bytes/190163 "2019-07-12T10:04:19Z")

</div>

Hi, We are trying to migrate elasticsearch 2.3 to elasticsearch 5.6, We found the below error {"error":{"root\_cause":\[{"type":"action\_request\_validation\_exception","reason":"Validation Failed: 1: id is too long, must …

---

## [Circular nested "tree"](https://discuss.elastic.co/t/circular-nested-tree/190192)

<div class="topic-metadata">

**Author:** [@rvanegmond](https://discuss.elastic.co/u/rvanegmond)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 9:37am UTC](https://discuss.elastic.co/t/circular-nested-tree/190192 "2019-07-12T09:37:45Z")

</div>

I like to store and search a complex parent child structure using Kibana and Elasticsearch. I did find I few posts about parents and childs but they where relatively simple as where the parent has multiple childeren and …

---

## [Why doesn't node.name default to hostname](https://discuss.elastic.co/t/why-doesnt-node-name-default-to-hostname/190180)

<div class="topic-metadata">

**Author:** [@stefws](https://discuss.elastic.co/u/stefws)\
**Replies:** 3\
**Last updated:** [July 12, 2019, 9:36am UTC](https://discuss.elastic.co/t/why-doesnt-node-name-default-to-hostname/190180 "2019-07-12T09:36:52Z")

</div>

Trying to add a new node to a cluster only it doesn't seem to default node.name to hostname but rather a random string. Shouldn't it default to hostname? \[2019-07-12T10:55:05,152\]\[INFO \]\[o.e.n.Node \] \[\_u9q…

---

## [An HTTP line is larger than 4096 bytes](https://discuss.elastic.co/t/an-http-line-is-larger-than-4096-bytes/188876)

<div class="topic-metadata">

**Author:** [@masterThomas](https://discuss.elastic.co/u/masterThomas)\
**Replies:** 0\
**Last updated:** [July 4, 2019, 9:46am UTC](https://discuss.elastic.co/t/an-http-line-is-larger-than-4096-bytes/188876 "2019-07-04T09:46:19Z")

</div>

hi team, get error while trying to record my data to index with \_bulk api. I make records in my custom endpoint which takes all \_ids of my events. Use elasticsearch 6.7.0 . is there any workaround resolution of this? …

---

## [Im Getting error Unrecognized Exception ccs\_minimize\_roundtrips](https://discuss.elastic.co/t/im-getting-error-unrecognized-exception-ccs-minimize-roundtrips/189359)

<div class="topic-metadata">

**Author:** [@Deepa](https://discuss.elastic.co/u/Deepa)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 9:06am UTC](https://discuss.elastic.co/t/im-getting-error-unrecognized-exception-ccs-minimize-roundtrips/189359 "2019-07-12T09:06:14Z")

</div>

org.elasticsearch.ElasticsearchStatusException: Elasticsearch exception \[type=illegal\_argument\_exception, reason=request \[/\_search\] contains unrecognized parameter: \[ccs\_minimize\_roundtrips\]\] at org.elasticsearch.rest.B…

---

## [Curator - Not deleting indices](https://discuss.elastic.co/t/curator-not-deleting-indices/190037)

<div class="topic-metadata">

**Author:** [@cob](https://discuss.elastic.co/u/cob)\
**Replies:** 7\
**Last updated:** [July 12, 2019, 8:55am UTC](https://discuss.elastic.co/t/curator-not-deleting-indices/190037 "2019-07-12T08:55:19Z")

</div>

I'm trying to delete indices through curator that are older than 1 day. However, I'm running into issues when running Curator. I have the following Action-File.yml: actions: 1: action: delete\_indices descript…

---

## [Slow Response Time on APM Indices](https://discuss.elastic.co/t/slow-response-time-on-apm-indices/190170)

<div class="topic-metadata">

**Author:** [@yozel](https://discuss.elastic.co/u/yozel)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 8:48am UTC](https://discuss.elastic.co/t/slow-response-time-on-apm-indices/190170 "2019-07-12T08:48:27Z")

</div>

Hi all, We started using Elastic APM in the company and we have a bottleneck that causes Elasticsearch queries too long. We have an Elasticsearch cluster with 8 nodes. Node types are on default. Each node has 16 vCPUs,…

---

## [Request http plugin java elasticsearch](https://discuss.elastic.co/t/request-http-plugin-java-elasticsearch/190169)

<div class="topic-metadata">

**Author:** [@jpali](https://discuss.elastic.co/u/jpali)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 8:34am UTC](https://discuss.elastic.co/t/request-http-plugin-java-elasticsearch/190169 "2019-07-12T08:34:04Z")

</div>

Hi, I was integrated a java plugin in elastic (6.4) and I would like to know, how can we access to the client's request HTTP ? I would like to manipulate the url and the params directly in the plugin when I receive a r…

---

## [How to flush threadpool write queue?](https://discuss.elastic.co/t/how-to-flush-threadpool-write-queue/190168)

<div class="topic-metadata">

**Author:** [@Hariom\_Vashisth](https://discuss.elastic.co/u/Hariom_Vashisth)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 8:28am UTC](https://discuss.elastic.co/t/how-to-flush-threadpool-write-queue/190168 "2019-07-12T08:28:37Z")

</div>

GET \_cat/thread\_pool?v Elasticsearch version: 7.1 How can we solve this problem of heavy write? Meanwhile, what's the quick fix? Is it possible to flush/empty write and search queue? How can we reset failed/rejected…

---

## [Restrict User to a search filter](https://discuss.elastic.co/t/restrict-user-to-a-search-filter/189941)

<div class="topic-metadata">

**Author:** [@robin.msr](https://discuss.elastic.co/u/robin.msr)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 7:26am UTC](https://discuss.elastic.co/t/restrict-user-to-a-search-filter/189941 "2019-07-12T07:26:36Z")

</div>

Hi, I have a question about Elastic best practices. We use Elasticsearch with Kibana and Filebeat to log access logs from a loadbalancer. Behind it, we have dozens of websites. Each log contains a field which defines t…

---

## [Optimize elastic for creation and deletion of many small indexes](https://discuss.elastic.co/t/optimize-elastic-for-creation-and-deletion-of-many-small-indexes/190056)

<div class="topic-metadata">

**Author:** [@Maxim\_Tihobrazov](https://discuss.elastic.co/u/Maxim_Tihobrazov)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 6:22am UTC](https://discuss.elastic.co/t/optimize-elastic-for-creation-and-deletion-of-many-small-indexes/190056 "2019-07-12T06:22:59Z")

</div>

We have integration tests for our queries to elastic (to ensure that proper data is returned). Therefore we create several indexes per application branch (with unique name). For each test we create only a fiew record and…

---

## [I installed elasticsearch and then change the es\_home path but now its not working.....this is the error i am getting after running, service elasticsearch status](https://discuss.elastic.co/t/i-installed-elasticsearch-and-then-change-the-es-home-path-but-now-its-not-working-this-is-the-error-i-am-getting-after-running-service-elasticsearch-status/189931)

<div class="topic-metadata">

**Author:** [@Ayush\_Verma](https://discuss.elastic.co/u/Ayush_Verma)\
**Replies:** 6\
**Last updated:** [July 12, 2019, 6:20am UTC](https://discuss.elastic.co/t/i-installed-elasticsearch-and-then-change-the-es-home-path-but-now-its-not-working-this-is-the-error-i-am-getting-after-running-service-elasticsearch-status/189931 "2019-07-12T06:20:25Z")

</div>

this is the error i am getting : elasticsearch.service - Elasticsearch Loaded: loaded (/usr/lib/systemd/system/elasticsearch.service; enabled; vendor preset: enabled) Active: failed (Result: exit-code) since Thu 20…

---

## [Count number of keyword occurrences with query\_string](https://discuss.elastic.co/t/count-number-of-keyword-occurrences-with-query-string/190132)

<div class="topic-metadata">

**Author:** [@Noctis17](https://discuss.elastic.co/u/Noctis17)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 6:16am UTC](https://discuss.elastic.co/t/count-number-of-keyword-occurrences-with-query-string/190132 "2019-07-12T06:16:52Z")

</div>

Hello and good day ElasticSearch Team and Developers! This is in relation with my StackOverflow post: https://stackoverflow.com/questions/56932330/elasticsearch-count-number-of-keyword-occurences-in-a-document I'm sear…

---

## [X-pack compatibility](https://discuss.elastic.co/t/x-pack-compatibility/190139)

<div class="topic-metadata">

**Author:** [@sandipatmca](https://discuss.elastic.co/u/sandipatmca)\
**Replies:** 1\
**Last updated:** [July 12, 2019, 6:12am UTC](https://discuss.elastic.co/t/x-pack-compatibility/190139 "2019-07-12T06:12:30Z")

</div>

I have ELK5.6.15 installed but I am using x-pack 5.1.2. Is that compatible version?Surprisingly i am using x-pack 5.1.2 1 year trial license . I dont see any issue in accessing kibana GUI. I dont know if x-pack is worki…

---

## [Error In Elasticsearch After enable security on Window](https://discuss.elastic.co/t/error-in-elasticsearch-after-enable-security-on-window/189975)

<div class="topic-metadata">

**Author:** [@Sharma3007](https://discuss.elastic.co/u/Sharma3007)\
**Replies:** 4\
**Last updated:** [July 12, 2019, 5:16am UTC](https://discuss.elastic.co/t/error-in-elasticsearch-after-enable-security-on-window/189975 "2019-07-12T05:16:25Z")

</div>

Hi Team, I am getting below error while running elastic search after enable security :slight\_smile: 2019-07-11T12:30:59,252\]\[ERROR\]\[o.e.b.Bootstrap \] \[CMSDEV\] node validation exception \[1\] bootstrap checks f…

---

## [How to index documents in elasticsearch in the hierarchical way ( depth of the tree)?](https://discuss.elastic.co/t/how-to-index-documents-in-elasticsearch-in-the-hierarchical-way-depth-of-the-tree/189487)

<div class="topic-metadata">

**Author:** [@princesahu04](https://discuss.elastic.co/u/princesahu04)\
**Replies:** 4\
**Last updated:** [July 12, 2019, 4:36am UTC](https://discuss.elastic.co/t/how-to-index-documents-in-elasticsearch-in-the-hierarchical-way-depth-of-the-tree/189487 "2019-07-12T04:36:21Z")

</div>

I have 1 pdf document in which there is a heading then subheading and it's paragraphs ( more than 1 paragraph). I don't know the depth of the tree. For example: \> heading1 \> subheading1 \> old collecting she cons…

---

## [Do I need configuration when I am using docker in production?](https://discuss.elastic.co/t/do-i-need-configuration-when-i-am-using-docker-in-production/190131)

<div class="topic-metadata">

**Author:** [@Yam\_Houston](https://discuss.elastic.co/u/Yam_Houston)\
**Replies:** 0\
**Last updated:** [July 12, 2019, 3:37am UTC](https://discuss.elastic.co/t/do-i-need-configuration-when-i-am-using-docker-in-production/190131 "2019-07-12T03:37:10Z")

</div>

I've seen many import settings here (in production): https://www.elastic.co/guide/en/elasticsearch/reference/current/important-settings.html But not here (in production): https://www.elastic.co/guide/en/elasticsearch/re…

---

## [I want to configure put-mapping priority](https://discuss.elastic.co/t/i-want-to-configure-put-mapping-priority/189983)

<div class="topic-metadata">

**Author:** [@Ligh](https://discuss.elastic.co/u/Ligh)\
**Replies:** 2\
**Last updated:** [July 12, 2019, 2:14am UTC](https://discuss.elastic.co/t/i-want-to-configure-put-mapping-priority/189983 "2019-07-12T02:14:55Z")

</div>

Hi I use this command "\_cat/pending\_tasks" and find my priority is HIGH, My cluster need mapping operation on highest level priority。 I want to configure put-mapping priority from HIGH to URGENT。 Where can I configur…

---

## [How can I make elastic search as light weight as possible?](https://discuss.elastic.co/t/how-can-i-make-elastic-search-as-light-weight-as-possible/189554)

<div class="topic-metadata">

**Author:** [@surlysmiles](https://discuss.elastic.co/u/surlysmiles)\
**Replies:** 3\
**Last updated:** [July 12, 2019, 12:57am UTC](https://discuss.elastic.co/t/how-can-i-make-elastic-search-as-light-weight-as-possible/189554 "2019-07-12T00:57:38Z")

</div>

I am trying to use elastic search in an electron desktop app that needs to index maybe 15mb of documents and search them. However since this would be running on a local user's computer I was wondering how can I make el…

---

## [How to add custom document type to Elasticsearch indexing?](https://discuss.elastic.co/t/how-to-add-custom-document-type-to-elasticsearch-indexing/189880)

<div class="topic-metadata">

**Author:** [@EZprogramming](https://discuss.elastic.co/u/EZprogramming)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 11:03pm UTC](https://discuss.elastic.co/t/how-to-add-custom-document-type-to-elasticsearch-indexing/189880 "2019-07-11T23:03:47Z")

</div>

Any idea how can I add the document\_type =\> "athena" to my index (stage-athena)? I am using Kibana dev-tool UI by the way. PUT /stage-athena/athena didn't work! Elasticsearch queries: PUT /stage-athena/ PUT /stage-ath…

---

## [Date range query for the first two hours](https://discuss.elastic.co/t/date-range-query-for-the-first-two-hours/190113)

<div class="topic-metadata">

**Author:** [@mehdi-gital](https://discuss.elastic.co/u/mehdi-gital)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 9:33pm UTC](https://discuss.elastic.co/t/date-range-query-for-the-first-two-hours/190113 "2019-07-11T21:33:16Z")

</div>

I have a time series data where each document kinda looks like this: {"ID": ABC1, "timestamp": "2015-01-01T12:12:12", "key": myKey, "value": 433} I'm trying to write an aggregation to get the count of keys that appe…

---

## [Index Lifecycle Error on first rollover](https://discuss.elastic.co/t/index-lifecycle-error-on-first-rollover/189837)

<div class="topic-metadata">

**Author:** [@bigbobolue](https://discuss.elastic.co/u/bigbobolue)\
**Replies:** 1\
**Last updated:** [July 11, 2019, 8:45pm UTC](https://discuss.elastic.co/t/index-lifecycle-error-on-first-rollover/189837 "2019-07-11T20:45:53Z")

</div>

Index lifecycle error illegal\_state\_exception: no rollover info found for \[filebeat\] with alias \[filebeat\_logs\], the index has not yet rolled over with that alias

---

## [Indices stuck after recovery from backup](https://discuss.elastic.co/t/indices-stuck-after-recovery-from-backup/189843)

<div class="topic-metadata">

**Author:** [@penguinairlines](https://discuss.elastic.co/u/penguinairlines)\
**Replies:** 9\
**Last updated:** [July 11, 2019, 7:48pm UTC](https://discuss.elastic.co/t/indices-stuck-after-recovery-from-backup/189843 "2019-07-11T19:48:30Z")

</div>

Hi, I apologize for the large number of edits, I had some trouble using the code blocks since I didn't perceive that an extra carriage return needed to precede the preformatted text. I have a small elasticsearch cluste…

---

## [Spark Structured Streaming timeseries indices](https://discuss.elastic.co/t/spark-structured-streaming-timeseries-indices/189869)

<div class="topic-metadata">

**Author:** [@danielyahn](https://discuss.elastic.co/u/danielyahn)\
**Replies:** 2\
**Last updated:** [July 11, 2019, 7:09pm UTC](https://discuss.elastic.co/t/spark-structured-streaming-timeseries-indices/189869 "2019-07-11T19:09:53Z")

</div>

I have a follow up question to https://discuss.elastic.co/t/spark-structured-streaming-elasticsearch-sink-index-name/152449/4 James said, "As christian has mentioned above, ES-Hadoop will not create an index name using …

---

## [Indices: Better to have 1 for each month or 1 for each day?](https://discuss.elastic.co/t/indices-better-to-have-1-for-each-month-or-1-for-each-day/190084)

<div class="topic-metadata">

**Author:** [@aviationfan](https://discuss.elastic.co/u/aviationfan)\
**Replies:** 1\
**Last updated:** [July 11, 2019, 6:14pm UTC](https://discuss.elastic.co/t/indices-better-to-have-1-for-each-month-or-1-for-each-day/190084 "2019-07-11T18:14:57Z")

</div>

I am curious about the tradeoffs of the setup I currently have. My indices are setup as 1 for each month of the year instead of 1 per day. The number of events per day are 100K to 200K depending on user traffic. Just loo…

---

## [Query on CLF log](https://discuss.elastic.co/t/query-on-clf-log/190074)

<div class="topic-metadata">

**Author:** [@bhochhi](https://discuss.elastic.co/u/bhochhi)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 4:42pm UTC](https://discuss.elastic.co/t/query-on-clf-log/190074 "2019-07-11T16:42:50Z")

</div>

I am trying to create a query that returns documents with clientside and servererror. I tested various ways using regexp, span qury.. all seems working but not confident since the query doesn't consider the position of t…

---

## [Getting timebased results in Elasticsearch using Python](https://discuss.elastic.co/t/getting-timebased-results-in-elasticsearch-using-python/190071)

<div class="topic-metadata">

**Author:** [@elknewbee](https://discuss.elastic.co/u/elknewbee)\
**Replies:** 0\
**Last updated:** [July 11, 2019, 4:37pm UTC](https://discuss.elastic.co/t/getting-timebased-results-in-elasticsearch-using-python/190071 "2019-07-11T16:37:05Z")

</div>

Hi All, I am newbie here and have a problem here getting correct results out of Elasticsearch. We have a pipeline where logs flow from Logstash into ES and then Kibana. The data is flows perfectly and we can see the vis…

---

## [Enabling X-Pack makes elaticsearch fail to start](https://discuss.elastic.co/t/enabling-x-pack-makes-elaticsearch-fail-to-start/189631)

<div class="topic-metadata">

**Author:** [@Ryne\_Keel](https://discuss.elastic.co/u/Ryne_Keel)\
**Replies:** 4\
**Last updated:** [July 11, 2019, 3:49pm UTC](https://discuss.elastic.co/t/enabling-x-pack-makes-elaticsearch-fail-to-start/189631 "2019-07-11T15:49:21Z")

</div>

Recently generated certs etc to get elastic search users set up now that the feature is available with the basic license. cluster.name: bnisia node.name: elastic2 path.data: /var/lib/elasticsearch path.logs: /var/log/el…

[Previous page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1228)

[Next page](https://discuss.elastic.co/c/elastic-stack/elasticsearch/6.md?page=1230)
