Table of ContentsView in Frames

Forwarding the command history log to a destination

You can forward the command history log (content of /mroot/etc/log/mlog/command-history.log) to a maximum of 10 destinations that you specify. For example, you can forward the log to a Splunk or syslog server for monitoring, analysis, or backup purposes.

Steps

  1. For each destination that you want to forward the command history log to, specify the destination IP address or host name by using the cluster log-forwarding create command.
    Before the command creates a record for the specified destination, it pings the destination host to verify connectivity. If the ping is unsuccessful, the command fails with an error. Although not recommended, using the -force parameter with the command bypasses the connectivity verification.

    The cluster log-forwarding modify command enables you to modify a previously specified destination.

    The cluster log-forwarding delete command enables you to delete a previously specified destination.

    Example
    cluster1::> cluster log-forwarding create -destination 192.168.123.96 
    -port 514 -facility user
    
    cluster1::> cluster log-forwarding create -destination 192.168.123.98 
    -port 514 -facility user
  2. Display the destination records by using the cluster log-forwarding show command.
    Example
    cluster1::> cluster log-forwarding show
    
                                     Syslog
    Destination Host          Port   Facility
    ------------------------- ------ --------
    192.168.123.96            514    user
    192.168.123.98            514    user
    2 entries were displayed.
    
    cluster1::>