Logging client instance name in server logs

classic Classic list List threaded Threaded
3 messages Options
Gangaiah Gundeboina Gangaiah Gundeboina
Reply | Threaded
Open this post in threaded view
|

Logging client instance name in server logs

Hi Igniters ,


We have 300 plus clients connected to cluster, some times need to know which
client connected or left or connection established.

Could see only node-id in serverlogs, not able to find specific client. Want
to log client name( client ignite instance name set client side) in server
logs so that can find out which client it is.

Could you please help us how to log the client name in server logs. Below
are few use cases where not able to find specific client

#####################
[2021-03-08T15:19:43,455][INFO
][disco-event-worker-#342%EDIFCustomerU2C%][GridDiscoveryManager] Added new
node to topology: TcpDiscoveryNode [id=fd32765b-ec43-4cc5-9864-d91f8d45984f,
addrs=[10.33.0.18, 127.0.0.1], sockAddrs=[/127.0.0.1:0, /10.33.0.18:0],
discPort=0, order=3984, intOrder=2171, lastExchangeTime=1615196982142,
loc=false, ver=2.7.6#20190911-sha1:21f7ca41, isClient=true]

#####################################
[2021-03-08T15:11:00,040][INFO
][grid-nio-worker-tcp-comm-43-#307%EDIFCustomerU2C%][TcpCommunicationSpi]
Accepted incoming communication connection [locAddr=/10.137.53.165:47100,
rmtAddr=/10.143.68.21:54336]
[2021-03-08T15:11:00,040][INFO
][grid-nio-worker-tcp-comm-43-#307%EDIFCustomerU2C%][TcpCommunicationSpi]
Received incoming connection from remote node while connecting to this node,
rejecting [locNode=785f0928-e64b-4132-81e8-32b9e0d7d696, locNodeOrder=5,
rmtNode=edbc47f5-d347-49e0-b9d4-aa95143a62f8, rmtNodeOrder=3067]
[2021-03-08T15:11:00,241][INFO
][grid-nio-worker-tcp-comm-44-#308%EDIFCustomerU2C%][TcpCommunicationSpi]
Accepted incoming communication connection [locAddr=/10.137.53.165:47100,
rmtAddr=/10.143.68.21:54340]
[2021-03-08T15:11:00,242][INFO
][grid-nio-worker-tcp-comm-44-#308%EDIFCustomerU2C%][TcpCommunicationSpi]
Received incoming connection from remote node while connecting to this node,
rejecting [locNode=785f0928-e64b-4132-81e8-32b9e0d7d696, locNodeOrder=5,
rmtNode=edbc47f5-d347-49e0-b9d4-aa95143a62f8, rmtNodeOrder=3067]
[2021-03-08T15:11:00,443][INFO
][grid-nio-worker-tcp-comm-45-#309%EDIFCustomerU2C%][TcpCommunicationSpi]
Accepted incoming communication connection [locAddr=/10.137.53.165:47100,
rmtAddr=/10.143.68.21:54348]
[2021-03-08T15:11:00,444][INFO
][grid-nio-worker-tcp-comm-45-#309%EDIFCustomerU2C%][TcpCommunicationSpi]
Received incoming connection from remote node while connecting to this node,
rejecting [locNode=785f0928-e64b-4132-81e8-32b9e0d7d696, locNodeOrder=5,
rmtNode=edbc47f5-d347-49e0-b9d4-aa95143a62f8, rmtNodeOrder=3067]
[2021-03-08T15:11:00,645][INFO
][grid-nio-worker-tcp-comm-46-#310%EDIFCustomerU2C%][TcpCommunicationSpi]
Accepted incoming communication connection [locAddr=/10.137.53.165:47100,
rmtAddr=/10.143.68.21:54350]
[2021-03-08T15:11:00,646][INFO
][grid-nio-worker-tcp-comm-46-#310%EDIFCustomerU2C%][TcpCommunicationSpi]
Received incoming connection from remote node while connecting to this node,
rejecting [locNode=785f0928-e64b-4132-81e8-32b9e0d7d696, locNodeOrder=5,
rmtNode=edbc47f5-d347-49e0-b9d4-aa95143a62f8, rmtNodeOrder=3067]


Regards,
Gangaiah



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
Gangaiah Gundeboina Gangaiah Gundeboina
Reply | Threaded
Open this post in threaded view
|

Re: Logging client instance name in server logs

HI,

Anyone please help us, how to log the client instance name in server logs.

Regards,
Gangaiah



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/
ilya.kasnacheev ilya.kasnacheev
Reply | Threaded
Open this post in threaded view
|

Re: Logging client instance name in server logs

Hello!

I recommend putting client instance name as a node attribute. Then it may be read on server nodes and printed.

Regards,
--
Ilya Kasnacheev


чт, 18 мар. 2021 г. в 14:25, Gangaiah Gundeboina <[hidden email]>:
HI,

Anyone please help us, how to log the client instance name in server logs.

Regards,
Gangaiah



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/