Configure Hyper-Q for use with Azure Blob Storage
You configure Hyper-Q to upload log files to Azure storage using systemd
timers and services. The systemd
service lets you schedule tasks using dedicated units called timers.
Prerequisites
If you have not done so, create a az_blob_append.ini
configuration file as described in Prepare a Log Uploader Configuration File.
Procedure
To schedule log file upload tasks with the systemd
timers and services:
Log into each Hyper-Q VM in the Azure workspace using SSH.
Enable and start the
systemd
timer and service units.$ systemctl enable az_blob_append.timer $ systemctl start az_blob_append.timer $ systemctl enable az_blob_append $ systemctl start az_blob_append
Ensure the timer has a trigger time using the
systemctl
status command.systemctl status az_blob_append.timer
Verify that the service is being triggered correctly.
The
systemctl
status command should not return a value of more the60s ago
. In the example below the time value is15s ago
.systemctl status az_blob_append Active: inactive (dead) since Fri 2021-02-26 22:16:51 UTC; 15s ago
To ensure that there are no configuration issues and that the log files are loading into Azure Blob storage, run the
journalctl
command to view thesystemd
logs.$ journalctl -u az_blob_append