The service.name
is available in 1.27.0
. No issue there, but yes the host.hostname
is missing. The service.name
was missing because I removed it from the sample doc.
You referred to hostname
agent configuration, were you referring to service_node_name
agent configuration?
Here is another sample doc for 1.27.0
. I have kept most of the fields intact.
{
"container": {
"id": "9328fd947c04ddc0e17437f42408aeaa42bcf45da557d6688c65c60c2fe4986d"
},
"parent": {
"id": "676d853ebfccf1e1"
},
"agent": {
"name": "java",
"ephemeral_id": "e4ec45b1-ed97-4b6e-bc5a-5b51ec989022",
"version": "unknown"
},
"source": {
"ip": "1.1.1.1"
},
"observer": {
"hostname": "xxx",
"id": "c4e5c03a-3714-4b33-bf8e-e7dd958d7bbe",
"ephemeral_id": "17c9f1f3-5e4b-4898-8f14-d1bc715bc0de",
"type": "apm-server",
"version": "7.15.0",
"version_major": 7
},
"trace": {
"id": "e516efe8b31e9395f839f152a56e9fe0"
},
"ecs": {
"version": "1.11.0"
},
"host": {
"os": {
"platform": "Linux"
},
"ip": "127.0.0.1",
"name": "offsite.domain.com",
"architecture": "amd64"
},
"@version": "1",
"client": {
"geo": {
...
},
"ip": "1.1.1.1"
},
"event": {
"ingested": "2021-11-25T10:59:35.860366371Z",
"outcome": "success"
},
"user_agent": {
"original": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
"os": {
"name": "Windows",
"version": "10",
"full": "Windows 10"
},
"name": "Chrome",
"device": {
"name": "Other"
},
"version": "96.0.4664.45"
},
"timestamp": {
"us": 1637837971346000
},
"process": {
"pid": 1,
"title": "/opt/java/openjdk/bin/java"
},
"processor": {
"name": "transaction",
"event": "transaction"
},
"url": {
"path": "/api/xxx",
"scheme": "https",
"port": 443,
"domain": "crm.domain.com",
"full": "https://crm.domain.com/api/xxx"
},
"@timestamp": "2021-11-25T10:59:31.346Z",
"service": {
"node": {
"name": "offsite.domain.com"
},
"environment": "production",
"framework": {
"name": "Spring Web MVC",
"version": "xxx"
},
"name": "somename",
"runtime": {
"name": "Java",
"version": "11.0.11"
},
"language": {
"name": "Java",
"version": "11.0.11"
}
},
"http": {
"request": {
"headers": {
...
},
"method": "GET",
"socket": {
"remote_address": "1.1.1.1"
}
},
"response": {
"headers": {
...
},
"status_code": 200,
"finished": true,
"headers_sent": true
},
"version": "1.0"
},
"user": {
"name": "xxx"
},
"transaction": {
"duration": {
"us": 71422
},
"result": "HTTP 2xx",
"name": "controller#getList",
"span_count": {
"dropped": 0,
"started": 1
},
"id": "3c3eaf0ea6c3cd5c",
"type": "request",
"sampled": true
}
}
1.26.0
{
"container": {
"id": "9a1f43470e789214ffae06ba0a29fe3193d6fe80f5e6079e201f8882ed3a18f2"
},
"parent": {
"id": "5a6a1b27673b681e"
},
"agent": {
"name": "java",
"ephemeral_id": "46e72620-6668-486f-af71-54c303ce3f12",
"version": "1.26.0"
},
"source": {
"ip": "1.1.1.1"
},
"observer": {
"hostname": "xxx",
"id": "c4e5c03a-3714-4b33-bf8e-e7dd958d7bbe",
"ephemeral_id": "17c9f1f3-5e4b-4898-8f14-d1bc715bc0de",
"type": "apm-server",
"version": "7.15.0",
"version_major": 7
},
"trace": {
"id": "72e2c582d5f4a7a29951d8631b618065"
},
"ecs": {
"version": "1.11.0"
},
"host": {
"hostname": "offsite.domain.com",
"os": {
"platform": "Linux"
},
"ip": "127.0.0.1",
"name": "offsite.domain.com",
"architecture": "amd64"
},
"@version": "1",
"client": {
"geo": {
...
},
"ip": "1.1.1.1"
},
"event": {
"ingested": "2021-11-24T11:04:50.303760566Z",
"outcome": "success"
},
"user_agent": {
"original": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.45 Safari/537.36",
"os": {
"name": "Windows",
"version": "10",
"full": "Windows 10"
},
"name": "Chrome",
"device": {
"name": "Other"
},
"version": "96.0.4664.45"
},
"timestamp": {
"us": 1637751879654000
},
"process": {
"pid": 1,
"title": "/opt/java/openjdk/bin/java"
},
"processor": {
"name": "transaction",
"event": "transaction"
},
"url": {
"path": "/api/xxx",
"scheme": "https",
"port": 443,
"domain": "crm.domain.com",
"full": "https://crm.domain.com/api/xxx"
},
"@timestamp": "2021-11-24T11:04:39.654Z",
"service": {
"node": {
"name": "offsite.domain.com"
},
"environment": "production",
"framework": {
"name": "Spring Web MVC",
"version": "xxx"
},
"name": "somename",
"runtime": {
"name": "Java",
"version": "11.0.11"
},
"language": {
"name": "Java",
"version": "11.0.11"
}
},
"http": {
"request": {
"headers": {
...
},
"method": "GET",
"socket": {
"encrypted": true,
"remote_address": "1.1.1.1"
}
},
"response": {
"headers": {
...
},
"status_code": 200,
"finished": true,
"headers_sent": true
},
"version": "1.0"
},
"user": {
"name": "xxx"
},
"transaction": {
"duration": {
"us": 43103
},
"result": "HTTP 2xx",
"name": "controller#getList",
"span_count": {
"dropped": 0,
"started": 11
},
"id": "d81af3d8a4aff5f5",
"type": "request",
"sampled": true
}
}