Hello
I'm trying to build Observability
ES / Ki ver : 8.12.2 (Basic)
Using the below.
- Fleet (Fleet-Server)
- Elastic APM (not "APM", "Elastic APM")
- Installation is only through the Kibana UI ( except for the Elastic-Agent )
My ultimate goal is to record Elasticsearch Query body.
I found this method after looking for various ways.
Capture body
option in "Observability > APM > Settings > Agent Configuration > Configurations > (Service name) elasticsearch"
Finally saved the settings but this didn't work.
To be precise,
It was stored in ".apm-agent-configuration", but APM did not collect as set. The indicator is gray and indicates a tooltip as "Not yet applied by any agents".
Can you tell me what to do?
Please let me know if there is anything you need to answer.
Thank you.
gray indicator : Observability > APM > Settings > Agent Configuration > Configurations > (Service name) elasticsearch
apm config index
# Request
GET .apm-agent-configuration/_search?size=1
# Response
#! this request accesses system indices: [.apm-agent-configuration], but in a future major version, direct access to system indices will be prevented by default
{
"took": 2,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"skipped": 0,
"failed": 0
},
"hits": {
"total": {
"value": 1,
"relation": "eq"
},
"max_score": 1,
"hits": [
{
"_index": ".apm-agent-configuration",
"_id": "QrI5vJIBSGIKCTIfF3WJ",
"_score": 1,
"_source": {
"agent_name": "java",
"service": {
"name": "elasticsearch"
},
"settings": {
"capture_body": "all",
"capture_headers": "true",
"log_level": "debug",
"log_sending": "true",
"transaction_sample_rate": "1.0"
},
"@timestamp": 1729749906302,
"applied_by_agent": false,
"etag": "31186a913581d350fb87db518ab04c9557628829"
}
}
]
}
}