Apache Style Logging with HSL
Problem this snippet solves: When SNATing to servers, the client IP is lost. This was information our security group and developers wanted to have available, so I created an iRule to use the HSL func...
Published Jan 30, 2015
Version 1.0hypercoyote_208
Jun 25, 2015Nimbostratus
Would you mind elaborating on this a little? I'm pretty new, but I know how to apply this from a general view. However, I'm not sure what parts of this need to be tweaked to make this work for our setup. Does this log to the local syslog and rely on that being exported or does this require a pool of syslog servers to be set up? The part that I'm mainly unsure about is this:
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool syslog.example.com_syslog_pool]
set clientip [IP::remote_addr]
}