Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Test files with Elasticsearch json logging #9988

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions filebeat/tests/files/logs/es_deprecation.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "deprecation", "timestamp": "2019-01-18T10:03:16,605+0100", "level": "WARN", "component": "o.e.d.l.RestPostStartTrialLicense", "cluster.name": "distribution_run", "node.name": "node-0", "cluster.uuid": "ogIOBeGXSFqLFoviipBGpw", "node.id": "McuJ9fNYQmitdoqYmTGpMQ", "message": "[POST /_xpack/license/start_trial] is deprecated! Use [POST /_license/start_trial] instead." }
63 changes: 63 additions & 0 deletions filebeat/tests/files/logs/es_docker_happy_startup.log

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions filebeat/tests/files/logs/es_docker_startup_and_deprecation.log

Large diffs are not rendered by default.

51 changes: 51 additions & 0 deletions filebeat/tests/files/logs/es_docker_startup_bootstrap_fail.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
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": "2019-01-18T07:26:56,541+0000", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "using [1] data paths, mounts [[/ (overlay)]], net usable_space [36.8gb], net total_space [58.4gb], types [overlay]" }
{"type": "server", "timestamp": "2019-01-18T07:26:56,545+0000", "level": "INFO", "component": "o.e.e.NodeEnvironment", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "heap size [989.8mb], compressed ordinary object pointers [true]" }
{"type": "server", "timestamp": "2019-01-18T07:26:56,548+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "node name [c07efdabe16c], node ID [hDr8TsXoT9GdAoGKv7fKUA]" }
{"type": "server", "timestamp": "2019-01-18T07:26:56,549+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "version[7.0.0-SNAPSHOT], pid[1], build[default/tar/8c3c766/2019-01-18T07:15:04.412250Z], OS[Linux/4.9.125-linuxkit/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.1/11.0.1+13]" }
{"type": "server", "timestamp": "2019-01-18T07:26:56,550+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "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-4449932134863071033, -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, -XX:UseAVX=2, -Dio.netty.allocator.type=unpooled, -Des.cgroups.hierarchy.override=/, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/usr/share/elasticsearch/config, -Des.distribution.flavor=default, -Des.distribution.type=tar]" }
{"type": "server", "timestamp": "2019-01-18T07:26:56,551+0000", "level": "WARN", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "version [7.0.0-SNAPSHOT] is a pre-release version of Elasticsearch and is not suitable for production" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,420+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [aggs-matrix-stats]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,420+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [analysis-common]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,420+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [ingest-common]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,421+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [ingest-geoip]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,421+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [ingest-user-agent]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,422+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [lang-expression]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,422+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [lang-mustache]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,423+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [lang-painless]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,423+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [mapper-extras]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,424+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [parent-join]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,424+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [percolator]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,425+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [rank-eval]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,425+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [reindex]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,425+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [repository-url]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,426+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [transport-netty4]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,426+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-ccr]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,426+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-core]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,427+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-deprecation]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,427+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-graph]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,428+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-ilm]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,428+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-logstash]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,429+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-ml]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,429+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-monitoring]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,430+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-rollup]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,430+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-security]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,431+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-sql]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,431+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-upgrade]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,432+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "loaded module [x-pack-watcher]" }
{"type": "server", "timestamp": "2019-01-18T07:26:58,433+0000", "level": "INFO", "component": "o.e.p.PluginsService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "no plugins loaded" }
{"type": "server", "timestamp": "2019-01-18T07:27:01,890+0000", "level": "INFO", "component": "o.e.x.s.a.s.FileRolesStore", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "parsed [0] roles from file [/usr/share/elasticsearch/config/roles.yml]" }
{"type": "server", "timestamp": "2019-01-18T07:27:02,502+0000", "level": "INFO", "component": "o.e.x.m.p.l.CppLogMessageHandler", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "[controller/90] [Main.cc@109] controller (64 bit): Version 7.0.0-SNAPSHOT (Build cac31ab73e71c1) Copyright (c) 2019 Elasticsearch BV" }
{"type": "server", "timestamp": "2019-01-18T07:27:03,066+0000", "level": "DEBUG", "component": "o.e.a.ActionModule", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "Using REST wrapper from plugin org.elasticsearch.xpack.security.Security" }
{"type": "server", "timestamp": "2019-01-18T07:27:03,403+0000", "level": "INFO", "component": "o.e.d.DiscoveryModule", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "using discovery type [zen2] and host providers [settings]" }
{"type": "server", "timestamp": "2019-01-18T07:27:04,406+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "initialized" }
{"type": "server", "timestamp": "2019-01-18T07:27:04,407+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "starting ..." }
{"type": "server", "timestamp": "2019-01-18T07:27:04,590+0000", "level": "INFO", "component": "o.e.t.TransportService", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "publish_address {172.17.0.2:9300}, bound_addresses {0.0.0.0:9300}" }
{"type": "server", "timestamp": "2019-01-18T07:27:04,604+0000", "level": "INFO", "component": "o.e.b.BootstrapChecks", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "bound or publishing to a non-loopback address, enforcing bootstrap checks" }
ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.zen.ping.unicast.hosts, discovery.zen.hosts_provider, cluster.initial_master_nodes] must be configured
{"type": "server", "timestamp": "2019-01-18T07:27:04,617+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "stopping ..." }
{"type": "server", "timestamp": "2019-01-18T07:27:04,687+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "stopped" }
{"type": "server", "timestamp": "2019-01-18T07:27:04,688+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "closing ..." }
{"type": "server", "timestamp": "2019-01-18T07:27:04,712+0000", "level": "INFO", "component": "o.e.n.Node", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "closed" }
{"type": "server", "timestamp": "2019-01-18T07:27:04,715+0000", "level": "INFO", "component": "o.e.x.m.p.NativeController", "cluster.name": "docker-cluster", "node.name": "c07efdabe16c", "message": "Native controller process has stopped - no new native processes can be started" }
Loading