Kubernetes基于EFK进行统一的日志管理

2023年 7月 9日 39.0k 0

[root@k8s-master ~]# kubectl logs elasticsearch-logging-1 -n kube-system
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-08-27T10:38:56,677+0000”, “level”: “INFO”, “component”: “o.e.e.NodeEnvironment”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “using [1] data paths, mounts [[/ (overlay)]], net usable_space [853.4gb], net total_space [872gb], types [overlay]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:38:56,678+0000”, “level”: “INFO”, “component”: “o.e.e.NodeEnvironment”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “heap size [1015.6mb], compressed ordinary object pointers [true]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:38:56,680+0000”, “level”: “INFO”, “component”: “o.e.n.Node”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “node name [elasticsearch-logging-1], node ID [OrCnz-_GRJuqgz91tw8QjQ], cluster name [docker-cluster]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:38:56,680+0000”, “level”: “INFO”, “component”: “o.e.n.Node”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “version[7.2.0], pid[1], build[default/docker/508c38a/2019-06-20T15:54:18.811730Z], OS[Linux/4.4.233-1.el7.elrepo.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/12.0.1/12.0.1+12]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:38:56,680+0000”, “level”: “INFO”, “component”: “o.e.n.Node”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “JVM home [/usr/share/elasticsearch/jdk]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:38:56,681+0000”, “level”: “INFO”, “component”: “o.e.n.Node”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “JVM arguments [-Xms1g, -Xmx1g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch-10012769287542693496, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=logs/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=logs/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -Djava.locale.providers=COMPAT, -Des.cgroups.hierarchy.override=/, -Dio.netty.allocator.type=unpooled, -XX:MaxDirectMemorySize=536870912, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=docker, -Des.bundled_jdk=true]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,652+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [aggs-matrix-stats]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,652+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [analysis-common]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,652+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [data-frame]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,652+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [ingest-common]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,652+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [ingest-geoip]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [ingest-user-agent]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [lang-expression]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [lang-mustache]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [lang-painless]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [mapper-extras]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [parent-join]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [percolator]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [rank-eval]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,653+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [reindex]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [repository-url]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [transport-netty4]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-ccr]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-core]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-deprecation]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-graph]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-ilm]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-logstash]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,654+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-ml]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-monitoring]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-rollup]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-security]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-sql]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “loaded module [x-pack-watcher]” }
{“type”: “server”, “timestamp”: “2020-08-27T10:39:01,655+0000”, “level”: “INFO”, “component”: “o.e.p.PluginsService”, “cluster.name”: “docker-cluster”, “node.name”: “elasticsearch-logging-1”, “message”: “no plugins loaded” }

afdsf3年前 (2020-08-27)登录以回复

相关文章

KubeSphere 部署向量数据库 Milvus 实战指南
探索 Kubernetes 持久化存储之 Longhorn 初窥门径
征服 Docker 镜像访问限制!KubeSphere v3.4.1 成功部署全攻略
那些年在 Terraform 上吃到的糖和踩过的坑
无需 Kubernetes 测试 Kubernetes 网络实现
Kubernetes v1.31 中的移除和主要变更

发布评论