Sync Log Forwarder
The sync_logforwarder.sh script in the <installation_directory>/cluster_utils/ directory, updates the Log Forwarder parameters across all the nodes in the cluster.
For example, if you want to make any changes to the Log Forwarder parameters, make the changes on the Lead node and then
propagate the change to all the nodes in the cluster using the sync_logforwarder.sh script.
- Log in to the co-ordinator node.
- Navigate to the
<installation_directory>/cluster_utils/directory. - To view the arguments for the helper script, run the following command:
./sync_logforwarder.sh --help - Press ENTER. The command lists the arguments for the script.
- To replicate the changes to all the nodes, run the following command:
./sync_logforwarder.sh \ --hostsfile=<path_of_the_hosts_file> \ --ssh-auth-type=publickey \ --private-key-path=<key_file_path>/<name_of_the_private_key_file> \ - Press ENTER.
The script creates a backup and then replicates the configuration on all the nodes in the cluster.
========================================================================== Hosts file set to '<path_of_the_hosts_file>' SSH Authentication Type is set to 'Public Key Authentication' SSH Private Key file path is set to '<key_file_path>/<name_of_the_private_key_file>' Checking connectivity of cluster nodes... Trino Protector Logforwarder Configuration cloning started Stopping Logforwarder on current node... Stopping Logforwarder on all nodes... Creating logforwarder_old/data_10-14-2025_12:14:12/new_data directory on all nodes... Changing ownership of logforwarder_old/ directory recursively on all nodes... Changing permission of logforwarder_old/ on all nodes... Removing Logforwarder Configuration from all nodes... Removed /opt/protegrity/logforwarder/data/ from all nodes Copying current node's logforwarder/data/ to all other nodes... Changing ownership of logforwarder_old/data_10-14-2025_12:14:12/new_data/data.tgz... Changing permission of logforwarder_old/data_10-14-2025_12:14:12/new_data/data.tgz... Extracting logforwarder_old/data_10-14-2025_12:14:12/new_data/data.tgz to logforwarder/data/... Changing permission of logforwarder/data/... Removing backup directory logforwarder_old/... Starting Logforwarder on current node... Starting Logforwarder on all nodes... Successfully updated Logforwarder Configuration across all cluster nodes The script's logs and operation results are logged in /opt/protegrity/logs/sync_logforwarder.log
Feedback
Was this page helpful?