ログ集めれグラフ表示するまでのツールをいろいろ入れてますが、Fluentdは入ったので、Elasticsearch・Kibanaを入れてみますがうまくいかなかった。
- ログ収集 Fluentdインストール メモ
- Raspi 3+ Elasticsearch インストール 失敗メモ (今このページを見ています)
- fluentd使わない ESP8266からInfluxDB APIに投げる 失敗メモ
- 定期的に温湿度をFLUENTDに送信してグラフを作る 失敗メモ
Java確認
NOOBSからインストールしたRaspbianなのでJavaは入っていました。Javaは1.8以上だそうです。
$ java -version java version "1.8.0_65" Java(TM) SE Runtime Environment (build 1.8.0_65-b17) Java HotSpot(TM) Client VM (build 25.65-b01, mixed mode
Elasticsearchインストール
Elasticsearchはデータ検索・解析ツール

ElasticsearchとKibanaの開発元、Elasticへようこそ
データ検索、オブザーバビリティ、およびセキュリティソリューションを提供するElasticが、インフラストラクチャーやアプリを完全に可視化できるよう支援します。
ダウンロードページにKibanaもある。

最新版は6.5.4でした。wgetでダウンロードしてインストールしてみます。
$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-6.5.4.tar.gz $ tar zxvf elasticsearch-6.5.4.tar.gz $ cd elasticsearch-6.5.4/
起動すると以下のエラーが出る。メモリを1G使うようです。
$ ./bin/elasticsearch Java HotSpot(TM) Client VM warning: INFO: os::commit_memory(0x37800000, 1006632960, 0) failed; error='Cannot allocate memory' (errno=12) # # There is insufficient memory for the Java Runtime Environment to continue. # Native memory allocation (mmap) failed to map 1006632960 bytes for committing reserved memory. # An error report file with more information is saved as: # logs/hs_err_pid5050.log
以下のように256Mに変更してみた。
$ vim config/jvm.options #-Xms1g #-Xmx1g -Xms256M -Xmx256M
リクエストしてみると・・・
$ curl http://localhost:9200 Failed to connect to localhost port 9200: 接続を拒否されました
接続できない。調べるとIP6が邪魔しているようなのでhostsを変えてみる。
$ sudo vim /etc/hosts #::1 localhost ip6-localhost ip6-loopback #ff02::1 ip6-allnodes #ff02::2 ip6-allrouters
うまくいかない。
スポンサーリンク
だめっぽい
・・・どうにもうまくいかないのと、Kibanaが現状64Bitしか無いのでとりあえずいったん止めてやはりログのグラフ化はMuninかなぁ?


Download Kibana Free | Get Started Now
Download Kibana or the complete Elastic Stack (formerly ELK stack) for free and start visualizing, analyzing, and exploring your data with Elastic in minutes.
参考

RaspberryPiでログの見える化するよ(Elasticsearch×kibana×Fluentd) - 俺より凄いやつしかいない。
自宅簡易サーバにRaspberryPi 完成図 用意したもの 注意 Elasticsearch Javaの確認 Elasticsearchのインストール kibana fluentd fluentdのインストール fluentdの設定ファイル まとめ 参考 自宅簡易サーバにRaspberryPi RaspberryPi...
コメント