Here is my service log structure. In below scenario I should be getting "http://servername:8080/MyService/api/orders/phonesearch" URL count as 2. Will the above solution work here ?
Should I use : "url" or it will be something else for me, such as requestUri : "url".
Also, I need to know how much time my service responded as OK/Failure. i.e. reasonPhrase.
Log 1 -
EventId : 1, Level : Informational, Message : Request, Payload : [sessionID :** 9abab532-5f4e-4050-97e4-416e423cd6f3**] [method : POST] [requestUri : http://servername:8080/MyService/api/orders/phonesearch] [content : {"areaCode":"651","countryCode":"01","number":"2911000"}] , EventName : RequestInfo, Timestamp : 2016-03-11T18:20:42.4351450Z, ProcessId : 7768, ThreadId : 4516
EventId : 2, Level : Informational, Message : Response, Payload : [sessionID : 9abab532-5f4e-4050-97e4-416e423cd6f3] [reasonPhrase : ApplicationException] [content : [{}]
Log 2 -
EventId : 1, Level : Informational, Message : Request, Payload : [sessionID :** 97bab532-5f4e-4050-97e4-416e423cd6f3**] [method : POST] [requestUri : http://servername:8080/MyService/api/orders/phonesearch] [content : {"areaCode":"651","countryCode":"01","number":"2911000"}] , EventName : RequestInfo, Timestamp : 2016-03-11T18:20:42.4351450Z, ProcessId : 7768, ThreadId : 4516
EventId : 2, Level : Informational, Message : Response, Payload : [sessionID : 97bab532-5f4e-4050-97e4-416e423cd6f3] [reasonPhrase : OK] [content : [{"created":"2011-10-19T16:34:57", "isComplete":"false","isSaleVoided":"false"}]