Kibana version: 7.12.1
Elasticsearch version: 7.12.1
APM Server version: 7.12.1
APM Agent language and version: JAVA elastic-apm-agent-1.23.0.jar
Browser version:
Original install method (e.g. download page, yum, deb, from source, etc.) and version: source
Fresh install or upgraded from other version?: upgraded from 7.7.1
Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.: Tried both Elastic and Logstash as outputs. Index pattern is apm-all-*
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
Steps to reproduce:
- Download Elastic 7.12.1 from source.
- Unzip and configure
- Run Elastic and Kibana
- Restore all snapshot from 7.7.1
- Run Logstash and APM Server
- Run Tomcat 8 pointing to APM Server
Elastic APM Server error logs
{"log.level":"info","@timestamp":"2021-05-09T22:40:59.140-0400","log.logger":"monitoring","log.origin":{"file.name":"elasticsearch/elasticsearch.go","file.line":272},"message":"Start monitoring stats metrics snapshot loop with period 10s.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:40:59.140-0400","log.logger":"monitoring","log.origin":{"file.name":"elasticsearch/elasticsearch.go","file.line":272},"message":"Start monitoring state metrics snapshot loop with period 1m0s.","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.031-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":143},"message":"Connecting to backoff(async(tcp://logstash-apm-1-p2:5044))","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.031-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":219},"message":"retryer: send unwait signal to consumer","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.031-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":223},"message":" done","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":143},"message":"Connecting to backoff(async(tcp://logstash-apm-2-p2:5044))","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":219},"message":"retryer: send unwait signal to consumer","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":223},"message":" done","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":143},"message":"Connecting to backoff(async(tcp://logstash-apm-dc2:5044))","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":219},"message":"retryer: send unwait signal to consumer","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher","log.origin":{"file.name":"pipeline/retry.go","file.line":223},"message":" done","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.032-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":151},"message":"Connection to backoff(async(tcp://logstash-apm-1-p2:5044)) established","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.035-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":151},"message":"Connection to backoff(async(tcp://logstash-apm-2-p2:5044)) established","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:00.035-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":151},"message":"Connection to backoff(async(tcp://logstash-apm-dc2:5044)) established","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:09.146-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":143},"message":"Connecting to backoff(monitoring(https://elasticsearch-master-1-p2:9200))","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:09.146-0400","log.logger":"monitoring","log.origin":{"file.name":"pipeline/retry.go","file.line":219},"message":"retryer: send unwait signal to consumer","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:09.146-0400","log.logger":"monitoring","log.origin":{"file.name":"pipeline/retry.go","file.line":223},"message":" done","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:09.147-0400","log.logger":"esclientleg","log.origin":{"file.name":"eslegclient/connection.go","file.line":314},"message":"Attempting to connect to Elasticsearch version 7.12.1","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-05-09T22:41:09.173-0400","log.logger":"publisher_pipeline_output","log.origin":{"file.name":"pipeline/output.go","file.line":151},"message":"Connection to backoff(monitoring(https://elasticsearch-master-1-p2:9200)) established","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2021-05-09T22:41:51.454-0400","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":60},"message":"data validation error","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"elasticapm-java/1.23.0","source.address":"138.12.80.27","http.request.id":"e2b91678-2f1e-4b01-8ec3-a6974dd13dc2","event.duration":10001633770,"http.response.status_code":400,"error.message":"decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614473187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614473187000,\"samples\":{\"system.process.cpu.total.norm|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614473187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614473187000,\"tags\":{\"name\":\"Par Survivor Space\"},\"sam|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614473187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614473187000,\"tags\":{\"name\":\"ParNew\"},\"samples\":{\"jvm.|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614473187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614473187000,\"tags\":{\"name\":\"CMS Old Gen\"},\"samples\":{|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614473187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614473187000,\"tags\":{\"name\":\"ConcurrentMarkSweep\"},\"sa|...","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2021-05-09T22:42:38.490-0400","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":60},"message":"data validation error","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"elasticapm-java/1.23.0","source.address":"138.12.80.27","http.request.id":"eb431d7c-a1e4-4d13-942e-f99b7c8673cd","event.duration":10008827523,"http.response.status_code":400,"error.message":"decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614518187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614518187000,\"samples\":{\"system.process.cpu.total.norm|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614518187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614518187000,\"tags\":{\"name\":\"Par Survivor Space\"},\"sam|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614518187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614518187000,\"tags\":{\"name\":\"ParNew\"},\"samples\":{\"jvm.|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614518187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614518187000,\"tags\":{\"name\":\"CMS Old Gen\"},\"samples\":{|..., decode error: data read error: v2.metricsetRoot.Metricset: v2.metricset.Timestamp: readUint32: overflow, error found in #10 byte of ...|\":1620614518187000,\"|..., bigger context ...|{\"metricset\":{\"timestamp\":1620614518187000,\"tags\":{\"name\":\"ConcurrentMarkSweep\"},\"sa|...","ecs.version":"1.6.0"}
Java Agent Screenshot
Elastic APM Server Screenshot
EDITED: Add more infor
Tomcat 8 Java Parameters
-javaagent:/nfs/tomcat/elasticsearch/elastic-apm-agent-1.23.0.jar \
-Delastic.apm.service_name=search_app \
-Delastic.apm.environment=dev \
-Delastic.apm.application_packages=* \
-Delastic.apm.active=true \
-Delastic.apm.central_config=false \
-Delastic.apm.instrument=true \
-Delastic.apm.metrics_interval=15s \
-Delastic.apm.server_urls=http://elastic-apm-dc2:80
apm-server.yml
apm-server:
host: "${HOSTNAME}:8200"
idle_timeout: 45s
read_timeout: 60s
write_timeout: 30s
shutdown_timeout: 5s
max_event_size: 307200
max_connections: 0
rum:
enabled: true
event_rate:
limit: 1000
lru_size: 5000
allow_origins : ['*']
source_mapping.enabled: true
source_mapping.cache.expiration: 5m
source_mapping.index_pattern: "apm-all-*"
ilm.enabled: "true"
kibana:
enabled: true
host: "kibana-dc2:80"
protocol: "http"
username: "${KB_USR}"
password: "${KB_PWD}"
queue:
mem:
events: 32000
flush.min_events: 1000
flush.timeout: 1s
setup.template.enabled: true
setup.template.name: "apm-all"
setup.template.pattern: "apm-all-*"
setup.template.fields: "${path.config}/fields.yml"
setup.template.settings:
index:
number_of_shards: 2
codec: best_compression
number_of_routing_shards: 30
mapping.total_fields.limit: 2000
output.logstash:
enabled: true
hosts: ["logstash-apm-dc2:5044"]
#worker: 10
loadbalance: true
pipelining: 2
slow_start: false
backoff.init: 1s
backoff.max: 60s
index: "apm-all"
logging.level: debug
logging.to_files: true
logging.files:
name: apm-server.log
rotateeverybytes: 10485760 # = 10MB
keepfiles: 7
permissions: 0600
interval: 24h
http.enabled: true
http.port: 5066
monitoring.enabled: false
monitoring.cluster_uuid: "AN5TQRSZBPWaVYTBrKfy-A"