Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (50)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (1)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (79)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (7)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: Kibana
[Kibana] Time range search
If I want to search information within these seven days.
1 2 |
@timestamp:["now-7d" TO "now"] |
If I want to search information between 2015-01-01 and 2015-01-31.
1 2 |
@timestamp:["2015-01-01" TO "2015-01-31"] |
If I want to search information between 2015-02-01 13:00:00 and 2015-02-01 18:00:00.
1 2 |
@timestamp:["2015-02-01T13:00:00" TO "2015-02-01T18:00:00"] |
Posted in Kibana
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
1 2 3 |
a2enmod proxy a2enmod proxy_http service apache2 restart |
add following into the /etc/apache2/sites-enabled/000-default.conf
1 2 3 4 5 6 7 8 9 10 11 |
<VirtualHost *:80> ProxyPreserveHost On ProxyVia full <proxy> Order deny,allow Allow from all </proxy> ProxyPass /kibana9200 http://localhost:9200 </VirtualHost> |
edit the kibana … Continue reading
Posted in Apache, Elasticsearch, Kibana
Leave a comment
Logstash + Redis + Nginx + Kibana + ElasticSearch
環境: Ubuntu 14.04 x64 server 安裝Java環境
1 |
sudo apt-get install openjdk-7-jdk |
下載Logstash壓縮檔
1 2 3 |
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 |
基本測試
1 2 3 |
cd /opt/logstash bin/logstash -e 'input { stdin { } } output { stdout {} } # 試著打幾個字看看 |
安裝Elasticsearch
1 2 3 |
cd /tmp wget https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.deb sudo dpkg -i elasticsearch-1.1.1.deb |
設定Elasticsearch 編輯/etc/elasticsearch/elasticsearch.yml 取消cluster.name、node.name的注解並改成自己想要的 重新啟動Elasticsearch
1 |
sudo service elastic search restart |
安裝Redis
1 |
sudo apt-get install redis-server |
設定Redis 編輯/etc/redis/redis.conf,使用
1 2 3 |
bind 0.0.0.0 取代 bind 127.0.0.1 |
重新啟動Redis
1 |
sudo service redis-server restart |
下載Kibana
1 2 3 4 |
cd /tmp wget https://download.elasticsearch.org/kibana/kibana/kibana-3.0.0.tar.gz mkdir -p /var/www/kibana tar xvfz kibana-3.0.0.tar.gz -C /var/www/kibana |
編輯Kibana設定檔 編輯/var/www/kubana/config.js,使用
1 2 3 |
elasticsearch: "http://本機IP:9200" 取代 elasticsearch: "http://"+window.location.hostname+":9200" |
設定Logstash Server設定檔 編輯/etc/logstash/server.conf
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
input { redis { host => "本機IP" type => "redis" data_type => "list" key => "logstash" } } output { stdout { } elasticsearch { cluster => "elasticsearch" } } |
測試Logstash能否以Server啟動
1 |
/opt/logstash/bin/logstash --verbose -f /etc/logstash/server.conf |
安裝Nginx
1 |
sudo apt-get install nginx |
設定Nginx 編輯/etc/nginx/sites-enabled/default,使用 … Continue reading
Posted in Elasticsearch, Kibana, Logstash, Redis
Leave a comment