ElasticSearch

Cannot retrieve data which includes specific symbols in Kibana

我怕爱的太早我们不能终老 提交于 2021-02-11 07:05:04
问题 I try to use Kibana to retrive the comment data which includes some specific symbols like ? and 。 They are not general symbols. I try to use escape character \ for them, the KQL is like comment:\? or comment:\\? , but it doesn't work, can anyone help? 回答1: When you create a sample doc and let ES auto-generate the mapping for you, POST comments/_doc { "comment": "?" } running GET comments/_mapping will get you "comment":{ "type":"text", "fields":{ "keyword":{ "type":"keyword", "ignore_above"

Cannot use “OR” with “NOT _exists_” in Kibana 6.8.0 search bar

自闭症网瘾萝莉.ら 提交于 2021-02-11 06:27:28
问题 I am trying to create one query in the Kibana search bar to retrieve some specific documents. The goal is to get the documents that either have the field "myDate" before 2019-10-08 or "myDate" does not exist. I have documents that meet one or the other condition. I started by creating this query : myDate:<=2019-10-08 OR NOT _exists_:myDate But no documents were returned. Since it did not work, I tried some other ways i found online : myDate:<=2019-10-08 OR NOT (_exists_:myDate) myDate:<=2019

How to change the default index in Kibana-4

泄露秘密 提交于 2021-02-11 01:04:36
问题 There are 6 indices in my machine and when ever I run Kibana-4 it points to only one index all the time. But when I try to do the visualizations,I have the option to select any of the indices. How do I change the default index to the one I frequently use?. 回答1: Go to the "settings" tab (indicated by red box 1). Then to the "indices" tab (red box 2) and then select the index you want to set as default. Here I have the intention of keeping the index named "restaurants" (red box 3) as the

why I can't make search request to my Elastic Enterprise Search app using axios?

馋奶兔 提交于 2021-02-10 21:25:30
问题 so I want to make search request to my elastic enterprise search app using guide from the documentation in here , I don't want to use elastic node JS client, but I want to make http request using axios. here is the code I use const url = "https://XXXXXXX38ce49e5aff1aa238e6f9195.ent-search.asia-southeast1.gcp.elastic-cloud.com/api/as/v1/engines/events/search" const headers = {"Authorization": "Bearer search-qpz4bu5o7ubb8j31r15juyrh"} const jsonData = { query: "hello there" } try { const {data}

why I can't make search request to my Elastic Enterprise Search app using axios?

萝らか妹 提交于 2021-02-10 21:21:40
问题 so I want to make search request to my elastic enterprise search app using guide from the documentation in here , I don't want to use elastic node JS client, but I want to make http request using axios. here is the code I use const url = "https://XXXXXXX38ce49e5aff1aa238e6f9195.ent-search.asia-southeast1.gcp.elastic-cloud.com/api/as/v1/engines/events/search" const headers = {"Authorization": "Bearer search-qpz4bu5o7ubb8j31r15juyrh"} const jsonData = { query: "hello there" } try { const {data}

How to calculate elasticsearch index size?

一世执手 提交于 2021-02-10 21:11:16
问题 I have time-based indices(log-nginx-2021.01.28) from 26th December 2020 to jan 28th January 2021 each index size is around 4.5 mb and these indices have 3 primary and 1 replica shard total 6 shards so my question is the index size 4.5 mb including replica also? 回答1: you can use the _cat/indices?v API, which prints the total index size and total size of primary shards. if you can provide the output of Above API which shows your index in question, we can confirm its a total index size or size

Using Persistent Host Volume for ElasticSearch with Docker-Compose

99封情书 提交于 2021-02-10 20:12:04
问题 Running Elasticsearch using the below docker-compose.yml is throwing an error Java.nio.file.AccessDeniedException: /usr/share/elasticsearch/data/nodes It appears that this is due to trying to mount /usr/share/elasticsearch/data in the Docker container to ./data/elasticsearch/data on the host. Tried setting user: "1000:1000" after identifying the following info, but still getting the same error. the owner/group of /usr/share/elasticsearch/data/nodes to be elasticsearch:elasticsearch the owner

{"error":"Content-Type header [application/x-www-form-urlencoded] is not supported...

为君一笑 提交于 2021-02-10 16:36:21
ElasticSearch-head 查询报 406错误码 {"error":"Content-Type header [application/x-www-form-urlencoded] is not supported","status":406} 解决方法: 1、进入head安装目录; 2、cd _site/ 3、编辑vendor.js 共有两处       ①. 6886行 contentType: "application/x-www-form-urlencoded          改成          contentType: "application/json;charset=UTF-8"       ②. 7574行 var inspectData = s.contentType === "application/x-www-form-urlencoded" &&         改成        var inspectData = s.contentType === "application/json;charset=UTF-8" && 人生确是无常的,不过人生的可爱处也多半就在这无常。 —— 李霁野 来源: oschina 链接: https://my.oschina.net/u/4297712/blog/3559876

Elastic Pipelines: Skip Import On Failure

不问归期 提交于 2021-02-10 14:46:05
问题 Individual processors in an Elastic pipelines have an on_failure attribute. This allows you to handle a failure/error in a pipeline. The example in the docs show setting an additional field on your document. { "description" : "my first pipeline with handled exceptions", "processors" : [ { "rename" : { "field" : "foo", "to" : "bar", "on_failure" : [ { "set" : { "field" : "error.message", "value" : "{{ _ingest.on_failure_message }}" } } ] } } ] } Is it possible to tell the pipeline to SKIP

Geopandas dataframe to GeoJSON to Elasticsearch index?

六眼飞鱼酱① 提交于 2021-02-10 14:44:51
问题 I've a question that is related to this question: I'm relatively new to python and now have started to visualize in Kibana, which I'm brand new at (as in, I've never used it before). Now I have a pandas datafram geoseries like this: ID Geometry 0 9417 POLYGON ((229611.185 536552.731, 229611.100 53... 1 3606 POLYGON ((131122.280 460609.117, 131108.312 46... 2 1822 POLYGON ((113160.653 517762.384, 113169.755 51... 3 7325 POLYGON ((196861.725 470370.632, 196869.990 47... 4 9258 POLYGON ((201372