Deployment options:
IBM Netezza Appliance
Learn how to
integrate Netezza Performance Server 11.2.2.X and later
with a remote log server and redirect system logs to the remote log server system.
Procedure
- Log in to the container as
root by using one of the following
commands:
- Inside the container, test the reachability of remote system to which you plan to upload
the logs by running the telnet command against that system.
You need the remote log server IP address to run the command.
The default port is 514.
telnet REMOTE_IP_SERVER PORT
- Append the entry to the /etc/rsyslog.d/customrsyslog.conf file in
the following
format:
$ActionQueueFileName UNIQUE NAME
$ActionQueueMaxDiskSpace 1g
$ActionQueueSaveOnShutdown on
$ActionQueueType LinkedList
$ActionResumeRetryCount -1
Facility.Priority @@<REMOTE_SERVER_IP:PORT #Forwarding Rule
Example:
$ActionQueueFileName fwdRule1
$ActionQueueMaxDiskSpace 1g
$ActionQueueSaveOnShutdown on
$ActionQueueType LinkedList
$ActionResumeRetryCount -1
cron.crit @@9.30.189.177:514
- Restart the
rsyslog daemon.
systemctl restart rsyslog
The custom /etc/rsyslog.d/customrsyslog.conf dropin file is a
symlink to persistent file on all Cloud Pak for Data System 2.0.X systems. The
customization is not lost after you restart the pod.