> My question is as follows is is possible to log the ip-address of users with the logger shipped with Jboss Datavirtualization 6.3.8?
Currently the ip address of the web session will be that of the vm the driver is running in. So for OData that will be the the EAP server. The end user ip should be captured by Resteasy logging: RESTEasy JAX-RS - I'll see if I can verify what category/level captures it.
> We use DV internally and like to log users from within the network.
If you want this to directly be a Teiid feature, please log an upstream issue.
Audit log has the client IP address in it. For OData what kind of authentication you are using?
Currently we use the out of the box implementation, so basic username and password with roles defined in the application-users and application-roles. Later on we will switch to IAM.
That is true, we see the server IP address. I will have a look at the Resteasy logging. Thanks for both suggestions!
The clearest logging that I see is from undertow. From testing with localhost access:
TRACE [io.undertow.request] (default I/O-5) Opened connection with /127.0.0.1:50508
DEBUG [io.undertow.request] (default I/O-5) Matched prefix path /odata4 for path /odata4/loopy.1/MarketData/$metadata
That is more than enough.
If I understand correctly I need to add these lines to the standalone.xml?
Or do I need to add the undertow-io as a module and then add them as is described here:
> If I understand correctly I need to add these lines to the standalone.xml?
Yes, that should be sufficient.
> Or do I need to add the undertow-io as a module and then add them as is described here
That doc is describing if you want to do something other than the default text logging. If you just want textual logs, then you just need to update the logging config.