[x]

Site Alert(s):

  • Server maintenance Saturday Nov 22, 2008, 12:00 PM - 3:00 PM. The Knowledge Center will be unavailable during this time.
Rate this Article:
You must be signed in to rate again
Article Feedback Print View
Alternate Languages: N/A

How Do You Configure a NetScaler Device to Send Syslog Output to a Remote Server?

Document ID: CTX109846   /   Created On: Jun 30, 2006   /   Updated On: Jun 30, 2006
Average Rating: not yet rated

Q: How do you configure a NetScaler device to send syslog output to a remote server?

A: As of release 6.1 you can configure a remote syslog server from the command line interface (CLI) using the following command:

set audit syslogparams [-serverip <ip_address>] [-serverport <port>]
        [-dateformat ( MMDDYYYY | DDMMYYYY )] [-logLevel <logLevel> ...]

-Where-

    <logLevel> = ( EMERGENCY | ALERT | CRITICAL | ERROR | WARNING | NOTICE |

        INFORMATIONAL | DEBUG | ALL )

For NetScaler release 6.0 or earlier, the following procedure applies:

Assumptions: You want to use the local0 facility to log system events, and the local2 facility to log SSL Virtual Private Networking (VPN) access events. You also want these logs saved locally on your NetScaler device.

  1. Configure /etc/hosts and verify connectivity to the remote syslog server
    > shell
    # su
    Password:
    netscaler# cd /etc/
    netscaler# pico hosts
  1. Add the following line to /etc/hosts:
    <ip address of remote> <hostname>
  1. Save the file (in the Pico editor, press CTRL+O to save the file and CTRL+X to exit the editor itself).
  2. Verify you have done this correctly by pinging the remote device from the shell:
    netscaler# ping <hostname>
  1. Enable syslog on the NetScaler:
    > shell
    # su
    Password:
    netscaler# cd /etc/
    netscaler# pico rc.conf
  1. Look for the following line:
    syslogd_enable=?NO?
  1. Change it to the following:
    syslogd_enable=?YES?
  1. Configure the nsconmsg utility to output log info to syslogd:
    > shell
    # su
    Password:
    netscaler# cd /etc/
    netscaler# pico startpe
  1. Here you are only interested in the section of the file that contains the following:
    #Uncomment the below line to enable Netscaler syslog daemon.
    # $WEBSCALER_START/nsconmsg -s syslog=1 -d eventwait
    #Uncomment the below line to enable Netscaler syslog daemon logs for SSLVPN .
    # $WEBSCALER_START/nsconmsg -s syslog=1 -d accesslogs
  1. Uncomment and modify these lines as follows:
    #Uncomment the below line to enable Netscaler syslog daemon.
    $WEBSCALER_START/nsconmsg -s syslog=1 -d eventwait
    #Uncomment the below line to enable Netscaler syslog daemon logs for SSLVPN .
    $WEBSCALER_START/nsconmsg -s syslogfacility=2 ?s syslog=1 -d accesslogs
  1. Save the file.
  2. Create the actual log files on the NetScaler device itself:
    Note: Again, this is given the assumption that you wish to save local copies of the syslog output on the NetScaler itself.
    > shell
    # su
    Password:
    netscaler# cd /var/log
    netscaler# pico eventlog (this title can be anything you want it to be)
  1. The Pico editor creates a blank file, which you can then save by pressing CTRL+O. Once you have done this, press CTRL+X to exit Pico.
  2. Issue the following command:
    netscaler# pico vpnaccesslog (again, this title can be anything you want it to be)
  1. As above, save the blank file.
  2. Modify the filters in the syslog.conf file:
    Note: The syslog.conf file lists filters that tell the NetScaler device how and where to output syslog data. While there are a number of possible configuration options here, the scope of this FAQ is to stay within our previously defined assumptions.
    > shell
    #su
    Password:
    netscaler# cd /etc/
    netscaler# pico syslog.conf
  1. At the very top of the file, add the following lines:
    local0.* @<hostname>
    local2.* @<hostname>
    local0.* /var/log/eventlog
    local2.* /var/log/vpnaccesslog
  1. Save the file by pressing CTRL+O.
  2. Restart the NetScaler device. Syslog does not start until the device is restarted:
    netscaler# reboot

Note: For High Availability situations, as syslog is handled at the BSD level, it is not affected by the ns.conf configuration synchronization. You must take the preceding steps on both NetScaler devices in the pair.


Search
Knowledge Center
XenApp
XenApp Plugins (Clients)
XenServer
XenDesktop
NetScaler Application Delivery
Access Gateway
EdgeSight
Provisioning Server
WANScaler
Password Manager
Does it work with Citrix? Verify it - introducing the new Citrix Ready Community Verified