Nutanix

  1. Connect to a Controller VM (CVM) in the cluster using SSH.

  2. Enter the ncli command to log into the ncli prompt

    nutanix@cvm$ ncli

    <ncli>

    Note: "<ncli>" is the ncli prompt.

  3. The remote syslog server is enabled by default, disable it while you configure the settings.

    <ncli> rsyslog-config set-status enable=false

  4. Add a rsyslog server using the command which adds it to the cluster.

    <ncli> rsyslog-config add-server name=<remote_server_name> ip-address=<remote_server_address> port=<rsyslog port> network-protocol=udp relp-enabled=false

  5. Choose a module to forward log information from and specify the level of information to collect.

    <ncli> rsyslog-config add-module server-name=<remote_server_name> module-name=<module_name> level=<log_level>

    Replace <module_name> with one of the following:

    a. ACROPOLIS

    b. AUDIT

    c. CASSANDRA

    d. CEREBRO

    e. CURATOR

    f. GENESIS

    g. PRISM

    h. STARGATE

    i. SYSLOG_MODULE

    j. ZOOKEEPER

Enable module logs at the ERROR level unless you require more information, replace <log_level> with one of the following:

a. EMERGENCY

b. ALERT

c. CRITICAL

d. ERROR

e. WARNING

f. NOTICE

g. INFO

h. DEBUG

6. For e.g.: Once you configure level 6 (it's info), it also covers level 0,1,2,3,4,5 + level 6. For e.g. if you select "INFO" for a module, you don't have to select ALERT for the same module.

7. Enable the rsyslog server.

<ncli> rsyslog-config set-status enable=true

8. Logs should start forwarding to the remote syslog server.

9. Show the current rsyslog server setting and modules added.

<ncli> rsyslog-config ls <ncli> rsyslog-config ls-modules server-name=<rsyslog_name>

Last updated