cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I set a user IP address using a field in the XML analyzer?

anthony_percy2
Inactive

An application using xml over http has an client IP address in a request and an username in the response. I can see that I could extract the username from a response "Value" xml field but can I set the client IP address using a request "Value" xml field? For example, the request looks like

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<RequestSet vers="1.0" svcid="Policy" reqid="376607">
<Request><![CDATA[
<PolicyService version="1.0">
<PolicyRequest requestId="......">
<GetResourceResults userSSOToken=.....">
<EnvParameters>
<AttributeValuePair>
<Attribute name="requestIp"/>
<Value>10.13.68.6</Value>
</AttributeValuePair>
</EnvParameters>
<GetResponseDecisions>
<Attribute name="cn"/>
</GetResponseDecisions>
</GetResourceResults>
</PolicyRequest>
</PolicyService>]]>
</Request>
</RequestSet> ..... And the response looks like

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ResponseSet vers="1.0" svcid="policy" reqid="376607">
<Response><![CDATA[<PolicyService version="1.0" revisionNumber="50">
<PolicyResponse requestId="268431" issueInstant="1499316263484" >
<ResourceResult name="........>
......
......
<Attribute name="cn"/>
<Value>P261716</Value>
</AttributeValuePair>
</ResponseDecisions>
</PolicyDecision>
</ResourceResult>
</PolicyResponse>
</PolicyService>
]]></Response>
</ResponseSet>

e.g there does not seem to be a "set client IP address using XML field" option in the current XML analyser. I cant use the XForwarderFor as this app flow is not from the client but from an external authentication system used by Siebel. And because of this, the packaged Siebel Login recognition does not work so we can not see any Siebel user names in DCRUM.

Thanks for looking at this question

Anthony Percy

1 REPLY 1

wojciech_kurek
Inactive

Anthony,

There is a way to achieve it, however it has some limitations. First, you need to configure username reporting to extract the XML client IP as the username. Then, in global configuration, Middleware -> XML -> User Identification, select "Try to convert user name to IP address". This will result in the username being propagated to the Client IP dimension (provided that it's a well formed IPv4 address). The downside is that you will not be able to get the actual username separately - it's either the client IP or username.

Wojtek.