Forum Discussion
hoolio
Cirrostratus
Feb 05, 2010High Speed Logging (HSL:: commands)
I noticed a wiki page for some new commands:
HSL::open
HSL::send
http://devcentral.f5.com/wiki/default.aspx/iRules/hsl
I haven't heard of these commands or High Speed Logging (protocol?) before. I couldn't find much online about this.
Can anyone provide some background info on high speed logging and the new commands?
Thanks,
Aaron
20 Replies
- Hamish
Cirrocumulus
Sorry it took so long. I just noticed this question...
HSL::send $hsl "$LogString [HTTP::status] pool_info: [LB::server] (ResponseTime: [expr [clock clicks -milliseconds] - $http_request_time]ms)\n"
Notice the \n in the string... Standard unix EOL character... (LineFeed)
H - sirwin_111540
Nimbostratus
The examples show the HSL::open command being run in the CLIENT_ACCEPTED event. So, will every new connection grab a new handle for HSL logging? Could the HSL::open command go inside RULE_INIT, and if so, is it likely to improve performance?
I'm just trying to figure out if the LTM could "run out" of available handles for HSL under load.
thanks for any reply - sprashanthac_81
Nimbostratus
How and where do we apply this iRule, have a confusion about this. I am trying to setup a remote syslog server and dont want any of the logs collected locally on the F5 device, LTM in this case. How to set this up.Please help me with this. - hoolio
Cirrostratus
You would create an iRule which initiates the HSL connection and sends messages to the pool. You'd then associate the iRule with any virtual server which you want the iRule to run on.
Aaron - sprashanthac_81
Nimbostratus
SYSLOG-NG.CONF file
==================
I need help in understanding the functionality of the syslog-ng.conf file in the folder /etc/syslog-ng. Can any of you kindly direct me to the document which explains this file in detail. I see that this file when tweaked can help determine the logging, just want to understand the way it functions. Thanks for any help will be much appreciated. Thanks
sprashanthac - simon_irwin_849
Nimbostratus
the HSL is not based on syslog-ng. it is basic TCP/UDP.
syslog-ng, if you wish to use that, is a not an F5 feature - you should be able to google it. - sprashanthac_81
Nimbostratus
Yeah right , think this question should be posted on the syslog-ng section not in the HSL one - hoolio
Cirrostratus
As Simon said, the syslog-ng configuration is standard. You can look up the available options for your specific version (retrieved by running syslog-ng -V on the unit) on these sites:
http://www.syslog.org/syslog-ng/v2/
http://www.balabit.com/support/documentation
http://www.balabit.com/support/documentation/syslog-ng-v2.0-guide-admin-en.pdf
One significant difference with using syslog-ng on the LTM platform is that you need to modify the syslog-ng configuration that LTM loads using the bigip_sys.conf or bpsh utility. Deb wrote a great article on this:
LTM 9.4.2+: Custom Syslog Configuration
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=155
Aaron - hoolio
Cirrostratus
Posted By sirwin on 06/08/2010 09:10 AM
The examples show the HSL::open command being run in the CLIENT_ACCEPTED event. So, will every new connection grab a new handle for HSL logging? Could the HSL::open command go inside RULE_INIT, and if so, is it likely to improve performance?
I'm just trying to figure out if the LTM could "run out" of available handles for HSL under load.
thanks for any reply
I was informed that there isn't actually any gain in trying to use a shared handle for HSL as HSL internally caches and garbage-collects message queues and connections.
Aaron - OTS02
Cirrus
Thanks to Hoolio and all on this post. I set up HSL, based on ibehavior's code. I used UDP (514) so I would not have to hassle with firewall rules. On my syslog server (KIWI), the logs display as a single syslog for each HSL::send (didn't need the \n). I added a unique string to each send that made it easy for the syslog server to parse in a separate file. This is a tremendous troubleshooting tool!
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
