F5 is upgrading its customer support chat feature on My.F5.com. Chat support will be unavailable from 6am-10am PST on 1/20/26. Refer to K000159584 for details.

Forum Discussion

Robert_47833's avatar
Robert_47833
Icon for Altostratus rankAltostratus
May 31, 2011

wanna record user_agent from specific client ip

Hi

 

I have a requirement

 

it seems impossible

 

 

we want to record user_agent from some specific client ip

 

 

when CLIENT_ACCEPTED {

 

if

 

{ [IP::addr [IP::client_addr] equals 174.76.19.40] }

 

 

{ log local0. " 174.76.19.40 uses [HTTP::header value user_agent]" }

 

}

 

 

this irule doesn't work,because HTTP::header can't be used in CLIENT_ACCEPTED event

 

How should I do to achieve this goal

13 Replies