logo
down
shadow

ELASTICSEARCH QUESTIONS

How to secure elasticsearch API's
How to secure elasticsearch API's
seems to work fine To secure elasticsearch without a paid license you can:Use third-party plugins
TAG : elasticsearch
Date : October 28 2020, 04:55 PM , By : Rajana
Unable to start ElasticSearch in my machine, StartupException is occuring while executing elasticsearch.bat
Unable to start ElasticSearch in my machine, StartupException is occuring while executing elasticsearch.bat
around this issue I need to work on elasticSearch, i have downloaded elasticsearch-6.7.2 from authorized website, but while trying to start the ElasticSearch server and while executing elasticsearch.bat file, i am getting the below error: , Go to the
TAG : elasticsearch
Date : October 16 2020, 06:10 PM , By : Sam Benemerito
ElasticSearch 6.x / 7.x - Index design
ElasticSearch 6.x / 7.x - Index design
it should still fix some issue In our logging/monitoring scenario, we ingest ~30TB per day. This is what i learned inthe last years: not the document count is important, the shard size is elementary!The perfect index size depends on the primary shard
TAG : elasticsearch
Date : October 13 2020, 05:00 PM , By : Ram S
Count of unique aggregration doc_count in ElasticSearch
Count of unique aggregration doc_count in ElasticSearch
This might help you It sounds like you can use Bucket Script Aggregation to simplify your query but the problem is that there is still open PR on this topic.So, for now i think the simplest is to use painless script with Scripted Metric Aggregation.
TAG : elasticsearch
Date : October 13 2020, 02:00 PM , By : Anila Liaqat
How to increase the return result for the agg result list
How to increase the return result for the agg result list
This might help you Here query size doesn't work for aggregation, you have to define the size inside the terms aggregation.Please find the below query to get more result.
TAG : elasticsearch
Date : October 12 2020, 10:00 AM , By : Thomas
elasticsearch aggregation fields with text type mapping
elasticsearch aggregation fields with text type mapping
this one helps. I am trying to aggregate on a field that has type text. , Update mapping to:
TAG : elasticsearch
Date : October 12 2020, 09:00 AM , By : Nimesh Desai
fastest way to tell if a term exists in the index or not
fastest way to tell if a term exists in the index or not
Hope that helps What is the fastest query that can tell if a term exists in the index or not. I am not looking for scoring or anything, just a quick true/false response form elastic search that it has a document that contains this index. , you can us
TAG : elasticsearch
Date : October 11 2020, 09:00 PM , By : tomxyz
Elasticsearch range query not working as expected
Elasticsearch range query not working as expected
Does that help Elastic parses the 4 digits as a year meaning it matches documents with a year less or equal to 9999, which i'm assuming is all your data.To avoid this your need to define in your mapping a strict format for your date field, this will
TAG : elasticsearch
Date : October 11 2020, 08:00 PM , By : obelisk
Elasticsearch 2.4 search filter: mix term with regexp
Elasticsearch 2.4 search filter: mix term with regexp
I wish this help you I think you need to use must because you want the documents that match two keys. For example:I created this mapping and documents to show you how you can pull only the documents that satisfy the match with the two keys that are y
TAG : elasticsearch
Date : October 11 2020, 06:00 PM , By : programer8472
ElasticSearch check if subset of word exists
ElasticSearch check if subset of word exists
should help you out You need to create a custom analyzer which uses a char filter to replace the . with the space.Below is the setting to create the above analyzer. You can use analyze API to verify this.
TAG : elasticsearch
Date : October 11 2020, 08:00 AM , By : James Flores
Is searching dynamic (webpage) content with Elasticsearch possible?
Is searching dynamic (webpage) content with Elasticsearch possible?
I wish this helpful for you Well, definitely you can do it, yes. Is it going to be efficient, depending on your strategy, yes. Is it fast, it's super fast.You could decide to go with one index per role and only index the specific content a user/role
TAG : elasticsearch
Date : October 11 2020, 05:00 AM , By : Luis Amador
Elasticsearch: Constant Data Field Type
Elasticsearch: Constant Data Field Type
around this issue You could use the _meta field for that purpose:
TAG : elasticsearch
Date : October 10 2020, 05:00 PM , By : Abdur Rehman
How to get definition of index alias?
How to get definition of index alias?
Hope this helps Use the index alias endpointTo get a list of all aliases :
TAG : elasticsearch
Date : October 10 2020, 03:00 PM , By : Hallo world
PUT vs POST when adding documents in elastic search
PUT vs POST when adding documents in elastic search
will help you POST :used to achieve auto-generation of ids. PUT :used when you want to specify an id. see this
TAG : elasticsearch
Date : October 10 2020, 05:00 AM , By : wingsfan64
How to _reindex elasticsearch data to new mapping (from flat fields to objects)?
How to _reindex elasticsearch data to new mapping (from flat fields to objects)?
this will help I suggest to simply use the reindex API to do this:
TAG : elasticsearch
Date : October 10 2020, 04:00 AM , By : Yasaman Khazaeni
Kibana Dashboard instead of my application dashboard
Kibana Dashboard instead of my application dashboard
Hope that helps Of course you can! :-)Just open your particular Dashboard in Kibana and you should see a "Share"-Button like in the following figure.
TAG : elasticsearch
Date : October 09 2020, 09:00 PM , By : Al B.
Is there any default way in elasticsearch to save the searches
Is there any default way in elasticsearch to save the searches
it fixes the issue There is a logging functionality for slow searches where all queries with a runtime above a threshold will be logged. If you reduce the treshlod to 0 all searches will be logged.Please have a look here: https://www.elastic.co/guide
TAG : elasticsearch
Date : October 09 2020, 06:00 PM , By : naildownx
Combining nested query get illegal_state_exception failed to find nested object under path
Combining nested query get illegal_state_exception failed to find nested object under path
hope this fix your issue I am new to StackOverFlow (made this account to answer this question :D) so if this answer is out of line bear with me. I have been dabbling in nested fields in Elasticsearch recently so I have some ideas as to how this error
TAG : elasticsearch
Date : October 09 2020, 12:00 PM , By : David Caro
elasticsearch 7 nest aggregation text keyword error
elasticsearch 7 nest aggregation text keyword error
seems to work fine You need to change your query a little bit to tell NEST to use keyword field instead of text, you can do this with .Suffix extension method. Link to docs.
TAG : elasticsearch
Date : October 09 2020, 09:00 AM , By : Atul Patil
What is the default Username and Password for ElasticSearch 7.2.0 (when x-pack enabled)?
What is the default Username and Password for ElasticSearch 7.2.0 (when x-pack enabled)?
will be helpful for those in need You need to use elasticsearch-setup-passwords util to generate/set password for the inbuilt user of elastic.To setup password you can use either one of the following commands:
TAG : elasticsearch
Date : October 09 2020, 12:00 AM , By : VikashKr.
How do I enable remote access/request to Elastic APM-server?
How do I enable remote access/request to Elastic APM-server?
it helps some times I have setup of Elastic with APM server on single machine. I've configured APM java agent to push traces to APM server on localhost. Everything works fine with localhost configuration on Windows. , To listen on 0.0.0.0 try:
TAG : elasticsearch
Date : October 08 2020, 05:00 PM , By : Potluck Mittal
Custom indexing template is not being applied
Custom indexing template is not being applied
this one helps. So, I found the mistake.When I looked up how to build my own template, at some point I looked at the documentation for the current version. But in 5.2., "index_patterns =>" doesn't exist.
TAG : elasticsearch
Date : October 08 2020, 12:00 PM , By : Marcel Lumaban
How to create Kibana filter using KQL language
How to create Kibana filter using KQL language
I wish did fix the issue. Jay, at the moment, Filters in Kibana use the AND syntax, there isn't an option for Or filters. You have a few options to do what you want: Create a filter with one of the items, e.g. title:biologist and a query for the othe
TAG : elasticsearch
Date : October 08 2020, 10:00 AM , By : Dimitar Kanev
Kibana FATAL Error: [elasticsearch.url]: definition for this key is missing
Kibana FATAL Error: [elasticsearch.url]: definition for this key is missing
I wish did fix the issue. I got the same issue for 7.2.0, got resolved by elasticsearch.hosts: ["http://localhost:9200/"]
TAG : elasticsearch
Date : October 08 2020, 12:00 AM , By : Aiman Mohamed Mostaf
SonarQube: embedded elasticsearch configuration location
SonarQube: embedded elasticsearch configuration location
it should still fix some issue for changing watermark setting, you can use dynamic cluster update setting: https://www.elastic.co/guide/en/elasticsearch/reference/current/cluster-update-settings.htmlfor watermark, something like this:
TAG : elasticsearch
Date : October 07 2020, 04:00 AM , By : Thomas Buron
What is the maximum number of fields allowed for an index (ES 7)?
What is the maximum number of fields allowed for an index (ES 7)?
I hope this helps . The limit of fields in an index is a soft-limit, it exists because having too many fields in an index impacts heavily on performance, storage and can lead to OOM errors.You can have way more of 15k fields in an index, but this is
TAG : elasticsearch
Date : October 07 2020, 02:00 AM , By : Milla Rigoni
Kibana and elasticsearch status is active , i can access elasticsearch via browser but kibana is giving error
Kibana and elasticsearch status is active , i can access elasticsearch via browser but kibana is giving error
hope this fix your issue I installed kibana and elasticsearch on google instance, elasticsearch is working fine. But when hit curl command for kibana it's giving an error message. , Try to change this:
TAG : elasticsearch
Date : October 05 2020, 10:00 PM , By : wsilves
Extract timestamp from log message
Extract timestamp from log message
it helps some times I am trying to index log files to Elastic search. All the log entries are being indexed into a field named message. @timestamp field shows the time the entry was indexed and not the timestamp from log entry. , use this as grok pat
TAG : elasticsearch
Date : October 05 2020, 10:00 AM , By : Xurastorm
how to avoid duplicate painless script in elastic-search
how to avoid duplicate painless script in elastic-search
it should still fix some issue You should use a stored script instead so you can reference it by id:
TAG : elasticsearch
Date : October 05 2020, 04:00 AM , By : Med Salah
Why Elasticsearch replaces document instead of create new?
Why Elasticsearch replaces document instead of create new?
wish helps you If you don't specify id in indexing url elasticsearch will autogenerate id for a document for you. Documents won't be overwritten.Index document request:
TAG : elasticsearch
Date : October 04 2020, 05:00 PM , By : Miguel Caraballo De
Elasticsearch match array usage
Elasticsearch match array usage
Hope this helps The following query allows you to retrieve documents whose array field is not empty:
TAG : elasticsearch
Date : October 04 2020, 03:00 PM , By : bgeri74
How to get elasticsearch to return more than 10000 results at a time? ES appears to not be honoring the index.max_result
How to get elasticsearch to return more than 10000 results at a time? ES appears to not be honoring the index.max_result
I hope this helps . You can use scroll API to retrieve more than 10000 records in elastic search as by default, 10000 is the upper cap for the number of documents returned.What Scroll API basically does is it fetches documents in chunks whose size ca
TAG : elasticsearch
Date : October 04 2020, 02:00 PM , By : user6054762
Elasticsearch - How to return distinct documents for certain fields
Elasticsearch - How to return distinct documents for certain fields
around this issue I believe you need to use an aggregation in you query to get that distinct pair behavior. see this for an example of distinct value query. The main difference between linked question and your case is that you have two fields, and yo
TAG : elasticsearch
Date : October 04 2020, 01:00 AM , By : Hilalah Feda
Kubernetes persistent volume claim overriding existing directory's owner and permissions
Kubernetes persistent volume claim overriding existing directory's owner and permissions
I think the issue was by ths following , Your question is a tiny bit confusing about what is happening versus what you want to be happening, but in general that problem is a common one; that's why many setups use an initContainer: to change the owner
TAG : elasticsearch
Date : October 03 2020, 10:00 PM , By : Johnny
Group Data on elastic search with same value on two key
Group Data on elastic search with same value on two key
Any of those help As per my understanding, you need a sum aggregation on field (totalMB) with respect to distinct values in two another fields (srcIP, dstIP).AFAIK, elastic search is not that good for aggregating on values of multiple fields, unless
TAG : elasticsearch
Date : October 03 2020, 06:00 PM , By : Pilkwang Kim
SQL like GROUP BY AND HAVING example
SQL like GROUP BY AND HAVING example
seems to work fine Since you are new to Elasticsearch and, also, looking into SQL, I would suggest having a look at Elasticsearch-SQL. Documentation is here.Regarding your specific query, you can try the translate API which will give you the Elastics
TAG : elasticsearch
Date : October 03 2020, 02:00 PM , By : Elraphy
elasticsearch 7.3 geo-shape envelop invalid_shape_exception
elasticsearch 7.3 geo-shape envelop invalid_shape_exception
To fix this issue For all types, both the inner type and coordinates fields are required.
TAG : elasticsearch
Date : October 03 2020, 04:00 AM , By : evelyn.zhang
Readiness and Liveness probes for elasticsearch 6.3.0 on Kubernetes failing
Readiness and Liveness probes for elasticsearch 6.3.0 on Kubernetes failing
wish of those help I am trying to setup EFK stack on Kubernetes . The Elasticsearch version being used is 6.3.2. Everything works fine until I place the probes configuration in the deployment YAML file. I am getting error as below. This is causing th
TAG : elasticsearch
Date : October 02 2020, 06:00 PM , By : Si Castro Yeow
Elasticsearch on Kubernetes - best practice
Elasticsearch on Kubernetes - best practice
seems to work fine Look at ES operator from Zalando. It's pretty brilliant! https://github.com/zalando-incubator/es-operator
TAG : elasticsearch
Date : October 02 2020, 05:00 PM , By : kubaello
Settings to improve elasticsearch startup time for unit tests?
Settings to improve elasticsearch startup time for unit tests?
should help you out There's no way so store all indexes into memory. index.store.type: memory did exist in ES 1.x but disappeared in ES 2.0 a long time ago.You can disable all logging by modifying te log4j2.properties file and setting all loggers to
TAG : elasticsearch
Date : October 02 2020, 11:00 AM , By : Allen C
elasticsearch cluster green with only one node
elasticsearch cluster green with only one node
Does that help you have two primary shards in your cluster with no replica. both shards are assigned to one data node. if you increase Number_of_replicas to 1 or higher, you would see the yellow status of cluster. on that moment you can do two things
TAG : elasticsearch
Date : October 02 2020, 08:00 AM , By : Fred
Filter jdbc data in Logstash
Filter jdbc data in Logstash
To fix this issue You can achieve this using aggregate filter plugin. I have not tested below, but should give you an idea.
TAG : elasticsearch
Date : September 30 2020, 11:00 PM , By : Martin Halvorsen
How do i check creation time of a ES doc in ES 7.3v?
How do i check creation time of a ES doc in ES 7.3v?
wish of those help One way to achieve this is to leverage ingest pipelines and record the value of _ingest.timestamp in the document. First create the following ingest pipeline:
TAG : elasticsearch
Date : September 30 2020, 08:00 PM , By : Ahsan Nur Mubarak An
How to pass parameters to a ElasticSearch plugin in
How to pass parameters to a ElasticSearch plugin in
will help you You may want to take a look at Elasticsearch's keystore. The idea is to set up the keystore with sensitive data in the form of
TAG : elasticsearch
Date : September 30 2020, 08:00 PM , By : Vishal Varma
Elasticsearch - query to get latest version of records from a flattened structure
Elasticsearch - query to get latest version of records from a flattened structure
around this issue Do a term aggregation on keyword Do a term aggregation on dates under a keyword. i Select top 1 based on date in descending order ii. Return top_hits
TAG : elasticsearch
Date : September 29 2020, 10:00 PM , By : Erika Ramadhani
ElasticSearch Health Check via POST call
ElasticSearch Health Check via POST call
may help you . Retrieving the cluster health is only supported by GET calls as it generally makes no sense to "read" data via a POST call (at least in well-behaved REST services):Either GET _cat/health(view source)
TAG : elasticsearch
Date : September 29 2020, 01:00 PM , By : Carlos
How does Elasticsearch incremental snapshots deal with the deleted docs?
How does Elasticsearch incremental snapshots deal with the deleted docs?
fixed the issue. Will look into that further When ES takes snapshots, ES doesn't take snapshots of docs but rather it takes snapshots of segments. Of course, the segments contain the docs.To understand the concept of incremental, let's take the below
TAG : elasticsearch
Date : September 29 2020, 02:00 AM , By : FBEn
How to stop logstash to write logstash logs to syslog?
How to stop logstash to write logstash logs to syslog?
will help you disable the rootLogger.appendRef.console in log4jThe logfiles that logstash itself produces are created through log4j, one stream goes by default to the console. Syslog will write to consolelogs to the syslog file itself. In the Ubuntu
TAG : elasticsearch
Date : September 29 2020, 12:00 AM , By : Anna Efimtseva
elasticsearch reindex documents reduce free space
elasticsearch reindex documents reduce free space
This might help you When you index a document in ES that already exists, ES will mark the previous document as deleted (but won't immediately remove it from the index), and index the new document.Effectively, if your document weighs 1K, once you have
TAG : elasticsearch
Date : September 28 2020, 02:00 PM , By : Bowen Bian
Update a field from a Elasticsearch document
Update a field from a Elasticsearch document
help you fix your problem What you can do is to _reindex your data to a dest index, delete your original one and then _reindex again to your original one with the new mapping. Reindex:
TAG : elasticsearch
Date : September 28 2020, 06:00 AM , By : Andreas Matter
Loop through items with painless but 'No field found'
Loop through items with painless but 'No field found'
around this issue This is because doc[] accesses doc-values, so it doesn't work on nested structures. From Elasticsearch documentation:
TAG : elasticsearch
Date : September 28 2020, 06:00 AM , By : Дмитрий Руденский
How to percolate simple_query_string/query_string query
How to percolate simple_query_string/query_string query
Hope that helps I don't understand what you are asking either. It may be that you do not understand percolator very well? This is an example I just tried now.Let's assume you have an index - let's call it test - in which you want to index some docume
TAG : elasticsearch
Date : September 28 2020, 05:00 AM , By : Maria Smolina
How to send application logs from a NodeJS app to the Elastic Stack hosted in Kubernetes?
How to send application logs from a NodeJS app to the Elastic Stack hosted in Kubernetes?
like below fixes the issue Disclaimer: I’m not a DevOps guy, but used to work with ELK stack from the user perspective.I think you can start with 3 basic components:
TAG : elasticsearch
Date : September 28 2020, 04:00 AM , By : Peter Kupt
Using conditionals in Logstash pipeline configuration
Using conditionals in Logstash pipeline configuration
this will help You should use the conditional before the elasticsearch output, not inside it.
TAG : elasticsearch
Date : September 26 2020, 12:00 PM , By : mingLi
AppSync mapping response from Lambda getting result from ElasticSearch
AppSync mapping response from Lambda getting result from ElasticSearch
wish help you to fix your issue AppSync has built in support for Amazon Elasticsearch resolvers. You can find some more information about that here!However, if you wish to keep your current Lambda resolver you could try the following mapping template
TAG : elasticsearch
Date : September 26 2020, 11:00 AM , By : joey Chou
Use Logstash to enrich one ElasticSearch document with fields from another
Use Logstash to enrich one ElasticSearch document with fields from another
seems to work fine The best way is indeed to try and denormalize all your data into "book" documents. However, it's not always ideal especially if the merged data (author, publishers) can change over time, in which case you'd need to update all relat
TAG : elasticsearch
Date : September 25 2020, 11:00 PM , By : Himanshu Chandwani
Filebeat default dashboards: no results found
Filebeat default dashboards: no results found
this will help Try adding the following setting to the filebeat config file:setup.dashboards.enabled: true
TAG : elasticsearch
Date : September 25 2020, 09:00 PM , By : Dominic Vaughan
Elastic Search getting error creating index
Elastic Search getting error creating index
Any of those help Although the cause of the error is already pointed and one way to avoid solution is also mentioned, I just want to make sure that you understand the other way to solve the issue and understand the pros and cons of it, As you are new
TAG : elasticsearch
Date : September 25 2020, 06:00 PM , By : MARCELO GARCIA BARBO
Elasticsearch to BigQuery pipeline deployment fails on cloud data fusion instance
Elasticsearch to BigQuery pipeline deployment fails on cloud data fusion instance
should help you out Please see the networking requirements as documented in https://cloud.google.com/data-fusion/docs/how-to/create-instance.Specifically:
TAG : elasticsearch
Date : September 25 2020, 12:00 PM , By : Diego FerrAz
Elasticsearch query returning far less number of records
Elasticsearch query returning far less number of records
should help you out You are missing a size parameter, which means it defaults to 10 results.e.g. add this to your query object:
TAG : elasticsearch
Date : September 25 2020, 05:00 AM , By : Nicole

shadow
Privacy Policy - Terms - Contact Us © 35dp-dentalpractice.co.uk