How to setup Data Logging for one or more Devices with Alerts

How to setup Data Logging for one or more Devices with Alerts

One can receive alerts via EMAIL, SYSLOG, SNMP trap or all. These alerts will be based on the strings being monitored on the serial port.

Configuration via WebUI:
  1. Login as admin and go to Managed Devices
  2. Select the device and click Logging
    1. Note: Multiple devices of the same type can be selected by checking each box and then clicking Edit
  3. Check the Data Logging and Enable data logging alerts for the port
  4. Add the string you need to receive the alert for in the Data String option available
  5. Click Save
  6. Go to Auditing and select Destinations to configure alerts
    1. Details available here: Auditing and Data Logging Settings
Note: When the string shows up in the serial session, it will trigger the event to send the alert to the configured destinations.

To access Data Logging from WebUI:
  1. Go to Access page
  2. Select the target device
  3. Click Data log

Configuration via CLI:
  1. Log in as admin in CLI (telnet/ssh/console)
  2. Navigate to /settings/devices/<Device_Name>/logging
  3. Use the set command to change the data_logging value to yes or no
  4. Commit the changes
Basic Data Logging settings:
[admin@nodegrid / ] # /settings/devices/Device_console/logging/
[admin@nodegrid / ] # set data_logging=yes
[admin@nodegrid / ] commit

To access Data Logging from CLI:
  1. Log in as admin in CLI (telnet/ssh/console)
  2. Navigate to /settings/devices/<Device_Name>
  3. Use the command access_log_audit
[admin@nodegrid / ] # /settings/devices/Device_console/
[admin@nodegrid / ] # access_log_audit

NFS settings:
[admin@nodegrid /]# cd /settings/auditing/destinations/file/
[admin@nodegrid file]# set destination=nfs
[+admin@nodegrid file]# set nfs_server=<server>
[+admin@nodegrid file]# set nfs_path=<path/filename>
[+admin@nodegrid file]# commit

Optional NFS parameters:
set nfs_file_size=  
set nfs_archive_by_time=
set number_of_archives=

Syslog settings:
[admin@nodegrid /]# cd /settings/auditing/destinations/syslog/
[admin@nodegrid syslog]# set ipv4_remote_server=yes ipv4_address=<server>
[+admin@nodegrid syslog]# set datalog_facility=log_local_0
[+admin@nodegrid syslog]# commit

SNMP Trap settings via CLI:
[admin@nodegrid /]# cd /settings/auditing/destinations/snmptrap/
[admin@nodegrid snmptrap]# set snmptrap_server=<server>
[+admin@nodegrid snmptrap]# set snmptrap_version=<version>

Optional SNMP parameters:
client_address=
snmptrap_port=
snmptrap_transport_protocol=

Optional SNMPv2c parameters:
snmptrap_community=

Optional SNMPv3 parameters:
snmptrap_authentication=
snmptrap_authentication_password=
snmptrap_security_level=
snmptrap_user=
snmptrap_privacy_algo= 
snmptrap_privacy_passphrase= 

Follow the link for how-to-video Data Logging Alerts
Note: The raw Data Logging data is stored in /var/local/DB.

    • Related Articles

    • How to setup Data Logging for one or more Devices to save data locally

      Data logs capture all information send to a device and coming from a device. You can choose to store the logs locally or remotely. Configuration via WebUI: 1. Login as admin and navigate to Managed Devices 2. Select the target device and go to ...
    • Auditing and Data Logging Settings

      The Auditing feature allows the data and event logging to be stored locally or remotely via NFS which is sent by an Email or a SNMP Trap or sent through a Syslog server. Data Logging captures Data string coming from and going to Target devices as ...
    • How to Manually Add NetApp Storage Devices to NodeGrid via WebUI

      Select Managed Devices :: Devices, click the Add button to add a device in the system. For the purpose of this example, provide the following information:   On the Name field, enter the name of the NetApp device you want to add. Enter the IP ...
    • How to Manually Add Network Devices with SSH or Telnet Support to NodeGrid via WebUI

      Select Managed Devices :: Devices, click the Add button to add a device in the system. For the purpose of this example, provide the following information:   On the Name field, enter the name of the device you want to add (for example a critical Red ...
    • Data Logging (How-To Video)

      Note: In addition to viewing the logging via the web UI as shown in the video, the raw Data Logging data is stored in /var/local/DB.