# Elastic Stack

**URL:** https://discuss.elastic.co/c/elastic-stack/81.md?page=1233

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

**Page:** 1234

---

## [Frequency of a field with python elasticsearch module](https://discuss.elastic.co/t/frequency-of-a-field-with-python-elasticsearch-module/284644)

<div class="topic-metadata">

**Author:** [@mortenb123](https://discuss.elastic.co/u/mortenb123)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 5:36pm UTC](https://discuss.elastic.co/t/frequency-of-a-field-with-python-elasticsearch-module/284644 "2021-09-20T17:36:35Z")

</div>

I need to count the frequency of a field, how can I do this?, I tried with aggs, but the module only says: raise HTTP\_EXCEPTIONS.get(status\_code, TransportError)( elasticsearch.exceptions.RequestError: RequestError(…

---

## [RestHighLevelClient Request cannot be executed I/O reactor status: STOPPED](https://discuss.elastic.co/t/resthighlevelclient-request-cannot-be-executed-i-o-reactor-status-stopped/284630)

<div class="topic-metadata">

**Author:** [@Wondwosen\_Eshetu](https://discuss.elastic.co/u/Wondwosen_Eshetu)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 2:30pm UTC](https://discuss.elastic.co/t/resthighlevelclient-request-cannot-be-executed-i-o-reactor-status-stopped/284630 "2021-09-20T14:30:56Z")

</div>

I am getting the below error while executing the search requests. We are using ElasticSearch 6.8.6 and the same version of RestHighLevel client java.lang.RuntimeException: Request cannot be executed; I/O reactor status:…

---

## [Kibana is on a remote server](https://discuss.elastic.co/t/kibana-is-on-a-remote-server/284497)

<div class="topic-metadata">

**Author:** [@rachelyang](https://discuss.elastic.co/u/rachelyang)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 9:46pm UTC](https://discuss.elastic.co/t/kibana-is-on-a-remote-server/284497 "2021-09-20T21:46:46Z")

</div>

I built an Elasticsearch cluster on server1(master) and server2(second), and a Kibana on server3. After I set up basic security for HTTP to encrypt communication between Kibana and Elasticsearch, I cannot restart Kibana.…

---

## [Copy field value from one index to another index](https://discuss.elastic.co/t/copy-field-value-from-one-index-to-another-index/284661)

<div class="topic-metadata">

**Author:** [@dnnxl](https://discuss.elastic.co/u/dnnxl)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 9:33pm UTC](https://discuss.elastic.co/t/copy-field-value-from-one-index-to-another-index/284661 "2021-09-20T21:33:47Z")

</div>

Hello, I would like to know what is the best way to copy field value from one index to another existing index, base on a matching criteria. For example. I have index "indexOne" and target "indexTwo", here is an example…

---

## [Unable to add remote cluster for CCS](https://discuss.elastic.co/t/unable-to-add-remote-cluster-for-ccs/284519)

<div class="topic-metadata">

**Author:** [@Tosh](https://discuss.elastic.co/u/Tosh)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 8:27pm UTC](https://discuss.elastic.co/t/unable-to-add-remote-cluster-for-ccs/284519 "2021-09-20T20:27:24Z")

</div>

Hi , I have configured the remote cluster using configure the remote cluster GET /\_cluster/settings {"persistent":{"cluster":{"remote":{"cluster\_one":{"seeds":\["127.0.0.1:9300"\]}}}},"transient":{}} But when i do get …

---

## [Calculate Percentage of utilization](https://discuss.elastic.co/t/calculate-percentage-of-utilization/283689)

<div class="topic-metadata">

**Author:** [@mericaforrestgumpsun](https://discuss.elastic.co/u/mericaforrestgumpsun)\
**Replies:** 9\
**Last updated:** [September 20, 2021, 6:25pm UTC](https://discuss.elastic.co/t/calculate-percentage-of-utilization/283689 "2021-09-20T18:25:28Z")

</div>

Hello, I am wanting to make a Kibana visualization that will give me the percentage of time that a task is running. I have a field called totalExecuationTimeInSeconds, that I would like to divide into the amount of time…

---

## [FSCrawler failure handling](https://discuss.elastic.co/t/fscrawler-failure-handling/284615)

<div class="topic-metadata">

**Author:** [@Francois\_Saab](https://discuss.elastic.co/u/Francois_Saab)\
**Replies:** 8\
**Last updated:** [September 20, 2021, 6:16pm UTC](https://discuss.elastic.co/t/fscrawler-failure-handling/284615 "2021-09-20T18:16:15Z")

</div>

Hello, We are considering the question: how FSCrawler manages failure? What happened if FSCrawler failed to upload a certain file because of a failure on the ElasticSearch side? Does FSCrawler implements an automatic f…

---

## [Bearer token in HTTP filter](https://discuss.elastic.co/t/bearer-token-in-http-filter/284641)

<div class="topic-metadata">

**Author:** [@Juan\_Montoya](https://discuss.elastic.co/u/Juan_Montoya)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 5:03pm UTC](https://discuss.elastic.co/t/bearer-token-in-http-filter/284641 "2021-09-20T17:03:53Z")

</div>

Hi, I'm trying to get data from an HTTP API, the main API needs a bearer token to authenticate, a secondary API gives me the token that allows the authentication in the main API. I Solved using http\_poller input to get …

---

## [Heartbeat - Synthetics/Browser Monitor get TLS Certificate Information](https://discuss.elastic.co/t/heartbeat-synthetics-browser-monitor-get-tls-certificate-information/284629)

<div class="topic-metadata">

**Author:** [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 4:41pm UTC](https://discuss.elastic.co/t/heartbeat-synthetics-browser-monitor-get-tls-certificate-information/284629 "2021-09-20T16:41:07Z")

</div>

Hi All, I was wondering if there is a way to get the Synthetic/Browser monitor of Heartbeat to collect the TLS Certificate information against the initial URL. Currently, when setting up a Browser monitor, I also need …

---

## [Connect to Elasticsearch over SSH tunnel](https://discuss.elastic.co/t/connect-to-elasticsearch-over-ssh-tunnel/284522)

<div class="topic-metadata">

**Author:** [@Imy](https://discuss.elastic.co/u/Imy)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 4:12pm UTC](https://discuss.elastic.co/t/connect-to-elasticsearch-over-ssh-tunnel/284522 "2021-09-20T16:12:04Z")

</div>

I want to create a code that connects to Elasticsearch through a SSH tunnel. To do that, I created an EC2 instance where I was able to ssh into it and install Elasticsearch. Then, I created RestHighLevelClient using this…

---

## [Heartbeat http not providing any ping result](https://discuss.elastic.co/t/heartbeat-http-not-providing-any-ping-result/283948)

<div class="topic-metadata">

**Author:** [@josh12](https://discuss.elastic.co/u/josh12)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 1:47pm UTC](https://discuss.elastic.co/t/heartbeat-http-not-providing-any-ping-result/283948 "2021-09-20T13:47:39Z")

</div>

Below is my code. When i check, it always showing summary.up is true. I test using postman i receive 400 bad request - type: http id: my-site name: MY Site enabled: true schedule: '@every 5s' hosts: \["https://…

---

## [Heartbeat response code showing 200 but it is actually 502](https://discuss.elastic.co/t/heartbeat-response-code-showing-200-but-it-is-actually-502/284589)

<div class="topic-metadata">

**Author:** [@ezramiller](https://discuss.elastic.co/u/ezramiller)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 1:46pm UTC](https://discuss.elastic.co/t/heartbeat-response-code-showing-200-but-it-is-actually-502/284589 "2021-09-20T13:46:34Z")

</div>

Hello everyone! So I have a bunch of website monitors and one of them right not working and showing 502 Bad gateway (Chrome inspect also showing status 502). But my heartbeat (v. 7.14.0) showing response status 200. Any…

---

## [How to show the values for destination port?](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196)

<div class="topic-metadata">

**Author:** [@Wooden\_tree](https://discuss.elastic.co/u/Wooden_tree)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 1:38pm UTC](https://discuss.elastic.co/t/how-to-show-the-values-for-destination-port/284196 "2021-09-20T13:38:24Z")

</div>

Hello, We examine our Firewall logs related to a vulnerability scanner and we’d like to have a stats on ports it uses (destination.port) to adjust the Firewall configuration. So we’d like to have a table showing us all …

---

## [ElasticSearch Search-as-you-type field type field with partial search](https://discuss.elastic.co/t/elasticsearch-search-as-you-type-field-type-field-with-partial-search/284627)

<div class="topic-metadata">

**Author:** [@Jacques\_du\_Plessis](https://discuss.elastic.co/u/Jacques_du_Plessis)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 1:35pm UTC](https://discuss.elastic.co/t/elasticsearch-search-as-you-type-field-type-field-with-partial-search/284627 "2021-09-20T13:35:15Z")

</div>

I recently updating my ngram implementation settings to use Search-as-you-type field type. This worked great but I noticed that partial searching does not work. If I search for number 00060434 I get the desired result …

---

## [Logstash ruby length does not count correctly](https://discuss.elastic.co/t/logstash-ruby-length-does-not-count-correctly/284323)

<div class="topic-metadata">

**Author:** [@Rauly\_Koto](https://discuss.elastic.co/u/Rauly_Koto)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 1:19pm UTC](https://discuss.elastic.co/t/logstash-ruby-length-does-not-count-correctly/284323 "2021-09-20T13:19:19Z")

</div>

The execution\_length\_output count string correctly, but execution\_length\_input string is to low. ruby { code =\> "event.set('execution\_length\_output', event.get('\[execution\]\[output\]').length) event.set('execution\_lengt…

---

## [Check if event field does not exist when 'nil' should be considered as "exists"](https://discuss.elastic.co/t/check-if-event-field-does-not-exist-when-nil-should-be-considered-as-exists/284605)

<div class="topic-metadata">

**Author:** [@e.sharshenaliev](https://discuss.elastic.co/u/e.sharshenaliev)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 1:09pm UTC](https://discuss.elastic.co/t/check-if-event-field-does-not-exist-when-nil-should-be-considered-as-exists/284605 "2021-09-20T13:09:29Z")

</div>

We are indexing metrics that arrive to logstash in json format There is a value "MeasurementDate" that can either: be missing has null value has date value (iso8601) When field has valid value or is missing - we need…

---

## [Custom metric for aggregation based visualizations](https://discuss.elastic.co/t/custom-metric-for-aggregation-based-visualizations/284210)

<div class="topic-metadata">

**Author:** [@pchakour](https://discuss.elastic.co/u/pchakour)\
**Replies:** 13\
**Last updated:** [September 20, 2021, 12:48pm UTC](https://discuss.elastic.co/t/custom-metric-for-aggregation-based-visualizations/284210 "2021-09-20T12:48:54Z")

</div>

Hello :wave: I'm trying to migrate the famous plugin datasweet formula but I'm stuck. I created a custom metric using the registerMetric function from the data plugin and the metric appears except options. I want to cr…

---

## [Index Recovery failed](https://discuss.elastic.co/t/index-recovery-failed/284492)

<div class="topic-metadata">

**Author:** [@anon54150333](https://discuss.elastic.co/u/anon54150333)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 11:38am UTC](https://discuss.elastic.co/t/index-recovery-failed/284492 "2021-09-20T11:38:13Z")

</div>

Hi there, i have a big problem with my elasticsearch installation (7.2.0). I'm having one node and since some weeks (i noticed it today) i have the problem that the index recovery failed. Error Message of the log: fail…

---

## [Elasticsearch error while i restart the server](https://discuss.elastic.co/t/elasticsearch-error-while-i-restart-the-server/283802)

<div class="topic-metadata">

**Author:** [@umangpatel](https://discuss.elastic.co/u/umangpatel)\
**Replies:** 13\
**Last updated:** [September 20, 2021, 11:19am UTC](https://discuss.elastic.co/t/elasticsearch-error-while-i-restart-the-server/283802 "2021-09-20T11:19:24Z")

</div>

Error=failed to build store metadata. checking segment info integrity (with commit \[n I have removed the older data directly(index) from the node data directory, while i have restart the elasticsearch server and see in …

---

## [How sorting result for ecommerce](https://discuss.elastic.co/t/how-sorting-result-for-ecommerce/284612)

<div class="topic-metadata">

**Author:** [@script](https://discuss.elastic.co/u/script)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 10:12am UTC](https://discuss.elastic.co/t/how-sorting-result-for-ecommerce/284612 "2021-09-20T10:12:55Z")

</div>

Hi to all, i don't understan what is the best solution for sort search result in my ecommerce. I have a index 'product', with same filed. The field 'name' have this mapping: \['type' =\> 'text', 'term\_vector' =\> 'with\_pos…

---

## [How to create visualization of text data](https://discuss.elastic.co/t/how-to-create-visualization-of-text-data/284607)

<div class="topic-metadata">

**Author:** [@Aviel\_Bashari](https://discuss.elastic.co/u/Aviel_Bashari)\
**Replies:** 1\
**Last updated:** [September 20, 2021, 9:46am UTC](https://discuss.elastic.co/t/how-to-create-visualization-of-text-data/284607 "2021-09-20T09:46:24Z")

</div>

Hi, im having an ELK stack with filebeats. my filebeats configuration is listening to MQTT messages on specific topic. under discover I can filter the message and read the log,my goal is to create dashboard/visualizti…

---

## [Elasticsearch feature for rating](https://discuss.elastic.co/t/elasticsearch-feature-for-rating/284410)

<div class="topic-metadata">

**Author:** [@elastic\_dev](https://discuss.elastic.co/u/elastic_dev)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 9:20am UTC](https://discuss.elastic.co/t/elasticsearch-feature-for-rating/284410 "2021-09-20T09:20:41Z")

</div>

Hi, what feature does Elastic Search provide for rating? For example, I have a restaurant application and I want to update the restaurant rating and how can I sort the query on the basis of rating for nearby restaurants. …

---

## [ELK - Snapshot timeout](https://discuss.elastic.co/t/elk-snapshot-timeout/284396)

<div class="topic-metadata">

**Author:** [@X\_T](https://discuss.elastic.co/u/X_T)\
**Replies:** 7\
**Last updated:** [September 20, 2021, 9:11am UTC](https://discuss.elastic.co/t/elk-snapshot-timeout/284396 "2021-09-20T09:11:29Z")

</div>

Hi team, I'm trying to create a snapshot from the cluster but i'm getting some timeout errors: PUT /\_snapshot/my\_backup { "type": "fs", "settings": { "compress" : true, "location": "/etc/e…

---

## [Bulk API Insert Data missing](https://discuss.elastic.co/t/bulk-api-insert-data-missing/284325)

<div class="topic-metadata">

**Author:** [@Parth\_Darji](https://discuss.elastic.co/u/Parth_Darji)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 8:57am UTC](https://discuss.elastic.co/t/bulk-api-insert-data-missing/284325 "2021-09-20T08:57:38Z")

</div>

Hi Team, We are using Elastic 7 for our application with Java base code and elasticsearch-rest-high-level-client with 7.13.3 version for bulk insert using restHighLevelClient.bulk(createIndexRequest(contacts), RequestOp…

---

## [ElasticSearch on Kubernetes on RPi4](https://discuss.elastic.co/t/elasticsearch-on-kubernetes-on-rpi4/284376)

<div class="topic-metadata">

**Author:** [@George\_Leonard](https://discuss.elastic.co/u/George_Leonard)\
**Replies:** 4\
**Last updated:** [September 20, 2021, 8:43am UTC](https://discuss.elastic.co/t/elasticsearch-on-kubernetes-on-rpi4/284376 "2021-09-20T08:43:26Z")

</div>

Hi all Looking at putting together a "little" lab. Thinking of building up to 4 or 5 RPI4's with 4GB each. Want to then drop K8S onto them. Not sure how I will do persistent storage, as a start might just give them e…

---

## [How run autotest if elasticsearch in kubernetes?](https://discuss.elastic.co/t/how-run-autotest-if-elasticsearch-in-kubernetes/284604)

<div class="topic-metadata">

**Author:** [@patsevanton](https://discuss.elastic.co/u/patsevanton)\
**Replies:** 0\
**Last updated:** [September 20, 2021, 8:41am UTC](https://discuss.elastic.co/t/how-run-autotest-if-elasticsearch-in-kubernetes/284604 "2021-09-20T08:41:18Z")

</div>

Hello! I read documentation https://github.com/elastic/elasticsearch/blob/master/TESTING.asciidoc ./gradlew test -Dtests.haltonfailure=false ./gradlew test -verbose But how run autotest if elasticsearch in kubernetes? …

---

## [Sub Aggregating a terms Bucket Aggregation](https://discuss.elastic.co/t/sub-aggregating-a-terms-bucket-aggregation/284481)

<div class="topic-metadata">

**Author:** [@Manisekhar\_techo](https://discuss.elastic.co/u/Manisekhar_techo)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 8:11am UTC](https://discuss.elastic.co/t/sub-aggregating-a-terms-bucket-aggregation/284481 "2021-09-20T08:11:31Z")

</div>

Hello, I have a bool Query which gives me results and terms bucket Aggregation on one of the Fields. is there a way to Aggregate each Bucket item with Date Histogram aggregation { "size": 10, "query": { …

---

## [Terms Bucket Aggregation count per Year](https://discuss.elastic.co/t/terms-bucket-aggregation-count-per-year/284487)

<div class="topic-metadata">

**Author:** [@Manisekhar\_techo](https://discuss.elastic.co/u/Manisekhar_techo)\
**Replies:** 2\
**Last updated:** [September 20, 2021, 7:34am UTC](https://discuss.elastic.co/t/terms-bucket-aggregation-count-per-year/284487 "2021-09-20T07:34:49Z")

</div>

I have a terms Bucket Aggregation, is there a way for me to get the date histogram for those individual bucket items by combining the date histogram with that date Histogram { "dates": { "date\_histogram": {…

---

## [View rollover condition](https://discuss.elastic.co/t/view-rollover-condition/284558)

<div class="topic-metadata">

**Author:** [@kmohammad](https://discuss.elastic.co/u/kmohammad)\
**Replies:** 3\
**Last updated:** [September 20, 2021, 7:24am UTC](https://discuss.elastic.co/t/view-rollover-condition/284558 "2021-09-20T07:24:15Z")

</div>

We have an elasticsearch cluster 5.6.12 which xpack didn't installed on it, new indexes created on this cluster regularly, I found the index alias and I want to see the rollover condition of that index alias but I can't …

---

## [Ingest node disc usage keeps rising](https://discuss.elastic.co/t/ingest-node-disc-usage-keeps-rising/284431)

<div class="topic-metadata">

**Author:** [@Tadija](https://discuss.elastic.co/u/Tadija)\
**Replies:** 6\
**Last updated:** [September 20, 2021, 6:05am UTC](https://discuss.elastic.co/t/ingest-node-disc-usage-keeps-rising/284431 "2021-09-20T06:05:42Z")

</div>

I've created a new elastic cloud deployment 7.14.x - Hot tier contains 1 node with 2 GB disc, Warm tier 1 node 320 GB disc. I wont do any document/index updating, a human will occasionally check logs via Kibana. I've se…

[Previous page](https://discuss.elastic.co/c/elastic-stack/81.md?page=1232)

[Next page](https://discuss.elastic.co/c/elastic-stack/81.md?page=1234)
