Splunk AppDynamics

How Do I get HTTP Request methods(GET,POST,DELETE) and Status Code(200) in data collectors

kartheek_reddy
New Member

Hello All,

I have integrated spring boot application with AppDynamics. I need to collect Request methods(GET,POST,DEL) and Status Codes(200..) in my data collectors. I am able to collect User-Agent, Host using  HTTP Request Data Collectors but not Request Methods and Status codes.

 
Labels (1)
0 Karma

Kenji_Kumada
Path Finder
Hi @Anonymous,

Thank you for your post to the community!

I have checked the latest java agent version 22.7.0 and it seems you cannot collect HTTP request types and status codes using http data collector. In order to collect HTTP request types and status codes, you can use MIDC instad of HTTP data collector. First idntify class and method that you can collect these information and define MIDC data collectors.

In my environment with a simple springboot application, I was able to get HTTP request type with the following MIDC configurations.

* Class: org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter
* Method Name: invokeHandlerMethod
* Collect Data From: Method Parameter @index 0
* Operation on Method Parameter: User Getter Chain, getMethod

You can get status code from the same method but with
* Collect Data From: Method Parameter @index 1
* Operation on Method Parameter: User Getter Chain, getStatus

Hope this answer helps!

Best regards,
Kenji
Get Updates on the Splunk Community!

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL

Splunk AI Assistant for SPL | Key Use Cases to Unlock the Power of SPL  The Splunk AI Assistant for SPL ...

Buttercup Games: Further Dashboarding Techniques (Part 5)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...

Customers Increasingly Choose Splunk for Observability

For the second year in a row, Splunk was recognized as a Leader in the 2024 Gartner® Magic Quadrant™ for ...