Forum Discussion

Sangeet_Mehta_2's avatar
Sangeet_Mehta_2
Icon for Nimbostratus rankNimbostratus
May 19, 2016

HTTP request metrics plus some header information

In our environment I have configured a request logging profile that sends http request/response data to Splunk via HSL. This is working well so far and in Splunk I am able to see outputs like

 

2016-05-18T18:55:34-07:00 - perfltm004-vlan475 - perfltm004-vlan475 - 10.27.67.115 - - - [18/May/2016:18:55:33 -0700] "GET /myservice/availability?rmsskuid=10046005&storenumber=808&businessoperation=CREATE&businesssuboperation=IBA HTTP/1.1" 200 3062 "-" "Java/1.7.0_09" "-"

 

2016-05-18T18:55:34-07:00 - perfltm004-vlan475 - perfltm004-vlan475 - 10.22.16.249 - - - [18/May/2016:18:55:33 -0700] "POST /availability HTTP/1.1" 200 347 "-" "Jakarta Commons-HttpClient/3.1" "-"

 

2016-05-18T18:55:34-07:00 - perfltm004-vlan475 - perfltm004-vlan475 - 10.22.16.249 - - - [18/May/2016:18:55:33 -0700] "POST /availability HTTP/1.1" 200 347 "-" "Jakarta Commons-HttpClient/3.1" "-"

 

Using the above data I can plot charts grouped by method or URI or response_time, response_code etc

 

The above is achieved by using "Local Traffic/Profiles/Other/Request Logging/Perf_Profile" Perf_Profile is the one I created.

 

Under Response Settings template I have included "$NCSA_COMBINED". If I want to capture some or all http headers in the above logs I did not see an option in the request logging profile.

 

If I were to write an iRule then how do I tie that to the request logging entry? Basically the HSL should see all of NCSA_COMBINED + HTTP_HEADERS

 

Thanks.

 

No RepliesBe the first to reply