# Latest

**URL:** https://discuss.elastic.co/latest.md?page=1068

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

**Page:** 1069

---

## [Return first/last/mid characters of a keyword field](https://discuss.elastic.co/t/return-first-last-mid-characters-of-a-keyword-field/306372)

<div class="topic-metadata">

**Author:** [@behappy\_alwayz0401](https://discuss.elastic.co/u/behappy_alwayz0401)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 5:24am UTC](https://discuss.elastic.co/t/return-first-last-mid-characters-of-a-keyword-field/306372 "2022-06-29T05:24:46Z")

</div>

I have a field account name that has string values with spaces. I would like to return the first 5 and last 4 characters of each value in this field in a runtime painless field. how can this be done? thanks

---

## [Winlogbeat error connecting to Elasticsearch at https://ip:9200: Get "https://ip:9200": x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority cert](https://discuss.elastic.co/t/winlogbeat-error-connecting-to-elasticsearch-at-https-ip-get-https-ip-9200-x509-certificate-signed-by-unknown-authority-possibly-because-of-crypto-rsa-verification-error-while-trying-to-verify-candidate-authority-cert/308419)

<div class="topic-metadata">

**Author:** [@alipujaistopo](https://discuss.elastic.co/u/alipujaistopo)\
**Replies:** 0\
**Last updated:** [June 29, 2022, 4:29am UTC](https://discuss.elastic.co/t/winlogbeat-error-connecting-to-elasticsearch-at-https-ip-get-https-ip-9200-x509-certificate-signed-by-unknown-authority-possibly-because-of-crypto-rsa-verification-error-while-trying-to-verify-candidate-authority-cert/308419 "2022-06-29T04:29:39Z")

</div>

i just try to install winlogbeat, and i put the ip into elasticsearch-ca.pem. but have an error like this. please help 2022-06-29T11:25:47.925+0700 INFO instance/beat.go:328 Setup Beat: winlogbeat; Version: 7.1…

---

## [How do you bind Elasticsearch server to public(ipV4) address?](https://discuss.elastic.co/t/how-do-you-bind-elasticsearch-server-to-public-ipv4-address/308415)

<div class="topic-metadata">

**Author:** [@DataStorageMuse](https://discuss.elastic.co/u/DataStorageMuse)\
**Replies:** 12\
**Last updated:** [June 29, 2022, 3:59am UTC](https://discuss.elastic.co/t/how-do-you-bind-elasticsearch-server-to-public-ipv4-address/308415 "2022-06-29T03:59:43Z")

</div>

I'm trying to use a http\_ca certificate to connect to an Elasticsearch server (using Python), and I was wondering how I can bind an instance to a public IP address. When I try to connect, I get this error: elastic\_trans…

---

## [Hi This is om I wanted some help so pls help me](https://discuss.elastic.co/t/hi-this-is-om-i-wanted-some-help-so-pls-help-me/308417)

<div class="topic-metadata">

**Author:** [@Draco\_King](https://discuss.elastic.co/u/Draco_King)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 2:53am UTC](https://discuss.elastic.co/t/hi-this-is-om-i-wanted-some-help-so-pls-help-me/308417 "2022-06-29T02:53:28Z")

</div>

This is my python code and wanted help pls help #!/usr/bin/env python3 #-- coding: utf-8 -- import the Elasticsearch low-level client library from elasticsearch import Elasticsearch domain name, or server's IP addres…

---

## [How to dynamically pass range query variables](https://discuss.elastic.co/t/how-to-dynamically-pass-range-query-variables/308410)

<div class="topic-metadata">

**Author:** [@hitesh\_nagdev](https://discuss.elastic.co/u/hitesh_nagdev)\
**Replies:** 1\
**Last updated:** [June 29, 2022, 12:12am UTC](https://discuss.elastic.co/t/how-to-dynamically-pass-range-query-variables/308410 "2022-06-29T00:12:54Z")

</div>

hi We need to pass dynamic values for timestamp into the filter range query within script. something like below example. "filter": \[ { "range": { "@timestamp": { "lte": "now-{{dynamicValueLte}}", "gte": "now-{{dyn…

---

## [Elastic\_agent 8.2.3 unhealthy status](https://discuss.elastic.co/t/elastic-agent-8-2-3-unhealthy-status/308413)

<div class="topic-metadata">

**Author:** [@Badr\_Atouhlaten](https://discuss.elastic.co/u/Badr_Atouhlaten)\
**Replies:** 2\
**Last updated:** [June 29, 2022, 12:00am UTC](https://discuss.elastic.co/t/elastic-agent-8-2-3-unhealthy-status/308413 "2022-06-29T00:00:55Z")

</div>

bellow error log in the client after i upgraded the elastic agent to 8.2.3 \[elastic\_agent\]\[error\] 2022-06-28T23:51:31Z - message: Application: filebeat--8.2.3\[23ef375c-440f-4504-aef6-26bfeb72d272\]: State changed to FAIL…

---

## [List of dictionaries mapping error](https://discuss.elastic.co/t/list-of-dictionaries-mapping-error/308273)

<div class="topic-metadata">

**Author:** [@cstone1492](https://discuss.elastic.co/u/cstone1492)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:56pm UTC](https://discuss.elastic.co/t/list-of-dictionaries-mapping-error/308273 "2022-06-28T23:56:19Z")

</div>

I am using ES 7.15 and attempting to explicit map a list of dictionaries in an index. The goal is field for each doc something like: "authors" : \[ {"name": "Mary", "org": "Havard"}, {"name": "Joe", "…

---

## [Configuring kibana and elasticsearsh in HTTPS](https://discuss.elastic.co/t/configuring-kibana-and-elasticsearsh-in-https/308340)

<div class="topic-metadata">

**Author:** [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:52pm UTC](https://discuss.elastic.co/t/configuring-kibana-and-elasticsearsh-in-https/308340 "2022-06-28T23:52:21Z")

</div>

how to configuring kibana and elasticsearsh in HTTPS and access to the interface of kibana with https ?? thanks .

---

## [Elasticsearch inbound/outbound traffic](https://discuss.elastic.co/t/elasticsearch-inbound-outbound-traffic/308352)

<div class="topic-metadata">

**Author:** [@Anton\_Schleenvoigt](https://discuss.elastic.co/u/Anton_Schleenvoigt)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 11:50pm UTC](https://discuss.elastic.co/t/elasticsearch-inbound-outbound-traffic/308352 "2022-06-28T23:50:28Z")

</div>

Hi, I'm trying to find out the amount of data produced for internal traffic between elasticsearch nodes. Did not find any useful on internet, and i always think that someone have been playing around with this type of qu…

---

## [Elasticsearch Datehistogram Interval](https://discuss.elastic.co/t/elasticsearch-datehistogram-interval/308367)

<div class="topic-metadata">

**Author:** [@Soumen\_Das](https://discuss.elastic.co/u/Soumen_Das)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:47pm UTC](https://discuss.elastic.co/t/elasticsearch-datehistogram-interval/308367 "2022-06-28T23:47:54Z")

</div>

I am creating a date histogram aggregation like this, where min and max of extended\_bounds are unix epoch values. "aggs": { "0": { "date\_histogram": { "field": "@timestamp", …

---

## [FortiGate-logs exporten from Graylog with GELF into ELK and read by "Fortinet Logs"](https://discuss.elastic.co/t/fortigate-logs-exporten-from-graylog-with-gelf-into-elk-and-read-by-fortinet-logs/308368)

<div class="topic-metadata">

**Author:** [@j0han](https://discuss.elastic.co/u/j0han)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 1:57pm UTC](https://discuss.elastic.co/t/fortigate-logs-exporten-from-graylog-with-gelf-into-elk-and-read-by-fortinet-logs/308368 "2022-06-28T13:57:24Z")

</div>

Hi all! I have a problem where I'm getting logs exported from Graylog with GELF. I can read the logs with logstash and I get the data I need exported as JSON. But I'm having big problems to get the integration "Fortin…

---

## [Logs from Elastic itself](https://discuss.elastic.co/t/logs-from-elastic-itself/308383)

<div class="topic-metadata">

**Author:** [@eliumoraes](https://discuss.elastic.co/u/eliumoraes)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:39pm UTC](https://discuss.elastic.co/t/logs-from-elastic-itself/308383 "2022-06-28T23:39:21Z")

</div>

Hello, I'm trying to find how to get the logs from elastic itself. I am using elastic cloud (with azure) and would like to see events such as reboots or system events, out of memory, green-to-yellow status, creation and…

---

## [Data sources for the predefined rules](https://discuss.elastic.co/t/data-sources-for-the-predefined-rules/307226)

<div class="topic-metadata">

**Author:** [@Barbarossa](https://discuss.elastic.co/u/Barbarossa)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:38pm UTC](https://discuss.elastic.co/t/data-sources-for-the-predefined-rules/307226 "2022-06-28T23:38:48Z")

</div>

Hello everyone Is there a way to see which data sources and components are needed for a predefined rule to be triggered? Just like how MITRE ATT&CK shows which data sources/components are needed for a detection techniqu…

---

## [All Log login activity Kibana](https://discuss.elastic.co/t/all-log-login-activity-kibana/308389)

<div class="topic-metadata">

**Author:** [@renato473](https://discuss.elastic.co/u/renato473)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 11:36pm UTC](https://discuss.elastic.co/t/all-log-login-activity-kibana/308389 "2022-06-28T23:36:01Z")

</div>

Hello, I would like to know how do I have access logs to kibana of activities performed by users. my cluster is in the cloud and when trying to use the xpack.security.audit.enabled option return the following error. "…

---

## [Indices full of data](https://discuss.elastic.co/t/indices-full-of-data/308406)

<div class="topic-metadata">

**Author:** [@Badr\_Atouhlaten](https://discuss.elastic.co/u/Badr_Atouhlaten)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 11:35pm UTC](https://discuss.elastic.co/t/indices-full-of-data/308406 "2022-06-28T23:35:10Z")

</div>

how i can clear the data in .ds-packetbeat-8.2.3-2022.06.21\*\] , i want to keep only 3 or 4 days worth of data, this way i can make sure i will not run out of disk space.

---

## [Difference between network.host, transport.host and http.host settings](https://discuss.elastic.co/t/difference-between-network-host-transport-host-and-http-host-settings/308215)

<div class="topic-metadata">

**Author:** [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Replies:** 5\
**Last updated:** [June 28, 2022, 11:23pm UTC](https://discuss.elastic.co/t/difference-between-network-host-transport-host-and-http-host-settings/308215 "2022-06-28T23:23:56Z")

</div>

Why http.host: and #transport.host: are still 0.0.0.0 after changing network.host: to a static @ i know that i have been configured my network.host before "0.0.0.0" but it still 0.0.0.0 in this two settings { http.host: …

---

## [Bug: Elastic Search Highlight Queries (Does not do Phrase match )](https://discuss.elastic.co/t/bug-elastic-search-highlight-queries-does-not-do-phrase-match/308407)

<div class="topic-metadata">

**Author:** [@soumilshah1995](https://discuss.elastic.co/u/soumilshah1995)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 11:02pm UTC](https://discuss.elastic.co/t/bug-elastic-search-highlight-queries-does-not-do-phrase-match/308407 "2022-06-28T23:02:32Z")

</div>

Hello All hope you are doing fine I have stumbled upon a bug and looking to seek advice from a community Problem Statment I want to highlight that "dreams may come" Here is what elk return PUT /test/\_doc/\_mappings …

---

## [Updating index settings by key-value pair](https://discuss.elastic.co/t/updating-index-settings-by-key-value-pair/308382)

<div class="topic-metadata">

**Author:** [@ALX\_DM](https://discuss.elastic.co/u/ALX_DM)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 10:25pm UTC](https://discuss.elastic.co/t/updating-index-settings-by-key-value-pair/308382 "2022-06-28T22:25:01Z")

</div>

In the new elasticsearch-java api client, is it possible to update a specific index setting by a key-value pair? Say, you have these keys: static final String NUMBER\_OF\_REPLICAS\_KEY = "index.number\_of\_replicas"; …

---

## [Date Histogram Only Return the Last Bucket](https://discuss.elastic.co/t/date-histogram-only-return-the-last-bucket/307537)

<div class="topic-metadata">

**Author:** [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 10:12pm UTC](https://discuss.elastic.co/t/date-histogram-only-return-the-last-bucket/307537 "2022-06-28T22:12:24Z")

</div>

Hi All, I was wondering if anyone knows of a way to get only the last bucket of a date histogram to be returned. I have the following query: GET metrics-system.filesystem-\*/\_search { "size": 0, "query": { "boo…

---

## [Output to redis with a "sorted set" datatype](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401)

<div class="topic-metadata">

**Author:** [@ktomu](https://discuss.elastic.co/u/ktomu)\
**Replies:** 1\
**Last updated:** [June 28, 2022, 9:26pm UTC](https://discuss.elastic.co/t/output-to-redis-with-a-sorted-set-datatype/308401 "2022-06-28T21:26:43Z")

</div>

Hi, I wanna find a way to send output to redis with datatype as "sorted set" and in batch mode. As I see now, logstash supports only list and channel as a datatype. Is there any other way how to do it?

---

## [Faceting/aggregations of nested fields](https://discuss.elastic.co/t/faceting-aggregations-of-nested-fields/308144)

<div class="topic-metadata">

**Author:** [@vadim-permakoff](https://discuss.elastic.co/u/vadim-permakoff)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 9:11pm UTC](https://discuss.elastic.co/t/faceting-aggregations-of-nested-fields/308144 "2022-06-28T21:11:22Z")

</div>

Hi, I need to implement a faceting feature for nested fields. For example, I have two documents, each has an “applicability” array, which defines nested fields state, lob and year, specifying where this document is appl…

---

## [Send data from Google tag Manager to Elastic search](https://discuss.elastic.co/t/send-data-from-google-tag-manager-to-elastic-search/308391)

<div class="topic-metadata">

**Author:** [@DILIP\_SHARMA](https://discuss.elastic.co/u/DILIP_SHARMA)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 7:02pm UTC](https://discuss.elastic.co/t/send-data-from-google-tag-manager-to-elastic-search/308391 "2022-06-28T19:02:58Z")

</div>

Hi Can we add Elasticsearch as Tag in Google tag manager and send data to Elasticsearch from google tag manager ?

---

## [Search API returns TotalHits 1 but zero hits in array](https://discuss.elastic.co/t/search-api-returns-totalhits-1-but-zero-hits-in-array/308390)

<div class="topic-metadata">

**Author:** [@ewolfman](https://discuss.elastic.co/u/ewolfman)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 6:55pm UTC](https://discuss.elastic.co/t/search-api-returns-totalhits-1-but-zero-hits-in-array/308390 "2022-06-28T18:55:27Z")

</div>

Hi, I ran into a scenario today with relatively old and robust code where the Search API returned totalHits of 1 (as expected) but hits array was empty. The Java client threw the following exception when tying to get t…

---

## [Need help creating a status panel using Heartbeat data](https://discuss.elastic.co/t/need-help-creating-a-status-panel-using-heartbeat-data/306170)

<div class="topic-metadata">

**Author:** [@paolovalladolid](https://discuss.elastic.co/u/paolovalladolid)\
**Replies:** 6\
**Last updated:** [June 28, 2022, 6:51pm UTC](https://discuss.elastic.co/t/need-help-creating-a-status-panel-using-heartbeat-data/306170 "2022-06-28T18:51:32Z")

</div>

I am trying to partially recreate the example dashboard shown here: In particular, I want to create a panel that uses a table, and I want the first column to be an up/down status column. This is the desired look: W…

---

## [Issue with very long TCP messages](https://discuss.elastic.co/t/issue-with-very-long-tcp-messages/308377)

<div class="topic-metadata">

**Author:** [@legoguy1000](https://discuss.elastic.co/u/legoguy1000)\
**Replies:** 3\
**Last updated:** [June 28, 2022, 6:49pm UTC](https://discuss.elastic.co/t/issue-with-very-long-tcp-messages/308377 "2022-06-28T18:49:31Z")

</div>

We are trying to ingest data via TCP into logstash and send to elasticsearch. Most messages are fine but sometimes our tool produces very long TCP messages and we end up with the first message getting trimmed and the re…

---

## [Plans to Support System Firewall Management?](https://discuss.elastic.co/t/plans-to-support-system-firewall-management/308388)

<div class="topic-metadata">

**Author:** [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 6:38pm UTC](https://discuss.elastic.co/t/plans-to-support-system-firewall-management/308388 "2022-06-28T18:38:30Z")

</div>

Hi All, I was wondering if there are any plans to be able support the management of system firewalls via Endpoint Security/Elastic Agent? Context, if I want to have system level firewall rules, I currently need to mana…

---

## [Why i can't to access to the interface of kibana?](https://discuss.elastic.co/t/why-i-cant-to-access-to-the-interface-of-kibana/308195)

<div class="topic-metadata">

**Author:** [@Firas\_Bougrine](https://discuss.elastic.co/u/Firas_Bougrine)\
**Replies:** 13\
**Last updated:** [June 28, 2022, 6:35pm UTC](https://discuss.elastic.co/t/why-i-cant-to-access-to-the-interface-of-kibana/308195 "2022-06-28T18:35:04Z")

</div>

i already installed elastic and kibana 8.2 in ubuntu 22.04 and i try to access kibana from the browser of my host it told me "Kibana server is not ready yet" this my elastic and kibana yml files : network.host: 192.16…

---

## [Compatibility question](https://discuss.elastic.co/t/compatibility-question/308300)

<div class="topic-metadata">

**Author:** [@Bruce\_Zu](https://discuss.elastic.co/u/Bruce_Zu)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 6:08pm UTC](https://discuss.elastic.co/t/compatibility-question/308300 "2022-06-28T18:08:01Z")

</div>

Hi, guys, Excuse me, I have a question about compatibility I want to know if my current code, based on version 6.8, workable with 7.17 cluster. Some of our cluster has been upgraded from 6.8 to 7.17. On the client si…

---

## [How to implement autosuggestions with gender typeahead using Elastic search](https://discuss.elastic.co/t/how-to-implement-autosuggestions-with-gender-typeahead-using-elastic-search/308278)

<div class="topic-metadata">

**Author:** [@dev555](https://discuss.elastic.co/u/dev555)\
**Replies:** 2\
**Last updated:** [June 28, 2022, 5:09pm UTC](https://discuss.elastic.co/t/how-to-implement-autosuggestions-with-gender-typeahead-using-elastic-search/308278 "2022-06-28T17:09:34Z")

</div>

Hi community, I am new to Elasticsearch and I have the requirement below. Hope you can share some insights on the same. I am trying include gender in the autosuggestions returned from backend. Present setup : As I typ…

---

## [Elastic Search custom Sorting](https://discuss.elastic.co/t/elastic-search-custom-sorting/308378)

<div class="topic-metadata">

**Author:** [@aashini](https://discuss.elastic.co/u/aashini)\
**Replies:** 0\
**Last updated:** [June 28, 2022, 4:29pm UTC](https://discuss.elastic.co/t/elastic-search-custom-sorting/308378 "2022-06-28T16:29:07Z")

</div>

I have a special scenario for sorting and I am not aware how to achieve that using ES Nest library. Here is how my data looks like : \[ { "id": "1", "overallSpeedScore": 68, "name": abc, …

[Previous page](https://discuss.elastic.co/latest.md?page=1067)

[Next page](https://discuss.elastic.co/latest.md?page=1069)
