Capture CLIENT information in tRestRequest

Seven Stars

Capture CLIENT information in tRestRequest

I want to capture the client information like originating IP/ Hostname etc and log it somewhere, preferrable SAM tables (Events/ Event_custominfo etc). 
How can I find that information? I am using tRestRequest and when I checked the headers, its not available.
Thanks.
(Sorry for repost, I earlier posted this in another ESB forum).
Moderator

Re: Capture CLIENT information in tRestRequest

Hi,
Have you checked out "Log message" option in advanced setting of tRestRequest component to log the message exchange between the service provider and the consumer?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
Seven Stars

Re: Capture CLIENT information in tRestRequest

Hi,
Have you checked out "Log message" option in advanced setting of tRestRequest component to log the message exchange between the service provider and the consumer?
Best regards
Sabrina
55433/mini_1.png_20170216-2356.png

Yes, I did that. I still cannot capture the source client info (like ip/ hostname) in the logs. Is there any specific context/ globalmap variable I can use to capture that information?
Thanks!
Seven Stars

Re: Capture CLIENT information in tRestRequest

Hello, any help please?
Thank you.
Twelve Stars

Re: Capture CLIENT information in tRestRequest

not sure - how todo this properly
I also not found in web console logs any information about exchange,
but, if install additional component - hawtio monitoring plugin into Karaf
karaf@trun()> feature:repo-add hawtio 1.5.0
karaf@trun()> feature:install hawtio

Than in new console views (link - example)
http://localhost:8040/hawtio/logs?p=container&repositoryId=activemq-5.14.1

it will show INBOUND/OUTBOUND messages
-----------
Seven Stars

Re: Capture CLIENT information in tRestRequest

not sure - how todo this properly
I also not found in web console logs any information about exchange,
but, if install additional component - hawtio monitoring plugin into Karaf
karaf@trun()> feature:repo-add hawtio 1.5.0
karaf@trun()> feature:install hawtio

Than in new console views (link - example)
http://localhost:8040/hawtio/logs?p=container&repositoryId=activemq-5.14.1

it will show INBOUND/OUTBOUND messages
403111/mini_Screen_Shot_2017-04-04_at_3.43.48_PM.png.png

Hmm, thanks. I will try that out and see how it shows.. may be this will solve my problems! Thanks.