Capture CLIENT information in tRestRequest

Eight 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.
Eight 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!
Eight Stars

Re: Capture CLIENT information in tRestRequest

Hello, any help please?
Thank you.
Forteen 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
-----------
Eight 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.

Calling Talend Open Studio Users

The first 100 community members completing the Open Studio survey win a $10 gift voucher.

Start the survey

2019 GARNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

What’s New for Talend Summer ’19

Watch the recorded webinar!

Watch Now

An API-First Approach to Modernizing Applications

Learn how to use an API-First Approach to Modernize your Applications

Watch Now

Talend API Designer – Technical Overview

Take a look at this technical overview video of Talend API Designer

Watch Now

Getting Started with APIs

Find out how to get started with APIs

Read