Category Archives: Elasticsearch

[Elasticsearch] The health status means…

When we list the indexes, we will get the status information. It shows the health of index in the elasticsearch cluster. green All shards are allocated. yellow The primary shard is allocated but replicas are not. red The specific shard … Continue reading

Posted in Elasticsearch | Leave a comment

[Elasticsearch] List all indexes and optimize it.

When we deleted the indexes, the data were just marked by deleted. We can list all indexes to show status. sudo curl ‘localhost:9200/_cat/indices?v’ It will show the health, index name, pri, rep, docs.count, docs.deleted, store.size, pri.store.size. health index pri rep … Continue reading

Posted in Elasticsearch | Leave a comment

[Elasticsearch] Delete index by search syntax

check the search syntax curl -XGET ‘http://{ElasticSearch_Server_IP}:{ElasticSearch_Server_Port}/{Index}/{Type}/_search?q={Search Syntax} ex: curl -XGET ‘http://localhost:9200/logstash-2015.01.26/syslog/_search?q=”Rhttpproxy”‘ Delete index by search syntax curl -XDELETE ‘http://{ElasticSearch_Server_IP}:{ElasticSearch_Server_Port}/{Index}/{Type}/_query?q={Search Syntax} ex: curl -XDELETE ‘http://localhost:9200/logstash-2015.01.26/syslog/_query?q=”Rhttpproxy”‘

Posted in Elasticsearch | Leave a comment

[Apache] Proxypass

Because the default web port of Elasticsearch is 9200. And I want to change it with 80. Maybe I could use the proxypass function. enable the proxy, and restart apache a2enmod proxy a2enmod proxy_http service apache2 restart add following into … Continue reading

Posted in Apache, Elasticsearch, Kibana | Leave a comment

淺談 Elasticsearch 的定義

[摘錄自Elasticsearch Server, 2nd Edition第12頁] The basics of Elasticsearch Elasticsearch is an open source search server project started by Shay Banon and published in February 2010. During this time, the project has grown into a major player in the field of … Continue reading

Posted in Elasticsearch | Leave a comment

elasticsearch.yml 檔案說明

##################### Elasticsearch Configuration Example ##################### # This file contains an overview of various configuration settings, # targeted at operations staff. Application developers should # consult the guide at . 說明此檔案包含多個設定的部份,可以至 Elasticsearch Guide 觀看說明 # # The installation procedure is covered … Continue reading

Posted in Elasticsearch | Leave a comment

Logstash + Redis + Nginx + Kibana + ElasticSearch

環境: Ubuntu 14.04 x64 server 安裝Java環境 sudo apt-get install openjdk-7-jdk 下載Logstash壓縮檔 cd /tmp curl -O https://download.elasticsearch.org/logstash/logstash/logstash-1.4.0.tar.gz tar zxvf logstash-1.4.0.tar.gz -C /opt/logstash 基本測試 cd /opt/logstash bin/logstash -e ‘input { stdin { } } output { stdout {} } # 試著打幾個字看看 安裝Elasticsearch … Continue reading

Posted in Elasticsearch, Kibana, Logstash, Redis | Leave a comment