<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How Do I get HTTP Request methods(GET,POST,DELETE) and Status Code(200) in data collectors in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-Do-I-get-HTTP-Request-methods-GET-POST-DELETE-and-Status/m-p/729567#M6731</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have integrated spring boot application with AppDynamics. I need to collect&amp;nbsp;Request methods(GET,POST,DEL) and Status Codes(200..) in my data collectors. I am able to collect User-Agent, Host using&amp;nbsp; HTTP Request Data Collectors but not Request Methods and Status codes.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 06 Jun 2022 07:24:37 GMT</pubDate>
    <dc:creator>kartheek_reddy</dc:creator>
    <dc:date>2022-06-06T07:24:37Z</dc:date>
    <item>
      <title>How Do I get HTTP Request methods(GET,POST,DELETE) and Status Code(200) in data collectors</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-Do-I-get-HTTP-Request-methods-GET-POST-DELETE-and-Status/m-p/729567#M6731</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have integrated spring boot application with AppDynamics. I need to collect&amp;nbsp;Request methods(GET,POST,DEL) and Status Codes(200..) in my data collectors. I am able to collect User-Agent, Host using&amp;nbsp; HTTP Request Data Collectors but not Request Methods and Status codes.&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Jun 2022 07:24:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-Do-I-get-HTTP-Request-methods-GET-POST-DELETE-and-Status/m-p/729567#M6731</guid>
      <dc:creator>kartheek_reddy</dc:creator>
      <dc:date>2022-06-06T07:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: How Do I get HTTP Request methods(GET,POST,DELETE) and Status Code(200) in data collectors</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/How-Do-I-get-HTTP-Request-methods-GET-POST-DELETE-and-Status/m-p/729568#M6732</link>
      <description>&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hi @Anonymous,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Thank you for your post to the community!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;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. &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;In my environment with a simple springboot application, I was able to get HTTP request type with the following MIDC configurations.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Class: org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Method Name: invokeHandlerMethod&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Collect Data From: Method Parameter @index 0&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Operation on Method Parameter: User Getter Chain, getMethod&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;You can get status code from the same method but with &lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Collect Data From: Method Parameter @index 1&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;*&lt;/SPAN&gt;&lt;SPAN&gt; Operation on Method Parameter: User Getter Chain, getStatus&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Hope this answer helps!&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;BR /&gt;
&lt;DIV&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Kenji&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 26 Aug 2022 04:00:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/How-Do-I-get-HTTP-Request-methods-GET-POST-DELETE-and-Status/m-p/729568#M6732</guid>
      <dc:creator>Kenji_Kumada</dc:creator>
      <dc:date>2022-08-26T04:00:40Z</dc:date>
    </item>
  </channel>
</rss>

