Under Construction

Changing the syslog Filter for a Remote Syslog Destination

Each remote syslog destination is uniquely identified by the hostname (or IP address) and protocol pair. The only change that is possible for a destination is to change the message filter. The command “hmc chsyslog” can be used for this purpose. In addition to the HMC, the host name (or IP address) and the protocol must be specified. If the protocol used is udp, specifying the protocol can be omitted. Next, changes to the filter can be specified. The following arguments are possible:

    • +string – the specified string is added to the filter
    • -string – the specified string is removed from the filter
    • string – the filter is set exactly to the specified character string; further character strings without a “+” and “” prefix follow immediately and these are also included in the filter.

If the syslog configuration of HMC hmc03 is as follows for example:

$ hmc lssyslog hmc03
SERVER    TYPE  DISCARD
server03  udp   :info
server01  udp   
server02  tcp   
$

And if the character strings “:debug” and “DHCP” for server03 (udp) are also to be ignored, then this can be configured as follows:

$ hmc chsyslog hmc03 server03 +:debug +DHCP
$

Since the strings were specified with the “+” prefix, they were added to the current filter:

$ hmc lssyslog hmc03
SERVER    TYPE  DISCARD
server03  udp   :debug,DHCP,:info
server01  udp   
server02  tcp   
$

If you no longer want to ignore the “DHCP” character string, you can easily remove it from the filter by specifying “-DHCP”:

$ hmc chsyslog hmc03 server03 -DHCP
$