Enable ROP logging in Exchange 2010 and 2013
This is just a short post because it seems like there's not yet one on how to do it. http://www.expta.com/2012/07/how-to-enable-logging-for-rpc-client.html shows us how to enable throttling logging - and enabling ROP logging follows the same procedure. It is an additional logging tag that must be enabled inside the Microsoft.Exchange.RpcClientAccess.Service.exe.config file. Usually when I enable ROP logging, I enable throttling logging as well thus my config file would have this LoggingTag key:
<add key="LoggingTag" value="ConnectDisconnect, Logon, Failures, ApplicationData, Warnings, Throttling, Rops" />
Now when I open a log file, I'd see lines like this [I split this request using a comma delimiter so it's more legible]:
/o=Pulsarwinds/ou=Exchange Administrative Group (FYDIBOHF23SPDLT)/cn=Recipients/cn=MAHUYNH
" >SetProperties; >SetProperties; >SaveChangesMessage; >GetPropertiesSpecific; <SetProperties; <SetProperties; <SaveChangesMessage; <GetPropertiesSpecific; BS=Owner:Sid~Pulsarwinds\MAHUYNH~Rca~false
Remote operation (ROP) logging allows you to see the ROPs that are sent from clients to the server and back. When you see a ROP that is prepended with '>', then it is being sent from the client. When you see a ROP that is prepended with '<', then it is being sent from the server. We can see that 4 ROPs were packed into this single request here.
RCA logs have a wealth of information. The client is connecting via Outlook 2010 cached mode using RPC over HTTP (Outlook Anywhere). We can also tell that he has 7 connections out of a maximum 40 used. His budget/balance is 149980.5ms so he's used up 19.5ms of server time globally across his connections. If the balance goes negative, the user will start encountering microdelays. Since there's no cutoff (it's unlimited), the user will never be denied/rejected outright via the RPC protocol.
Using the operation-specific field, you can extract the ROPs out and identify what a user's top ROPs are. My next blog post will have a script that does that and some info on how to generate basic stats on the extracted data.
Edit: Here's the promised script: http://blogs.technet.com/b/mahuynh/archive/2014/09/25/rop-breakdown-by-user.aspx