Questions tagged [elasticsearch-plugin]

Elasticsearch plugins are a way to enhance the basic elasticsearch functionality in a custom manner.

Elasticsearch Plugins are a way to enhance the basic elasticsearch functionality in a custom manner. They range from adding custom mapping types, custom analyzers (in a more built in fashion), native scripts, custom discovery and more.

See the Plugins documentation for more.

968 questions
43
votes
12 answers

Running ElasticSearch as the root user

I'm getting the error below when I try to start ElasticSearch 5.0 with ./elasticsearch: [2016-11-23T13:44:09,507][WARN ][o.e.b.ElasticsearchUncaughtExceptionHandler] [] uncaught exception in thread…
Santosh Hegde
  • 3,420
  • 10
  • 35
  • 51
39
votes
10 answers

Removing old indices in elasticsearch

I have the many of my logs indexed in logstash-Year-Week format. That is if i want to delete indices older than a few weeks, how can I achieve that in elasticsearch. Is there an easy, seamless way to do that?
steven johns
  • 477
  • 2
  • 6
  • 8
37
votes
6 answers

User authentication in Elasticsearch query using python

I'm using elastisearch using Python. My code looks somewhat like this:- from elasticsearch import Elasticsearch if __name__ == '__main__': index="IndexPosition" es=Elasticsearch(['https://localhost:8080']) res =…
31
votes
2 answers

How to check if an index exists in elasticsearch using a python script and perform exception handling over it?

How do I check whether an index exists or not using a python query? I'm passing my index as a variable assigned outside the query as :- i=int(datetime.datetime.now().strftime('%d'))+1 indextring="index" for m in range (i-10,i): d =…
28
votes
7 answers

How can I run script automatically after Docker container startup

I'm using Search Guard plugin to secure an elasticsearch cluster composed of multiple nodes. Here is my Dockerfile: #!/bin/sh FROM docker.elastic.co/elasticsearch/elasticsearch:5.6.3 USER root # Install search guard RUN bin/elasticsearch-plugin…
26
votes
4 answers

Like search in Elasticsearch

I am using elasticsearch for filtering and searching from json file and I am newbie in this technology. So I am little bit confused how to write like query in elasticsearch. select * from table_name where 'field_name' like 'a%' This is mysql query.…
25
votes
6 answers

How to run Elasticsearch 2.1.1 as root user in Linux machine

I am trying to run Elasticsearch 2.1.1 in my Linux machine which I am the root user of it. When I tried to execute the Elasticsearch.I am getting the following error: Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as…
Mangoski
  • 2,058
  • 5
  • 25
  • 43
25
votes
3 answers

Remove or delete old data from elastic search

How to remove old data from elastic search index as the index has large amount of data being inserted every day.
sri
  • 331
  • 1
  • 4
  • 11
21
votes
4 answers

Manual install of Elasticsearch plugins

Because my Elasticsearch server is behind a proxy, I can't directly install plugins using the command under bin. So I tried uncompressing some of them in the plugins directory, with no luck. Specifically I tried this…
gotch4
  • 13,093
  • 29
  • 107
  • 170
20
votes
1 answer

How to index a pdf file in Elasticsearch 5.0.0 with ingest-attachment plugin?

I'm new to Elasticsearch and I read here https://www.elastic.co/guide/en/elasticsearch/plugins/master/mapper-attachments.html that the mapper-attachments plugin is deprecated in elasticsearch 5.0.0. I now try to index a pdf file with the new…
7twenty7
  • 558
  • 1
  • 3
  • 16
19
votes
7 answers

How to install ElasticSeach plugins using docker compose

I have a docker-compose.yml file with an elastic search image: elasticsearch: image: elasticsearch ports: - "9200:9200" container_name: custom_elasticsearch_1 If I want to install additional plugins like the HQ interface or the…
iamdeit
  • 5,485
  • 4
  • 26
  • 40
19
votes
3 answers

Remote GUI client for elastic search

I have searched enough on the web but did not find the solution. Is there a remote GUI client for Elastic Search server just like Oracle SQL Developer in order to see the schema & other details of the remote elastic db. Currently I am using the…
underdog
  • 4,447
  • 9
  • 44
  • 89
18
votes
4 answers

How to find out the index creation date in elasticsearch

How to find out the index created date in elastic search?
Johnsa Philip
  • 1,725
  • 4
  • 14
  • 12
14
votes
5 answers

Count distinct on elastic search

How to achieve count distinct function on elastic search type using sql4es driver? Select distinct inv_number , count(1) from invoices; But it returns the total count of the particular invoice number.
PravinKumar.R
  • 335
  • 1
  • 3
  • 15
12
votes
3 answers

How to use the official docker elasticsearch container?

I have the following Dockerfile: FROM docker.elastic.co/elasticsearch/elasticsearch:5.4.0 RUN elasticsearch EXPOSE 80 I think the 3rd line is never reached. When I try to access the dockercontainer from my local machine through: 172.17.0.2:9300 I…
1
2 3
64 65