cancel
Showing results for 
Search instead for 
Did you mean: 

Need to log client IP

BK1
Cirrus
Cirrus

Hello guys,

 

Is there any way to to send logged client IP address at some location instead of local0. I have iRule to log same but looking for something to have data at some customized location.

 

Local0 stores at var/log/ltm. pls correct me if I am wrong.

 

 

 

 

2 REPLIES 2

vigyu
Altostratus
Altostratus

You can send log to external syslog with HSL.

 

For example:

when CLIENT_ACCEPTED {

set my_hsl [HSL::open -publisher /Common/LOGPUB_SYSLOG]

     HSL::send $my_hsl ""New TCP connection from [IP::client_addr]:[TCP::client_port] to [IP::local_addr]:[TCP::local_port]"

}

BK1
Cirrus
Cirrus

Thanks, I will try this.​