一旦你的程序docker化之后,你会遇到各种问题,比如原来采用的本地记日志的方式就不再方便了,虽然你可以挂载到宿主机,但你使用 --scale 的话,会导致
记录日志异常,所以最好的方式还是要做日志中心化,另一个问题,原来一个请求在一个进程中的痉挛失败,你可以在日志中巡查出调用堆栈,但是docker化之后,
原来一个进程的东西会拆成几个微服务,这时候最好就要有一个分布式的调用链跟踪,类似于wcf中的svctraceview工具。
gihub地址是:?从文档中大概看的出来,大体分三个部分:存储,收集器,探针,存储这里就选用推荐的
elasticsearch。收集器准备和es部署在一起,探针就有各自语言的实现了,总之这里就有三个docker container: es,kibana,skywalking, 如果不用容器编排工具
的话就比较麻烦。
? ? ? 下面是本次搭建的一个目录结构:

? ? es的配置文件,不过这里有一个坑,就是一定要将 network.publish_host: 0.0.0.0 ,否则skywalking会连不上 9300端口。
network.publish_host: ..
? ? 在up的时候,将这个es文件copy到 容器的config文件夹下。
FROM elasticsearch: .EXPOSE <span style="color: #800080;">9200 <span style="color: #800080;">9300<span style="color: #000000;">
COPY elasticsearch.yml /usr/share/elasticsearch/config/
? ?skywalking的配置文件,这里也有一个坑:连接es的地址中,配置的 clustername一定要修改成和es的clustername保持一致,否则会连不上,这里容器之间用link
进行互联,所以es的ip改成elasticsearch就可以了,其他的ip改成0.0.0.0 。?
<div class="cnblogs_code" onclick="cnblogs_code_show('3e44bfb8-180f-4f54-91c8-e1425b4d0bd2')">
<img id="code_img_closed_3e44bfb8-180f-4f54-91c8-e1425b4d0bd2" class="code_img_closed" src="https://www.52php.cn/res/2019/02-17/00/1c53668bcee393edac0d7b3b3daff1ae.gif" alt=""><img id="code_img_opened_3e44bfb8-180f-4f54-91c8-e1425b4d0bd2" class="code_img_opened" style="display: none;" onclick="cnblogs_code_hide('3e44bfb8-180f-4f54-91c8-e1425b4d0bd2',event)" src="https://www.52php.cn/res/2019/02-17/00/405b18b4b6584ae338e0f6ecaf736533.gif" alt=""><div id="cnblogs_code_open_3e44bfb8-180f-4f54-91c8-e1425b4d0bd2" class="cnblogs_code_hide">
work ); you may not use file except
distributed on an cluster:
zookeeper:
hostPort: localhost:<span style="color: #800080;">2181<span style="color: #000000;">
sessionTimeout: <span style="color: #800080;">100000<span style="color: #000000;">
naming:
jetty:
host: <span style="color: #800080;">0.0.<span style="color: #800080;">0.0<span style="color: #000000;">
port: <span style="color: #800080;">10800<span style="color: #000000;">
contextPath: /<span style="color: #000000;">
cache:
guava:
caffeine:
remote:
gRPC:
host: <span style="color: #800080;">0.0.<span style="color: #800080;">0.0<span style="color: #000000;">
port: <span style="color: #800080;">11800<span style="color: #000000;">
agent_gRPC:
gRPC:
host: <span style="color: #800080;">0.0.<span style="color: #800080;">0.0<span style="color: #000000;">
port: <span style="color: #800080;">11800<span style="color: #000000;">
Set these two setting to open ssl
#sslCertChainFile: $path
#sslPrivateKeyFile: $path
#Set your own token to active auth
#authentication: xxxxxx
agent_jetty:
jetty:
host: <span style="color: #800080;">0.0.<span style="color: #800080;">0.0<span style="color: #000000;">
port: <span style="color: #800080;">12800<span style="color: #000000;">
contextPath: /<span style="color: #000000;">
analysis_register:
<span style="color: #0000ff;">default<span style="color: #000000;">:
analysis_jvm:
<span style="color: #0000ff;">default<span style="color: #000000;">:
analysis_segment_parser:
<span style="color: #0000ff;">default<span style="color: #000000;">:
bufferFilePath: ../buffer/<span style="color: #000000;">
bufferOffsetMaxFileSize: 10M
bufferSegmentMaxFileSize: 500M
bufferFileCleanWhenRestart: <span style="color: #0000ff;">true<span style="color: #000000;">
ui:
jetty:
host: <span style="color: #800080;">0.0.<span style="color: #800080;">0.0<span style="color: #000000;">
port: <span style="color: #800080;">12800<span style="color: #000000;">
contextPath: /<span style="color: #000000;">
storage:
elasticsearch:
clusterName: elasticsearch
clusterTransportSniffer: <span style="color: #0000ff;">true<span style="color: #000000;">
clusterNodes: elasticsearch:<span style="color: #800080;">9300<span style="color: #000000;">
indexShardsNumber: <span style="color: #800080;">2<span style="color: #000000;">
indexReplicasNumber: <span style="color: #800080;">0<span style="color: #000000;">
highPerformanceMode: <span style="color: #0000ff;">true<span style="color: #000000;">
ttl: <span style="color: #800080;">7<span style="color: #000000;">
storage:
h2:
url: jdbc:h2:~/<span style="color: #000000;">memorydb
userName: sa
configuration:
<span style="color: #0000ff;">default<span style="color: #000000;">:
<span style="color: #0000ff;">namespace<span style="color: #000000;">: xxxxx
alarm threshold
applicationApdexThreshold: </span><span style="color: #800080;">2000</span><span style="color: #000000;">
serviceErrorRateThreshold: </span><span style="color: #800080;">10.00</span><span style="color: #000000;">
serviceAverageResponseTimeThreshold: </span><span style="color: #800080;">2000</span><span style="color: #000000;">
instanceErrorRateThreshold: </span><span style="color: #800080;">10.00</span><span style="color: #000000;">
instanceAverageResponseTimeThreshold: </span><span style="color: #800080;">2000</span><span style="color: #000000;">
applicationErrorRateThreshold: </span><span style="color: #800080;">10.00</span><span style="color: #000000;">
applicationAverageResponseTimeThreshold: </span><span style="color: #800080;">2000</span><span style="color: #000000;">
thermodynamic
thermodynamicResponseTimeStep: </span><span style="color: #800080;">50</span><span style="color: #000000;">
thermodynamicCountOfResponseTimeSteps: </span><span style="color: #800080;">40</span></pre>
? ? ? 接下来就是 skywalking的 下载安装,使用dockerfile流程化。
FROM centos: LABEL username=<span style="color: #800000;">"<span style="color: #800000;">hxc@qq.com<span style="color: #800000;">"<span style="color: #000000;">
WORKDIR /<span style="color: #000000;">app
RUN yum install -y wget &&<span style="color: #000000;">
yum install -y java-<span style="color: #800080;">1.8.<span style="color: #800080;">0-<span style="color: #000000;">openjdk
ADD http:<span style="color: #008000;">//<span style="color: #008000;">mirrors.hust.edu.cn/apache/incubator/skywalking/5.0.0-RC2/apache-skywalking-apm-incubating-5.0.0-RC2.tar.gz /app
<span style="color: #000000;">
RUN tar -xf apache-skywalking-apm-incubating-<span style="color: #800080;">5.0.<span style="color: #800080;">0-RC2.tar.gz &&<span style="color: #000000;">
mv apache-skywalking-apm-<span style="color: #000000;">incubating skywalking
RUN ls /<span style="color: #000000;">app
copy文件
COPY application.yml /app/skywalking/config/<span style="color: #000000;">application.yml
WORKDIR /app/skywalking/<span style="color: #000000;">bin
USER root
RUN echo <span style="color: #800000;">"<span style="color: #800000;">tail -f /dev/null<span style="color: #800000;">" >> /app/skywalking/bin/<span style="color: #000000;">startup.sh
CMD [<span style="color: #800000;">"<span style="color: #800000;">/bin/sh<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">-c<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">/app/skywalking/bin/startup.sh<span style="color: #800000;">" ]
? ? 最后就是将这三个容器进行编排,要注意的是,因为收集器会将数据放入到es中,所有一定要将es的data挂载到宿主机的大硬盘下,否则你的空间会不足的。
version: services:
elastic 镜像
elasticsearch:
build:
context: .
dockerfile: elasticsearch.dockerfile
ports:
# </span>- <span style="color: #800000;">"</span><span style="color: #800000;">9200:9200</span><span style="color: #800000;">"</span><span style="color: #000000;">
# </span>- <span style="color: #800000;">"</span><span style="color: #800000;">9300:9300</span><span style="color: #800000;">"</span><span style="color: #000000;">
volumes:
</span>- <span style="color: #800000;">"</span><span style="color: #800000;">/data/es2:/usr/share/elasticsearch/data</span><span style="color: #800000;">"</span><span style="color: #000000;">
kibana 可视化查询,暴露 <span style="color: #800080;">5601<span style="color: #000000;">
kibana:
image: kibana
links:
-<span style="color: #000000;"> elasticsearch
ports:
- <span style="color: #800080;">5601:<span style="color: #800080;">5601<span style="color: #000000;">
depends_on:
- <span style="color: #800000;">"<span style="color: #800000;">elasticsearch<span style="color: #800000;">"<span style="color: #000000;">
skywalking
skywalking:
build:
context: .
dockerfile: skywalking.dockerfile
ports:
- <span style="color: #800000;">"<span style="color: #800000;">10800:10800<span style="color: #800000;">"
- <span style="color: #800000;">"<span style="color: #800000;">11800:11800<span style="color: #800000;">"
- <span style="color: #800000;">"<span style="color: #800000;">12800:12800<span style="color: #800000;">"
- <span style="color: #800000;">"<span style="color: #800000;">8080:8080<span style="color: #800000;">"<span style="color: #000000;">
links:
-<span style="color: #000000;"> elasticsearch
depends_on:
- <span style="color: #800000;">"<span style="color: #800000;">elasticsearch<span style="color: #800000;">"
? ? ? 要部署在docker中,你还得需要安装docker-ce 和 docker-compose,大家可以参照官方安装一下。
--client----latest----engine--sudo yum install -y yum-<span style="color: #000000;">utils
device-mapper-persistent-<span style="color: #000000;">data
lvm2
sudo yum -config-<span style="color: #000000;">manager
--add-<span style="color: #000000;">repo
https:<span style="color: #008000;">//<span style="color: #008000;">download.docker.com/linux/centos/docker-ce.repo
<span style="color: #000000;">
sudo yum install docker-ce
然后启动一下docker 服务,可以看到版本是18.06.1
[root@localhost ~/bin/~]# docker -.-ce,build e68fc7a
sudo curl -L -o /usr/local/bin/docker-sudo chmod +x /usr/local/bin/docker-compose
3. ?最后在centos上执行 docker-compopse up --build 就可以了,如果不想terminal上运行,可以加 -d 使用后台执行。
<div class="cnblogs_code" onclick="cnblogs_code_show('d1ec156f-7b95-4891-808c-581a0b72f6fa')">
<img id="code_img_closed_d1ec156f-7b95-4891-808c-581a0b72f6fa" class="code_img_closed" src="https://www.52php.cn/res/2019/02-17/00/1c53668bcee393edac0d7b3b3daff1ae.gif" alt=""><img id="code_img_opened_d1ec156f-7b95-4891-808c-581a0b72f6fa" class="code_img_opened" style="display: none;" onclick="cnblogs_code_hide('d1ec156f-7b95-4891-808c-581a0b72f6fa',event)" src="https://www.52php.cn/res/2019/02-17/00/405b18b4b6584ae338e0f6ecaf736533.gif" alt=""><div id="cnblogs_code_open_d1ec156f-7b95-4891-808c-581a0b72f6fa" class="cnblogs_code_hide">
[root@localhost docker]# docker-compose up -- with the / : FROM elasticsearch:.
--->/ : EXPOSE
--->--->/ : COPY elasticsearch.yml /usr/share/elasticsearch/config/
--->--->/ : FROM centos:
--->/ : LABEL username=
--->--->/ : WORKDIR /--->--->/ : RUN yum install -y wget && yum install -y java-.---->--->/ : ADD http:
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> d5c30bcfd5ea
Step <span style="color: #800080;">6/<span style="color: #800080;">12 : RUN tar -xf apache-skywalking-apm-incubating-<span style="color: #800080;">5.0.<span style="color: #800080;">0-RC2.tar.gz && mv apache-skywalking-apm-<span style="color: #000000;">incubating skywalking
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> 1438d08d18fa
Step <span style="color: #800080;">7/<span style="color: #800080;">12 : RUN ls /<span style="color: #000000;">app
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> b594124672ea
Step <span style="color: #800080;">8/<span style="color: #800080;">12 : COPY application.yml /app/skywalking/config/<span style="color: #000000;">application.yml
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> 10eaf0805a65
Step <span style="color: #800080;">9/<span style="color: #800080;">12 : WORKDIR /app/skywalking/<span style="color: #000000;">bin
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> bc0f02291536
Step <span style="color: #800080;">10/<span style="color: #800080;">12<span style="color: #000000;"> : USER root
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> 4498afca5fe6
Step <span style="color: #800080;">11/<span style="color: #800080;">12 : RUN echo <span style="color: #800000;">"<span style="color: #800000;">tail -f /dev/null<span style="color: #800000;">" >> /app/skywalking/bin/<span style="color: #000000;">startup.sh
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> 1c4be7c6b32a
Step <span style="color: #800080;">12/<span style="color: #800080;">12 : CMD [<span style="color: #800000;">"<span style="color: #800000;">/bin/sh<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">/app/skywalking/bin/startup.sh<span style="color: #800000;">"<span style="color: #000000;"> ]
---><span style="color: #000000;"> Using cache
---><span style="color: #000000;"> ecfc97e4c97d
Successfully built ecfc97e4c97d
Successfully tagged docker_skywalking:latest
Creating docker_elasticsearch_1 ... done
Creating docker_skywalking_1 ... done
Creating docker_kibana_1 ... done
Attaching to docker_elasticsearch_1,docker_kibana_1,docker_skywalking_1
elasticsearch_1 | [<span style="color: #800080;">2018 -<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">611<span style="color: #000000;">][INFO ][o.e.n.Node ] [] initializing ...
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">729][INFO ][o.e.e.NodeEnvironment ] [FC_bOh1] <span style="color: #0000ff;">using [<span style="color: #800080;">1] data paths,mounts [[/usr/share/elasticsearch/data (/dev/sda3)]],net usable_space [5gb],net total_space [<span style="color: #800080;">22.1gb],spins?<span style="color: #000000;"> [possibly],types [xfs]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">730][INFO ][o.e.e.NodeEnvironment ] [FC_bOh1] heap size [<span style="color: #800080;">1.9gb],compressed ordinary <span style="color: #0000ff;">object pointers [<span style="color: #0000ff;">true<span style="color: #000000;">]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">731][INFO ][o.e.n.Node ] node name [FC_bOh1] derived <span style="color: #0000ff;">from node ID [FC_bOh1nS_uW6JKy_46iBg]; <span style="color: #0000ff;">set [node.name] to <span style="color: #0000ff;">override<span style="color: #000000;">
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">732][INFO ][o.e.n.Node ] version[<span style="color: #800080;">5.6.<span style="color: #800080;">4],pid[<span style="color: #800080;">1],build[8bbedf5/<span style="color: #800080;">2017-<span style="color: #800080;">10-31T18:<span style="color: #800080;">55:<span style="color: #800080;">38.105Z],OS[Linux/<span style="color: #800080;">3.10.<span style="color: #800080;">0-<span style="color: #800080;">327.el7.x86_64/amd64],JVM[Oracle Corporation/OpenJDK <span style="color: #800080;">64-Bit Server VM/<span style="color: #800080;">1.8.0_151/<span style="color: #800080;">25.151-<span style="color: #000000;">b12]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">47,<span style="color: #800080;">732][INFO ][o.e.n.Node ] JVM arguments [-Xms2g,-Xmx2g,-XX:+UseConcMarkSweepGC,-XX:CMSInitiatingOccupancyFraction=<span style="color: #800080;">75,-XX:+UseCMSInitiatingOccupancyOnly,-XX:+AlwaysPreTouch,-Xss1m,-Djava.awt.headless=<span style="color: #0000ff;">true,-Dfile.encoding=UTF-<span style="color: #800080;">8,-Djna.nosys=<span style="color: #0000ff;">true,-Djdk.io.permissionsUseCanonicalPath=<span style="color: #0000ff;">true,-Dio.netty.noUnsafe=<span style="color: #0000ff;">true,-Dio.netty.noKeySetOptimization=<span style="color: #0000ff;">true,-Dio.netty.recycler.maxCapacityPerThread=<span style="color: #800080;">0,-Dlog4j.shutdownHookEnabled=<span style="color: #0000ff;">false,-Dlog4j2.disable.jmx=<span style="color: #0000ff;">true,-Dlog4j.skipJansi=<span style="color: #0000ff;">true,-XX:+HeapDumpOnOutOfMemoryError,-Des.path.home=/usr/share/<span style="color: #000000;">elasticsearch]
skywalking_1 | SkyWalking Collector started successfully!<span style="color: #000000;">
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [aggs-matrix-<span style="color: #000000;">stats]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [ingest-<span style="color: #000000;">common]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [lang-<span style="color: #000000;">expression]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [lang-<span style="color: #000000;">groovy]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [lang-<span style="color: #000000;">mustache]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [lang-<span style="color: #000000;">painless]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">067][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [parent-<span style="color: #000000;">join]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">068<span style="color: #000000;">][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [percolator]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">068<span style="color: #000000;">][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [reindex]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">069][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [transport-<span style="color: #000000;">netty3]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">069][INFO ][o.e.p.PluginsService ] [FC_bOh1] loaded module [transport-<span style="color: #000000;">netty4]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">49,<span style="color: #800080;">069<span style="color: #000000;">][INFO ][o.e.p.PluginsService ] [FC_bOh1] no plugins loaded
skywalking_1 | SkyWalking Web Application started successfully!<span style="color: #000000;">
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">51,<span style="color: #800080;">950][INFO ][o.e.d.DiscoveryModule ] [FC_bOh1] <span style="color: #0000ff;">using<span style="color: #000000;"> discovery type [zen]
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">@timestamp<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">2018-09-17T23:51:53Z<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">tags<span style="color: #800000;">":[<span style="color: #800000;">"<span style="color: #800000;">status<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">plugin:kibana@5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">info<span style="color: #800000;">"],<span style="color: #800000;">"<span style="color: #800000;">pid<span style="color: #800000;">":<span style="color: #800080;">12,<span style="color: #800000;">"<span style="color: #800000;">state<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">green<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from uninitialized to green - Ready<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevState<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">uninitialized<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">uninitialized<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">53,<span style="color: #800080;">456<span style="color: #000000;">][INFO ][o.e.n.Node ] initialized
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">53,<span style="color: #800080;">457<span style="color: #000000;">][INFO ][o.e.n.Node ] [FC_bOh1] starting ...
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">plugin:elasticsearch@5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">state<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">yellow<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from uninitialized to yellow - Waiting for Elasticsearch<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">uninitialized<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">plugin:console@5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">tags<span style="color: #800000;">":[<span style="color: #800000;">"<span style="color: #800000;">error<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">elasticsearch<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">admin<span style="color: #800000;">"],<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Request error,retryingnHEAD http://elasticsearch:9200/ => connect ECONNREFUSED 172.21.0.2:9200<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">tags<span style="color: #800000;">":[<span style="color: #800000;">"<span style="color: #800000;">warning<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Unable to revive connection: http://elasticsearch:9200/<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">No living connections<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">plugin:metrics@5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">error<span style="color: #800000;">"],<span style="color: #800000;">"<span style="color: #800000;">state<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">red<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from yellow to red - Unable to connect to Elasticsearch at http://elasticsearch:9200.<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevState<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">yellow<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Waiting for Elasticsearch<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">53,<span style="color: #800080;">829][INFO ][o.e.t.TransportService ] [FC_bOh1] publish_address {<span style="color: #800080;">172.21.<span style="color: #800080;">0.2:<span style="color: #800080;">9300},bound_addresses {<span style="color: #800080;">0.0.<span style="color: #800080;">0.0:<span style="color: #800080;">9300<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">53,<span style="color: #800080;">870][INFO ][o.e.b.BootstrapChecks ] [FC_bOh1] bound or publishing to a non-loopback or non-link-<span style="color: #000000;">local address,enforcing bootstrap checks
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">plugin:timelion@5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">tags<span style="color: #800000;">":[<span style="color: #800000;">"<span style="color: #800000;">listening<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Server running at http://0.0.0.0:5601<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">ui settings<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from uninitialized to red - Elasticsearch plugin is red<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">@timestamp<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">2018-09-17T23:51:56Z<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">No living connections<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">094][INFO ][o.e.c.s.ClusterService ] [FC_bOh1] new_master {FC_bOh1}{FC_bOh1nS_uW6JKy_46iBg}{tNMEW5HYQm6O4aiqpU0uWA}{<span style="color: #800080;">172.21.<span style="color: #800080;">0.2}{<span style="color: #800080;">172.21.<span style="color: #800080;">0.2:<span style="color: #800080;">9300},reason: zen-disco-elected-<span style="color: #0000ff;">as-master ([<span style="color: #800080;">0<span style="color: #000000;">] nodes joined)
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">129][INFO ][o.e.h.n.Netty4HttpServerTransport] [FC_bOh1] publish_address {<span style="color: #800080;">172.21.<span style="color: #800080;">0.2:<span style="color: #800080;">9200},bound_addresses {<span style="color: #800080;">0.0.<span style="color: #800080;">0.0:<span style="color: #800080;">9200<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">129<span style="color: #000000;">][INFO ][o.e.n.Node ] [FC_bOh1] started
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">157][INFO ][o.e.g.GatewayService ] [FC_bOh1] recovered [<span style="color: #800080;">0<span style="color: #000000;">] indices into cluster_state
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">368][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_alarm_list_month] creating index,cause [api],templates [],shards [<span style="color: #800080;">2]/[<span style="color: #800080;">0<span style="color: #000000;">],mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">557][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_alarm_list_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">685][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_pool_metric_month] creating index,<span style="color: #800080;">742][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[memory_pool_metric_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">57,<span style="color: #800080;">886][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_metric_day] creating index,<span style="color: #800080;">962][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">115][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_metric_hour] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">176][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_metric_hour][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">356][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_metric_month] creating index,<span style="color: #800080;">437][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_metric_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">550][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_mapping_month] creating index,<span style="color: #800080;">601][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_mapping_month][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">725][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_metric_day] creating index,mappings [type]
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">@timestamp<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">2018-09-17T23:51:58Z<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">tags<span style="color: #800000;">":[<span style="color: #800000;">"<span style="color: #800000;">warning<span style="color: #800000;">"],<span style="color: #800000;">"<span style="color: #800000;">kibanaVersion<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">5.6.11<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">nodes<span style="color: #800000;">":[{<span style="color: #800000;">"<span style="color: #800000;">version<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">5.6.4<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">http<span style="color: #800000;">":{<span style="color: #800000;">"<span style="color: #800000;">publish_address<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">172.21.0.2:9200<span style="color: #800000;">"},<span style="color: #800000;">"<span style="color: #800000;">ip<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">172.21.0.2<span style="color: #800000;">"}],<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">You're running Kibana 5.6.11 with some different versions of Elasticsearch. Update Kibana or Elasticsearch to the same version to prevent compatibility issues: v5.6.4 @ 172.21.0.2:9200 (172.21.0.2)<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">58,<span style="color: #800080;">886][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_reference_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">023][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_alarm] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">090][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_reference_alarm][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">137][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_alarm_list] creating index,<span style="color: #800080;">258][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_alarm_list][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">355][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_mapping_minute] creating index,<span style="color: #800080;">410][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_mapping_minute][<span style="color: #800080;">1],[application_mapping_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">484][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [response_time_distribution_minute] creating index,<span style="color: #800080;">562][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[response_time_distribution_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">633][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application] creating index,<span style="color: #800080;">709][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">761][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_metric_hour] creating index,<span style="color: #800080;">839][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_reference_metric_hour][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">51:<span style="color: #800080;">59,<span style="color: #800080;">980][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_metric_minute] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">073][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[memory_metric_minute][<span style="color: #800080;">1],[memory_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">159][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_alarm_list_day] creating index,<span style="color: #800080;">258][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_alarm_list_day][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">350][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_alarm] creating index,<span style="color: #800080;">463][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_reference_alarm][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">535][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_metric_day] creating index,<span style="color: #800080;">599][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">714][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [segment] creating index,<span style="color: #800080;">766][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[segment][<span style="color: #800080;">1],[segment][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">801][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [global_trace] creating index,<span style="color: #800080;">865][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[global_trace][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">00,<span style="color: #800080;">917][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_alarm_list] creating index,<span style="color: #800080;">985][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_alarm_list][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">034][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_metric_month] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">116][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_metric_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">207][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_metric_day] creating index,<span style="color: #800080;">289][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_reference_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">388][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_component_month] creating index,<span style="color: #800080;">491][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_component_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">527][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_metric_minute] creating index,<span style="color: #800080;">613][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">723][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_metric_day] creating index,<span style="color: #800080;">761][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_reference_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">844][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_metric_month] creating index,<span style="color: #800080;">914][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_reference_metric_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">01,<span style="color: #800080;">986][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [cpu_metric_minute] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">067][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[cpu_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">096][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [gc_metric_hour] creating index,<span style="color: #800080;">174][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[gc_metric_hour][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">221][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [response_time_distribution_month] creating index,<span style="color: #800080;">281][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[response_time_distribution_month][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">337][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_metric_minute] creating index,<span style="color: #800080;">421][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_reference_metric_minute][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">558][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_mapping_minute] creating index,<span style="color: #800080;">590][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_mapping_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">637][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [cpu_metric_month] creating index,<span style="color: #800080;">694][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[cpu_metric_month][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">732][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_metric_month] creating index,<span style="color: #800080;">787][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_metric_month][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">02,<span style="color: #800080;">849][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_mapping_hour] creating index,<span style="color: #800080;">916][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_mapping_hour][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">030][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_alarm] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">062][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_alarm][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">096][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_pool_metric_minute] creating index,<span style="color: #800080;">123][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[memory_pool_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">154][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_component_day] creating index,<span style="color: #800080;">180][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_component_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">199][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_name] creating index,<span style="color: #800080;">221][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[service_name][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">240][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [cpu_metric_day] creating index,<span style="color: #800080;">268][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[cpu_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">286][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_metric_hour] creating index,<span style="color: #800080;">333][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_reference_metric_hour][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">376][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [network_address] creating index,<span style="color: #800080;">422][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[network_address][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">440][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [cpu_metric_hour] creating index,<span style="color: #800080;">466][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[cpu_metric_hour][<span style="color: #800080;">1<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">487][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_mapping_day] creating index,<span style="color: #800080;">510][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_mapping_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">527][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [gc_metric_day] creating index,<span style="color: #800080;">553][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[gc_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">572][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_metric_day] creating index,<span style="color: #800080;">590][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[memory_metric_day][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">613][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_metric_minute] creating index,<span style="color: #800080;">633][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_reference_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">683][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_metric_minute] creating index,<span style="color: #800080;">731][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_reference_metric_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">767][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_component_minute] creating index,<span style="color: #800080;">796][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[application_component_minute][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">809][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_alarm] creating index,<span style="color: #800080;">829][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_alarm][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">847][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_metric_hour] creating index,<span style="color: #800080;">867][INFO ][o.e.c.r.a.AllocationService] [FC_bOh1] Cluster health status changed <span style="color: #0000ff;">from [YELLOW] to [GREEN] (reason: [shards started [[instance_metric_hour][<span style="color: #800080;">0<span style="color: #000000;">]] ...]).
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">908][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_alarm] creating index,<span style="color: #800000;">"<span style="color: #800000;">@timestamp<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">2018-09-17T23:52:03Z<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from red to yellow - No existing Kibana index found<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevState<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">red<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Unable to connect to Elasticsearch at http://elasticsearch:9200.<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from red to yellow - Elasticsearch plugin is yellow<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Elasticsearch plugin is red<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">03,<span style="color: #800080;">953][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [.kibana] creating index,shards [<span style="color: #800080;">1]/[<span style="color: #800080;">1],mappings [default,index-pattern,server,visualization,search,timelion-<span style="color: #000000;">sheet,config,dashboard,url]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">04,<span style="color: #800080;">003][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_alarm_list] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">04,<span style="color: #800080;">111][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_metric_month] creating index,<span style="color: #800080;">228][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_pool_metric_day] creating index,<span style="color: #800080;">285][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [segment_duration] creating index,<span style="color: #800080;">342][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_metric_minute] creating index,<span style="color: #800080;">395][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [response_time_distribution_hour] creating index,<span style="color: #800080;">433][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_component_hour] creating index,<span style="color: #800080;">475][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_metric_month] creating index,<span style="color: #800080;">512][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_alarm_list_hour] creating index,<span style="color: #800080;">575][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_alarm] creating index,<span style="color: #800080;">617][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance] creating index,<span style="color: #800080;">675][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_metric_hour] creating index,<span style="color: #800080;">742][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_metric_minute] creating index,<span style="color: #800080;">841][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_metric_hour] creating index,<span style="color: #800080;">920][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_reference_metric_month] creating index,<span style="color: #800080;">987][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_reference_alarm_list] creating index,mappings [type]
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">05,<span style="color: #800080;">045][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [gc_metric_month] creating index,<span style="color: #800000;">"<span style="color: #800000;">@timestamp<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">2018-09-17T23:52:05Z<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from yellow to green - Kibana index ready<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">No existing Kibana index found<span style="color: #800000;">"<span style="color: #000000;">}
kibana_1 | {<span style="color: #800000;">"<span style="color: #800000;">type<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">log<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">message<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Status changed from yellow to green - Ready<span style="color: #800000;">",<span style="color: #800000;">"<span style="color: #800000;">prevMsg<span style="color: #800000;">":<span style="color: #800000;">"<span style="color: #800000;">Elasticsearch plugin is yellow<span style="color: #800000;">"<span style="color: #000000;">}
elasticsearch_1 | [<span style="color: #800080;">2018-<span style="color: #800080;">09-17T23:<span style="color: #800080;">52:<span style="color: #800080;">05,<span style="color: #800080;">106][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_reference_alarm_list] creating index,<span style="color: #800080;">143][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [memory_pool_metric_hour] creating index,<span style="color: #800080;">180][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_alarm_list_minute] creating index,<span style="color: #800080;">225][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_mapping_day] creating index,<span style="color: #800080;">268][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [instance_metric_day] creating index,<span style="color: #800080;">350][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_mapping_month] creating index,<span style="color: #800080;">392][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [application_mapping_hour] creating index,<span style="color: #800080;">434][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [response_time_distribution_day] creating index,<span style="color: #800080;">470][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [service_metric_hour] creating index,<span style="color: #800080;">544][INFO ][o.e.c.m.MetaDataCreateIndexService] [FC_bOh1] [gc_metric_minute] creating index,shards [<span style="color: #800080;">2]/[<span style="color: #800080;">0],mappings [type]
从上图中可以看到 es,kibana,skywalking都启动成功了,你也可以通过docker-compose ps 看一下是否都起来了,netstat 看一下宿主机开放了哪些端口。
minutes ago Up minutes .:->/ minutes ago Up minutes .:->/tcp,.:->/tcp,.:->/tcp,.:->/ minutes ago Up minutes /tcp,/--Q Send-Q Local Address Foreign Address State PID/ .: .:* LISTEN / .: .:* LISTEN / .: .:* LISTEN / .: .:* LISTEN / ::: :::* LISTEN /docker- ::: :::* LISTEN /docker- ::: :::* LISTEN / ::: :::* LISTEN / ::: :::* LISTEN /docker- ::: :::* LISTEN / ::: :::* LISTEN /docker- ::: :::* LISTEN /docker-
?然后就可以看一些8080端口的可视化UI,默认用户名密码admin,admin,一个比较耐看的UI就出来了。

三: net下的探针
从nuget上拉取一个SkyWalking.AspNetCore探针进行代码埋点,github地址:

? ?在startup类中进行注入,在页面请求中进行一次cnblogs.com的请求操作,然后仔细观察一下调用链跟踪是一个什么样子?
<span style="color: #0000ff;">namespace<span style="color: #000000;"> WebApplication1
{
<span style="color: #0000ff;">public <span style="color: #0000ff;">class<span style="color: #000000;"> Startup
{
<span style="color: #008000;">//<span style="color: #008000;"> This method gets called by the runtime. Use this method to add services to the container.
<span style="color: #008000;">//<span style="color: #008000;"> For more information on how to configure your application,visit <span style="color: #008000; text-decoration: underline;">https://go.microsoft.com/fwlink/?LinkID=398940
<span style="color: #0000ff;">public <span style="color: #0000ff;">void<span style="color: #000000;"> ConfigureServices(IServiceCollection services)
{
services.AddSkyWalking(option =><span style="color: #000000;">
{
<span style="color: #008000;">//<span style="color: #008000;"> Application code is showed in sky-walking-ui
option.ApplicationCode = <span style="color: #800000;">"<span style="color: #800000;">10001 测试站点<span style="color: #800000;">"<span style="color: #000000;">;
</span><span style="color: #008000;">//</span><span style="color: #008000;">Collector agent_gRPC/grpc service addresses.</span>
option.DirectServers = <span style="color: #800000;">"</span><span style="color: #800000;">192.168.23.183:11800</span><span style="color: #800000;">"</span><span style="color: #000000;">;
});
}
</span><span style="color: #008000;">//</span><span style="color: #008000;"> This method gets called by the runtime. Use this method to configure the HTTP request pipeline.</span>
<span style="color: #0000ff;">public</span> <span style="color: #0000ff;">void</span><span style="color: #000000;"> Configure(IApplicationBuilder app,IHostingEnvironment env)
{
</span><span style="color: #0000ff;">if</span><span style="color: #000000;"> (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.Run(</span><span style="color: #0000ff;">async</span> (context) =><span style="color: #000000;">
{
WebClient client </span>= <span style="color: #0000ff;">new</span><span style="color: #000000;"> WebClient();
</span><span style="color: #0000ff;">var</span> str = client.DownloadString(<span style="color: #800000;">"</span><span style="color: #800000;">http://cnblogs.com</span><span style="color: #800000;">"</span><span style="color: #000000;">);
</span><span style="color: #0000ff;">await</span><span style="color: #000000;"> context.Response.WriteAsync(str);
});
}
}
}

? ? ? ? ?可以看到这张图还是蛮漂亮的哈,也方便我们快速的跟踪代码,发现问题,找出问题, 还有更多的功能期待你的挖掘啦。?好了,本篇就说到这里,希望对你有帮助。
(编辑:李大同)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|