Apm Uknow fields

Hi! I have a question regarding the Kibana filters.

I have set up an ELK docker with APM server stack. I have an Angular application that sends its logs through the APM agent. I don't understand why I can't log info about http calls. Going to Discover of Kibana, among the fields I see error.custom.status, but this field is not filterable. Instead I see that I can filter by http. * But these fields are never valued. The ELK version I am using is 7.5.2, instead this is the configuration I am using for the APM agent.

const apm = service.init({
serviceName: 'angular-app',
serverUrl: 'http://********:8200',
captureBody: 'all',
instrument: 'true',
errorOnAbortedRequests: 'true'
});

I also tried updating the index cache from Kibana, but nothing. Please help me!!
Thank you!

Hi Michele :wave:

I don't understand why I can't log info about http calls. Going to Discover of Kibana, among the fields I see error.custom.status, but this field is not filterable. Instead I see that I can filter by http. * But these fields are never valued.

I'm not completely sure whether you are talking about filters in Discover or in the APM app. Can you take screenshots of the parts of the UI that is not working as you expect, and I'll see what we can do.
Thanks!

Hi Soren! Thank you for the reply!
image

When I go to the Kibana interface in the Discover section, there are these fields that are enhanced. But as you can see they are not filterable because they are not recognized.

Instead these fields are filterable, but are never enhanced. Now I don't know if the problem is with the APM Agent or the APM Server. In any case, my goal is to display information about the HTTP calls made by my Angular application within Kibana and to be able to filter them. Thanks so much!

I'm still not 100% sure what you want. However, it looks like http is located both as a top level property and on the span which seems odd.

If you want to filter by status code try: http.response.status_code : 200.
If you want to filter by http method try: http.request.method : "get" .

Hi again,

I see the problem now. You want to filter by field in span.http. However, these are not indexed by default. You can change this by updating the index template. See the docs for more details.

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