Forum Discussion

Julian_Annison_'s avatar
Julian_Annison_
Icon for Nimbostratus rankNimbostratus
Feb 14, 2019

Logging XML/Soap elements and timestamp with iRule

We are looking to build an iRule to log XML/soap transaction times to HSL for SLA perpouses but we would also like to log 2 or 3 elements from the soap envelope such as MerchantID and TransactionID to be able to identify and correlate them later with application logs.

 

The payloads vary in size and we are not able to force HTTP 1.0 to get the payload content length for the HTTP:collect to work, as from reading various posts and KB articles, it is require for reliable HTTP data collection.

 

I was thinking along the lines of using a XML profile and XML_CONTENT_BASED_ROUTING to extract the values. As this would probably me more efficient the trying to collect and search for strings/values as i'm guessing this could actually cause latency. I have had a bit of a play with this but both values come out as a single value in the log.

 

Has anyone done something similar, or have any idea?

 

Thanks

 

Julian

 

No RepliesBe the first to reply