�����͂������iRules���g�p���܂��B
- Syslogd���g�p����
���̏ꍇ�̓�����- ���[�J��(BIG-IP��HDD)�ɏo�͂ł���
- MGMT I/F����o����
- �t�@�V���e�B�����R�ɐݒ�ł���
- ���[�J��(BIG-IP��HDD)�ɏo�͂ł���
- HSL(High Speed Logging)���g�p����
������̓�����- syslogd���g�p���Ȃ��̂�CPU���ׂ��Ⴂ
��ʂɂȂ肪���ȃg���t�B�b�N���O����������ɂ�HSL�ɃA�h�o���e�[�W������悤�ȋC�����܂��B - syslogd���g�p���Ȃ��̂�CPU���ׂ��Ⴂ
iRules�Ŏ擾�ł���v�f�͂Ȃ�ł����O�Ƃ��ďo���܂����A��������������Ă݂܂��B
��1�A�h���X�ϊ����O���o�͂���
HSL���g�p����ꍇ�A�ȉ��̂悤��iRule�ɂȂ�܂��B
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool syslog]
set saddr [IP::remote_addr]
set sport [TCP::client_port]
}
when SERVER_CONNECTED {
set Bsaddr [IP::local_addr]
set Bsport [TCP::local_port]
set serveraddr [IP::remote_addr]
set currenttime [clock seconds]
HSL::send $hsl "$currenttime,$saddr,$sport,$Bsaddr,$Bsport,$serveraddr"
# log local0. "$currenttime,$saddr,$sport,$Bsaddr,$Bsport,$serveraddr"
}
�����HSL���g�p�����ꍇ�ł��Bsyslogd�o�R�ŏo�������ꍇ��log local0.�̍s�̃R�����g�A�E�g���O���A���̏��HSL::send�̍s�����HSL�n���h����ݒ肵�Ă���HSL::open�̍s���R�����g�A�E�g���܂��B
HSL�ŕ�����syslog�T�[�o�[�ɓ����Ƀ��O���o�������Ƃ�
�c�O�Ȃ��猻��ł�syslog��pool�ɐݒ�ł���member�̐���1�Ɍ�����(�����ݒ肵���Ƃ��̓w���X�`�F�b�N�̌��ʂɊւ�炸��Ɉ���g����)���߁A�p�����グ�����Ƃ��͍H�v���K�v�ɂȂ�܂��B
���̏ꍇsyslog�T�[�o�[�p��pool�Ƃ�����p�ӂ��AiRule�̒��ŕ����̃n���h���̐ݒ�Ƒ��M�̃R�}���h�s����Ηǂ��ł��B
.....
set hsl [HSL::open -proto UDP -pool syslog]
set hsl2 [HSL::open -proto UDP -pool syslog2]
.....
HSL::send $hsl "$currenttime,$saddr,$sport,$Bsaddr,$Bsport,$serveraddr"
HSL::send $hsl2 "$currenttime,$saddr,$sport,$Bsaddr,$Bsport,$serveraddr"
.....
���̂Ƃ���iRule�ŃA�N�e�B�u�ȃ����o�[������pool���ւ��܂��B
when CLIENT_ACCEPTED {
if { [active_members syslog] > 0 } {
set hsl [HSL::open -proto UDP -pool syslog]
} elseif { [active_members syslog2] > 0 } {
set hsl [HSL::open -proto UDP -pool syslog2]
}
.....
Pool�̃X�e�[�^�X�����Đ�ւ��Ă��邽�߁A���ۂ�syslog�T�[�o�[�����O���b�Z�[�W�̎�M�s��ԂɊׂ��Ă���w���X�`�F�b�N���_�E�������m����܂łɃ^�C�����O������A���̊Ԃ̃��O�͏�������̂Œ��ӂ��K�v�ł��B