If you already have a working 8.x Aria Operations instance and wish to copy the configuration to a new instance, you can copy most of the configurations and even data to a new instance.
This may be useful if you're experiencing issues with your existing cluster and wish to redeploy a new instance but still preserve your customized content, like dashboards, queries, and alerts.
Aria Operations for Logs 8.x
Backing up and restoring global server settings
You can export and import the general server settings, which are stored in the /storage/core/loginsight/config/loginsight-config#xxx.xml file. In a clustered environment, these settings are replicated and identical across all nodes.
From the source site:
On the new site:
Migrating dashboards, alerts, and content packs
Alert definitions, dashboards, and custom queries are managed through Content Packs. You can export these objects from your "My Content" and then import them into the new environment.
From the source site:
On the new site:
Using the API for advanced settings (alerts and webhooks) This is unsupported by VMware GS:
For bulk exports and imports of more complex settings, like alerts with webhooks, using the Aria Operations for Logs API is the recommended method. This approach requires scripting, often with PowerShell.
Other configurations
Some configurations require individual setup on the new site or are managed by other services.
To copy ingested data:
Sometimes we need move data (ingested logs) from (old) NODE1 to (new) NODE2.
On the source site:
Run below commands on NODE1. Replace NODE1 and NODE2 with appropriate IPs
root@NODE1 [ ~ ]# service loginsight stop
root@NODE1 [ ~ ]# scp -r /storage/core/loginsight/cidata/store/*-*-*-*-* <NODE2>:/storage/core/loginsight/cidata/store/
On the new site:
Run below commands on NODE2.
root@NODE2 [ ~ ]# service loginsight stop
root@NODE2 [ ~ ]# for bucket in $(ls /storage/core/loginsight/cidata/store | grep -v 'generation\|buckets\|strata_write.lock'); do echo y | /usr/lib/loginsight/application/sbin/bucket-index add $bucket --statuses archived; done
All buckets will be markes as archived, --statuses archived. Preferable to pass this parameter.
Run the following command to see all new buckets with archived status
root@NODE2[~]# /usr/lib/loginsight/application/sbin/bucket-index show