After Enabling X-Pack security,transactions doesn't appear in APM

Hello. I am using elastic search stack,all with version 7.5. When xpack.security.enabled is set to false everything works as expected. After enabling xpack.security,and enabling Kibana with elastic user (superuser) login and password,it doesn't work,no transactions are showing up,what can cause that issue and how can I fix that.

Hi David,

Sorry to hear you are running into issues with APM. My initial thought is that you don't have the necessary permissions, although you do say you're logged in as the superuser.

Verify access to apm* indices
Let's verify that you can access the APM index and retrieve a list of services. Please run the following query in Kibana Dev Tools:

GET apm*/_search?terminate_after=100
{
  "size": 0,
  "query": {
    "bool": {
      "filter": [
        {
          "terms": {
            "processor.event": [
              "transaction",
              "error",
              "metric"
            ]
          }
        },
        {
          "range": {
            "observer.version_major": {
              "gte": 7
            }
          }
        }
      ]
    }
  },
  "aggs": {
    "services": {
      "terms": {
        "field": "service.name",
        "size": 5
      }
    }
  }
} 

Does that return anything?

Errors in APM App
Additionally, can you try opening your browser's Dev Tool while on the APM app. When you click "Refresh" the list of services should be refetched from the endpoint api/apm/services. Do you see any errors? What does the endpoint return?

Thank you in advance.

{

"took" : 2,
"timed_out" : false,
"terminated_early" : false,
"_shards" : {
"total" : 6,
"successful" : 6,
"skipped" : 0,
"failed" : 0
},
"hits" : {
"total" : {
"value" : 74,
"relation" : "eq"
},
"max_score" : null,
"hits" :
},
"aggregations" : {
"services" : {
"doc_count_error_upper_bound" : 0,
"sum_other_doc_count" : 0,
"buckets" : [
{
"key" : "VuukleCore",
"doc_count" : 74
}
]
}
}
}
Here is the result I've got back from Kibana Dev Tools.
When checking APM dashboard,no errors when doing Services request.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.