Forum Discussion
nitass
Sep 07, 2011Employee
i run nc -l -u -p 514 as syslog server.
i was able to receive hsl log after ctrl+c and run nc again.
[root@Edelweiss:Active] config b version|grep -iA 1 version
BIG-IP Version 10.2.0 1707.0
Final Edition
[root@Edelweiss:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.17.77:http
ip protocol tcp
rules myrule
profiles {
http {}
tcp {}
}
}
[root@Edelweiss:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool syslogp]
}
when HTTP_REQUEST {
Log HTTP request as local7.info; see RFC 3164 Section 4.1.1 - "PRI Part" for more info
HSL::send $hsl "<190>[clock format [clock seconds] -gmt 8] [IP::local_addr] [HTTP::uri]"
}
}
[root@Edelweiss:Active] config b pool syslogp list
pool syslogp {
members 192.168.206.96:shell {}
}