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!

Shape the Future of Splunk: Join the Product Research Lab!

Join the Splunk Product Research Lab and connect with us in the Slack channel #product-research-lab to get ...

Auto-Injector for Everything Else: Making OpenTelemetry Truly Universal

You might have seen Splunk’s recent announcement about donating the OpenTelemetry Injector to the ...

[Puzzles] Solve, Learn, Repeat: Character substitutions with Regular Expressions

This challenge was first posted on Slack #puzzles channelFor BORE at .conf23, we had a puzzle question which ...