AppD Archive

Data Collector - How to see the Request in WCF Method

CommunityUser
Splunk Employee
Splunk Employee

I have set up a Data Collector for a slow WCF Method, I am able to see the response from the service call, but I am also interested in seeing the original request data.

0 Karma

Raunak_Mohanty
Builder

Hi Duncan,

  In case your Service Operation Method takes a .Net Objcet as a parameter you can try setting a MIDC this method and use getter chains to extract the property values you need.

If you are looking for something lower in the stack you can try seeting a MIDC on System.ServiceModel.OperationContext class

https://msdn.microsoft.com/en-us/library/system.servicemodel.operationcontext(v=vs.110).aspx

You can create MIDC with something like following

```

Class : System.ServiceModel.OperationContext

Method : get_Current  (this is just the internal getter method for the Current property of OperationContext class)

```

Now get_Current will return the current OperationContrext so you can apply a getter chain on this object to extract what you need.

Thanks,

Raunak

0 Karma
Get Updates on the Splunk Community!

Community Content Calendar, November Edition

Welcome to the November edition of our Community Spotlight! Each month, we dive into the Splunk Community to ...

October Community Champions: A Shoutout to Our Contributors!

As October comes to a close, we want to take a moment to celebrate the people who make the Splunk Community ...

Stay Connected: Your Guide to November Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...