3.130.2. LogSelectHook Previous topic Parent topic Child topic Next topic

This parameter defines an optional Perl hook that is run for each log message. If it returns true, the message is logged, otherwise logging is skipped. This is not defined by default and all messages are logged.
LogSelectHook has the following arguments:
  • direction
    This argument defines the direction and is either in or out.
  • protocol
    This argument defines the used protocol. The supported values are:
    • radius
    • radsec
    • diameter
    • tacacsplus
  • from_ip
  • from_port
  • to_ip
  • to_port
  • request_object
The following example logs only the messages from/to 10.10.10.10:
LogSelectHook sub { return 1 if ($_[2] eq '10.10.10.10' || $_[4] eq '10.10.10.10') }