install ELK on docker

install ELK on docker

#install docker
[root@minimacent ~]# yum install -y yum-utils device-mapper-persistent-data lvm2

#install docker
[root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror, langpacks
adding repo from: https://download.docker.com/linux/centos/docker-ce.repo
grabbing file https://download.docker.com/linux/centos/docker-ce.repo to /etc/yum.repos.d/docker-ce.repo
repo saved to /etc/yum.repos.d/docker-ce.repo

#install docker
[root@localhost ~]# yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
Loaded plugins: fastestmirror, langpacks

#install docker
[root@minimacent ~]# yum install docker-ce docker-ce-cli containerd.io
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirror.kakao.com
 * extras: mirror.kakao.com
 * updates: mirror.kakao.com


#install docker
[root@minimacent ~]# yum install docker-ce docker-ce-cli containerd.io

#pulling elasticsearch
[root@localhost ~]# docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.1
Trying to pull repository docker.elastic.co/elasticsearch/elasticsearch ...
7.6.1: Pulling from docker.elastic.co/elasticsearch/elasticsearch
c808caf183b6: Pull complete
ab639412b262: Download complete
8b89a61469c0: Download complete
641adcee3431: Download complete


#execute elasticsearch
[root@localhost ~]# docker run -p 9200:9200 -p 9300:9300 -e "discovery.type=single-node" docker.elastic.co/elasticsearch/elasticsearch:7.6.1
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
{"type": "server", "timestamp": "2020-03-26T15:02:12,222Z", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "c18258df4e09", "message": "using [1] data paths, mounts [[/ (rootfs)]], net usable_space [9.8gb], net total_space [16.9gb], types [rootfs]" }

#pulling kibana
[root@localhost ~]# docker pull docker.elastic.co/kibana/kibana:7.6.1
Trying to pull repository docker.elastic.co/kibana/kibana ...
7.6.1: Pulling from docker.elastic.co/kibana/kibana
c808caf183b6: Already exists
130450edbebb: Pull complete
b9257098c1b8: Pull complete
9e9c065b7541: Pull complete
7f503a6f5f82: Extracting [===========>                                       ] 66.85 MB/286.4 MB
cfc6ffea6a82: Download complete


#execute kibana
[root@localhost ~]# docker pull docker.elastic.co/elasticsearch/elasticsearch:7.6.1
Trying to pull repository docker.elastic.co/elasticsearch/elasticsearch ...
7.6.1
[root@localhost ~]# docker ps
CONTAINER ID        IMAGE                                                 COMMAND                  CREATED             STATUS              PORTS                                            NAMES
c18258df4e09        docker.elastic.co/elasticsearch/elasticsearch:7.6.1   "/usr/local/bin/do..."   7 minutes ago       Up 7 minutes        0.0.0.0:9200->9200/tcp, 0.0.0.0:9300->9300/tcp   zealous_shaw
[root@localhost ~]# docker run --link c18258df4e09 -p 5601:5601 docker.elastic.co/kibana/kibana:7.6.1                                                 {"type":"log","@timestamp":"2020-03-26T15:12:33Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"case\" is disabled."}
{"type":"log","@timestamp":"2020-03-26T15:12:33Z","tags":["info","plugins-service"],"pid":6,"message":"Plugin \"case\" is disabled."}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins-system"],"pid":6,"message":"Setting up [37] plugins: [taskManager,siem,licensing,infra,encryptedSavedObjects,code,usageCollection,metrics,canvas,timelion,features,security,apm_oss,translations,reporting,uiActions,data,navigation,status_page,share,newsfeed,kibana_legacy,management,dev_tools,inspector,expressions,visualizations,embeddable,advancedUiActions,dashboard_embeddable_container,home,spaces,cloud,apm,graph,eui_utils,bfetch]"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","taskManager"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","siem"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","licensing"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","infra"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","encryptedSavedObjects"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["warning","plugins","encryptedSavedObjects","config"],"pid":6,"message":"Generating a random key for xpack.encryptedSavedObjects.encryptionKey. To be able to decrypt encrypted saved objects attributes after restart, please set xpack.encryptedSavedObjects.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","code"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","usageCollection"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","metrics"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","canvas"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","timelion"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","features"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","security"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["warning","plugins","security","config"],"pid":6,"message":"Generating a random key for xpack.security.encryptionKey. To prevent sessions from being invalidated on restart, please set xpack.security.encryptionKey in kibana.yml"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["warning","plugins","security","config"],"pid":6,"message":"Session cookies will be transmitted over insecure connections. This is not recommended."}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","apm_oss"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","translations"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","data"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","share"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","home"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","spaces"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","cloud"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","apm"],"pid":6,"message":"Setting up plugin"}
{"type":"log","@timestamp":"2020-03-26T15:13:42Z","tags":["info","plugins","graph"],"pid":6,"message":"Setting up plugin"}




댓글

이 블로그의 인기 게시물

[!] CDN: trunk URL couldn't be downloaded: https://cdn.cocoapods.org/CocoaPods-version.yml Response: URL using bad/illegal format or missing URL

starcraft map

Data Analysis with Superset - boardless chart