[lttng-dev] lttng-relayd---->lttng-relayd communication
Jesper Derehag
jderehag at hotmail.com
Mon Feb 5 16:02:13 UTC 2018
Or netcat if you want to skip the encryption overhead.
/Jesper
________________________________________
Från: lttng-dev <lttng-dev-bounces at lists.lttng.org> för Jonathan Rajotte-Julien <jonathan.rajotte-julien at efficios.com>
Skickat: den 3 februari 2018 19:11
Till: Ramith Shetty
Kopia: lttng-dev at lists.lttng.org
Ämne: Re: [lttng-dev] lttng-relayd---->lttng-relayd communication
Hi,
On Sat, Feb 03, 2018 at 05:08:25AM +0000, Ramith Shetty wrote:
>
> If we have a setup as below. Can we stream the logs to host SystemA from TargetB below?
>
> Here TargetA and TargetB are part of a private network. Only TargetA has connectivity to SystemA. We need to stream data from TargetB to SystemA.
>
> [ TargetB----->TargetA ]------->[SystemA]
This seems like a perfect match for ssh tunneling via TargetA.
On System A:
Start lttng-relayd.
The default ports are as follow:
Control port: tcp://0.0.0.0:5342
Data port: tcp://0.0.0.0:5343
Live port: tcp://localhost:5344
On Target B:
Create a ssh tunnel via Target A:
ssh -nNT -L 9990:SystemA:5342 -L 9991:SystemA:5343 targetA
Setup live session correctly:
lttng create --set-url net://localhost:9990:9991 --live
lttng ...
At that point you should be able to attach locally a babeltrace to SystemA.
Note that the ssh tunnel needs to be up for everything to work. It might require
some adjustment depending on your network configuration etc.
I tested it locally with 3 VMs and everything seems to work fine.
Cheers
_______________________________________________
lttng-dev mailing list
lttng-dev at lists.lttng.org
https://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev
More information about the lttng-dev
mailing list