Skip to main content
Version: 6.2

Updating Search Anywhere Framework

Caution!

This instruction describes the process of updating Search Anywhere Framework from version 6.1.* to 6.2.*.

Important Note!

For proper operation of notes and other features, you must:

  1. Create the $OS_HOME/uploads directory on SA Data Storage nodes
  2. Set ownership to the user running SA Data Storage
  3. Mount a shared network folder to this directory

Refer to the configuration guide for setup instructions.

Information​

Conventions:

  • SAF_INSTALLER - the directory where the Search Anywhere Framework version 6.2 installation package is unpacked
  • USER - a system user with administrator rights, usually admin
  • OS_HOME - the OpenSearch home directory, usually /app/opensearch/
  • OS_DATA - the directory where indexed data is stored, usually /app/data/opensearch
  • OS_IP - IP address of one of the OpenSearch cluster servers
  • OSD_HOME - the OpenSearch Dashboards home directory, usually /app/opensearch-dashboards/
  • PATH_SSL - the location of the certificate, the admin private key, and the ca-cert, usually /app/opensearch/config/

The first step in updating is to determine the currently installed version of Search Anywhere Framework. This can be done by viewing the module versions on the main page or by running the following command in the command line:

curl https://$OS_IP:9200/_cat/plugins -k -u $USER

After entering this command, you will need to enter the password for the $USER account. It is recommended to use the admin user.

A detailed list of new features can be found in the article What's New in SAF 6.2.

Let's consider the update procedure for each component. The 6.2 installer needs to be unpacked into a directory, for example, /app/distr/.

Caution!

Before starting work, it is strongly recommended to back up the main configuration files and Security settings.

It is recommended to create a directory, for example, /app/backup, where you should save:

  • The config directory, usually $OS_HOME/config or $OSD_HOME/config
  • The systemd files, usually /etc/systemd/system/opensearch.service and /etc/systemd/system/opensearch-dashboards.service, /etc/systemd/system/sme-re.service
  • The file /etc/sysctl.d/00-opensearch.conf
  • A copy of the Security settings. This needs to be done once, and requires the certificate and private key of the admin user. (The command below will create a directory with the current date containing the OpenSearch security settings.)
chmod +x $OS_HOME/plugins/opensearch-security/tools/securityadmin.sh
JAVA_HOME=$OS_HOME/jdk/ $OS_HOME/plugins/opensearch-security/tools/securityadmin.sh -backup /app/backup/security_$(date +%Y%m%d) \
-icl \
-nhnv \
-cacert $OS_HOME/config/ca-cert.pem \
-cert $OS_HOME/config/admin-cert.pem \
-key $OS_HOME/config/admin-key.pem

Updating OpenSearch​

The Search Anywhere Framework 6.2 installer needs to be unpacked into a directory, for example, /app/distr/. The location where you unpack the archive contents will be referred to as $SAF_INSTALLER.

tar xzf saf-installer-*.tar.gz -C /app/distr/
SAF_INSTALLER=/app/distr/saf_6.2
Note!

For clusters consisting of multiple nodes, it is recommended to disable allocation before upgrading. This can be done through the Dev Tools console (Main Menu - System Settings - Dev Tools) by executing the following command:

PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "none"
}
}

The same can be done from the terminal with the following command:

curl -XPUT -k -u admin "https://$OS_IP:9200/_cluster/settings?pretty" -H "Content-Type: application/json" -d '{"persistent":{"cluster.routing.allocation.enable": "none"}}'

When upgrading cluster nodes, do not use the update script to disable allocation. After upgrading all cluster nodes, enable allocation:

PUT _cluster/settings
{
"persistent": {
"cluster.routing.allocation.enable": "all"
}
}

The same can be done from the terminal with the following command:

curl -XPUT -k -u admin "https://$OS_IP:9200/_cluster/settings?pretty" -H "Content-Type: application/json" -d '{"persistent":{"cluster.routing.allocation.enable": "all"}}'

Automatic Mode​

The script requires the following pre-installed packages:

  • curl
  • zip
  • unzip
Note!

If you do not see the message indicating that Search Anywhere Framework has been updated at the end, do not rerun the update script. Take a screenshot of where the script stopped and contact technical support.

The script automates the update process and is located at $SAF_INSTALLER/opensearch/setup.sh. To update, either pass the update action when running the script, or run the script without arguments and select the appropriate option from the interactive menu:

Select action [default: update]:
1) install
2) update
3) uninstall

Action [update]:

The script supports the following startup parameters:

  • <action> - action to perform: install, update, or uninstall
  • -c, --config <path_to_config_file_yaml> - specify the configuration file for the update
  • -h, --help - displays help information about available commands

Example configuration file: $SAF_INSTALLER/opensearch/example_config_opensearch.yaml. The YAML file format is similar to the configuration file used during installation.

Note!

Start the upgrade with nodes that do not have the master role. Data nodes can connect to older versions of master nodes, but not vice versa.

To start the update, run the script:

$SAF_INSTALLER/opensearch/setup.sh update

After launching, the script automatically finds the paths to the main directories:

  • OpenSearch Home Directory - the OpenSearch installation directory, usually /app/opensearch
  • OpenSearch Conf Directory - the OpenSearch configuration files directory, usually /app/opensearch/config/
  • OpenSearch Data Directory - the data directory, usually /app/data/
  • OpenSearch Logs Directory - the logs directory, usually /app/logs/

The update script does not perform any actions with the data and logs directories. The configuration files directory and systemd files will be saved to a temporary directory $SAF_INSTALLER/opensearch/staging/.

Note!

If you run the script again, the staging directory will be cleared.

================================================================================
SEARCH ANYWHERE FRAMEWORK UPDATE SCRIPT - OPENSEARCH
================================================================================

Current working directory: /app/distr/saf_6.2/opensearch

Current name of install's archive: opensearch-3.5.0-linux-x64.tar.gz

New version OpenSearch: 3.5.0

================================================================================
-- STEP 1. INSTALLATION DIRECTORIES

opensearch.service file found. Will get necessary paths from there

Final Opensearch home directory: /app/opensearch
Final Opensearch conf directory: /app/opensearch/config
Final Opensearch data directory: /app/data/opensearch
Final Opensearch logs directory: /app/logs/opensearch
Is this correct? [y/n]:

After entering the directories, you need to confirm the automatically found data by pressing y, or enter your directories manually by pressing n.

At the second step, you need to answer the question about user usage during the update. If no information output is required, enter n; if additional information output is required, enter y.

The user can be used either for information output or for allocation management, consequently requiring different permission sets. For simple information output, the permissions of the sa-monitoringrole are sufficient.

-- STEP 2. GET USER

Do you want to see cluster information or manage allocation? [Y/n] :

Your account must have role "sa-monitoring"
Your account must have permission "cluster:admin/settings/update" for manage allocation
================================================================================

Enter username: admin
Enter password for user "admin":
Is this correct? [y/n]:

At the next step, you can disable all operations that require privilege escalation. However, we recommend switching to the root user for the update.

Important Note!

It is impossible to completely perform the update without root privileges, part of operations need to be performed as root user, then run the installer as the user under which OpenSearch operates, after the script finishes, some operations need to be performed again as root user. The list of operations will be displayed in the installer.

If commands are not executed before updating, data loss is possible.

You can run the installer as opensearch user with the following command:

sudo -u opensearch $SAF_INSTALLER/opensearch/setup.sh update

The first prompt will ask about disabling commands requiring root privilege escalation.

Next, you'll need to enter the user and group under which OpenSearch operates.

Following this, information will be displayed listing operations that must be performed before running the update script.

-- STEP 3. DISABLE OPERATIONS WHERE ROOT RIGHTS ARE REQUIRED

Want to update Search Anywhere Framework without root privileges? [y/N]: y

Final you set the non-root flag to: y

Linux username for Search Anywhere Framework [opensearch]:
Linux groupname for Search Anywhere Framework [opensearch]:

Final Search Anywhere Framework username: opensearch
Final Search Anywhere Framework groupname: opensearch
Is this correct? [Y/n]:

ATTENTION!
Before updating Search Anywhere Framework, you must run the following commands as a user with root privileges.
If yo need to disable allocation, run the following command:

curl -XPUT -k -u YOUR_USER_OPENSEARCH:YOUR_USER_OPENSEARCH_PASSWORD_HERE "https://YOUR_IP_OPENSEARCH:9200/_cluster/settings?pretty" -H "Content-Type: application/json" -d '{"persistent":{"cluster.routing.allocation.enable": "none"}}'

Change user, group and directories as needed

systemctl stop sme-re
systemctl stop opensearch
chown -R opensearch:opensearch /app/opensearch /app/opensearch/config /app/data/opensearch /app/logs/opensearch /app/distr/saf_6.2/opensearch

!!! Are you sure you have done everything from the list above? [y/N]:

At the final step, you must confirm that all commands were executed as the root user. Enter y to confirm, otherwise the update will be aborted.

At the next step, if you chose to use a user during the update, you need to answer the allocation question. If you enter y, the script will:

  1. Disable allocation before updating
  2. Re-enable it after completing the script operations
-- STEP 4. CONFIGURE ALLOCATION

Do you want to disable allocation during update? [y/N]: n

You don't want to disable allocation: n
Is this correct? [y/n]:

Then preparatory actions will be performed before the update. Before applying the update, a confirmation prompt will appear - until this point, no changes are made to the system. Additionally, some information about the current node and the cluster as a whole will be displayed, if you selected to use a user during the update at step two.

get current list of plugins
sm-core
sm-im
sm-inventory
sm-ism-action-clickhouse
sm-job-scheduler
sm-job-scheduler-actions-incident
sm-job-scheduler-actions-mitre
sm-knowledge-center
sm-mitre
sm-mssp
sm-rsm
sm-uba
sme
opensearch-security
Information about current node OpenSearch:
{
"name" : "smos-node-00",
"cluster_name" : "smos-cluster",
"cluster_uuid" : "yKPPDCHGSA6rHQT948jokQ",
"version" : {
"distribution" : "opensearch",
"number" : "3.5.0",
"build_type" : "tar",
"build_hash" : "99a9a81da366173b0c2b963b26ea92e15ef34547",
"build_date" : "2025-10-29T17:05:01.906258Z",
"build_snapshot" : false,
"lucene_version" : "10.2.2",
"minimum_wire_compatibility_version" : "2.19.0",
"minimum_index_compatibility_version" : "2.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}

!!! AT THIS POINT WE START TO MAKE CHANGES IN OPERATING SYSTEM !!!
Do you want to continue? [y/N]:

Pressing Enter will interrupt the update; press y to continue.

Upon successful completion of the update, you should see the message SEARCH ANYWHERE FRAMEWORK SUCCESSFULLY UPDATED!. Preliminary information about the cluster and current node will be displayed, if you selected to use a user during the update at step two.

-- STEP 10. PRINT INFORMATION
current state of cluster
{
"cluster_name" : "smos-cluster",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
"discovered_master" : true,
"discovered_cluster_manager" : true,
"active_primary_shards" : 50,
"active_shards" : 50,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 15,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0,
"task_max_waiting_in_queue_millis" : 0,
"active_shards_percent_as_number" : 76.92307692307693
}
current state clusters nodes
172.16.0.27 14 99 8 1.47 0.63 0.26 dim data,ingest,master * smos-node-00
Information about current node OpenSearch:
{
"name" : "smos-node-00",
"cluster_name" : "smos-cluster",
"cluster_uuid" : "5V2rIp1sRj-M-ANnGfF0cA",
"version" : {
"distribution" : "opensearch",
"number" : "3.5.0",
"build_type" : "tar",
"build_hash" : "99a9a81da366173b0c2b963b26ea92e15ef34547",
"build_date" : "2025-10-29T17:05:01.906258Z",
"build_snapshot" : false,
"lucene_version" : "10.2.2",
"minimum_wire_compatibility_version" : "2.19.0",
"minimum_index_compatibility_version" : "2.0.0"
},
"tagline" : "The OpenSearch Project: https://opensearch.org/"
}

================================================================================
ATTENTION!
After updating Search Anywhere Framework, you must run the following commands as a user with root privileges.
Change user, group and directories as needed.

cp /app/distr/saf_6.2/opensearch/staging/services/sme-re.service /etc/systemd/system/
chown root:root /etc/systemd/system/sme-re.service
chcon -Rv -u system_u -r object_r -t bin_t /app/opensearch/bin
chcon -Rv -u system_u -r object_r -t bin_t /app/opensearch/jdk/bin
chcon -Rv -u system_u -r object_r -t var_run_t /app/opensearch/run
chown -R opensearch:opensearch /app/opensearch /app/opensearch/config /app/data/opensearch /app/logs/opensearch
systemctl daemon-reload
systemctl enable sme-re opensearch
systemctl start sme-re
systemctl start opensearch
systemctl status sme-re opensearch

If you disable allocation before, wait 60 seconds and run the following commands as a "opensearch" or user with root privileges:

curl -XPUT -k -u YOUR_USER_OPENSEARCH:YOUR_ADMIN_PASSWORD_HERE "https://127.0.0.1:9200/_cluster/settings?pretty" -H "Content-Type: application/json" -d '{"persistent":{"cluster.routing.allocation.enable": "all"}}'

The following plugins cannot be installed:
-- sm-job-scheduler-actions-incident
-- sm-job-scheduler-actions-mitre

================================================================================
-- Search Anywhere Framework SUCCESSFULLY UPDATED!
-- For further instructions, please refer to the documentation: https://docs.saf-systems.com/
================================================================================

If you chose to update without using commands requiring privilege escalation to the root user, an information block will be displayed listing commands that need to be executed as the root user.

If for some reason the update script fails to update certain plugins, it will additionally display information about these plugins at the end (text reading The following plugins cannot be installed).

Important Note!

The update script takes into account the current list of installed plugins on OpenSearch nodes. If you need to install any additional plugins, this should be done manually after completing the node update.

Updating SA Web​

This script automates the OpenSearch Dashboards update process. It requires the following pre-installed packages:

  • curl
  • zip
  • unzip

The script automates the update process and is located at $SAF_INSTALLER/opensearch-dashboards/setup.sh. To update, either pass the update action when running the script, or run the script without arguments and select the appropriate option from the interactive menu:

Select action [default: update]:
1) install
2) update
3) uninstall

Action [update]:

The update script supports the following parameters:

  • <action> - action to perform: install, update, or uninstall
  • -c, --config <path_to_config_file_yaml> - Specifies the configuration file for the update
  • -h, --help - Displays help information about available commands

Example configuration file: $SAF_INSTALLER/opensearch-dashboards/example_config_dashboards.yaml. The YAML file format is similar to the configuration file used during installation.

The script creates backup copies of the systemd service file, opensearch-dashboards.yml, and the configuration directory in the temporary $SAF_INSTALLER/opensearch-dashboards/staging/ directory. The script does not modify the data or logs directories.

Important!

If the script is run again, the staging directory is cleared and the previous backup is lost. If you need the backup, copy it from this directory before rerunning the script.

To update, run the script:

$SAF_INSTALLER/opensearch-dashboards/setup.sh update

The script automatically detects the main paths on the current server for the following directories:

  • OpenSearch Dashboards Home Directory - The OpenSearch Dashboards installation directory, typically /app/opensearch-dashboards
  • OpenSearch Dashboards Conf Directory - The OpenSearch Dashboards configuration directory, typically /app/opensearch-dashboards/config/
  • OpenSearch Dashboards Data Directory - The data directory, typically /app/data/
  • OpenSearch Dashboards Logs Directory - The logs directory, typically /app/logs/

Example output:

================================================================================
SEARCH ANYWHERE FRAMEWORK INSTALL SCRIPT - OPENSEARCH DASHBOARDS
================================================================================

Current working directory: /opt/saf_6.2/opensearch-dashboards

Current name of install's archive: opensearch-dashboards-3.5.0-linux-x64.tar.gz

Current version of OpenSearch-Dashboards: 3.5.0

================================================================================
-- STEP 1. INSTALLATION DIRECTORIES

opensearch-dashboards.service file found. Will get necessary paths from there

Final Opensearch Dashboards home directory: /app/opensearch-dashboards
Final Opensearch Dashboards conf directory: /app/opensearch-dashboards/config
Final Opensearch Dashboards data directory: /app/data/opensearch-dashboards
Final Opensearch Dashboards logs directory: /app/logs/opensearch-dashboards
Is this correct? [y/n]:

After the directories are displayed, confirm the information by pressing y, or enter your directories manually by pressing n.

At the next step, you can disable all operations requiring privilege escalation to root user rights during the update.

Important Note!

A complete update cannot be performed without root privileges. You must:

  1. Execute some operations as the root user
  2. Run the installer as the SA Web runtime user
  3. After script completion, perform additional operations again as root The operation list will be displayed in the installer

Failure to execute these commands before updating may cause data loss.

To launch the installer as the opensearch user:

sudo -u opensearch $SAF_INSTALLER/opensearch-dashboards/setup.sh update

The first prompt will ask about disabling commands requiring privilege escalation to the root user.

Next, you'll need to enter the user and group under which SA Web operates.

Finally, information will be displayed listing operations that must be performed before running the update script.

-- STEP 2. DISABLE OPERATIONS WHERE ROOT RIGHTS ARE REQUIRED

Want to update SEARCH ANYWHERE FRAMEWORK without root privileges? [y/N]: y

Final you set the non-root flag to: y

Linux username for SEARCH ANYWHERE FRAMEWORK [opensearch]:
Linux groupname for SEARCH ANYWHERE FRAMEWORK [opensearch]:

Final SEARCH ANYWHERE FRAMEWORK username: opensearch
Final SEARCH ANYWHERE FRAMEWORK groupname: opensearch
Is this correct? [Y/n]:

ATTENTION!
Before updating SEARCH ANYWHERE FRAMEWORK, you must run the following commands as a user with root privileges.
Change user, group and directories as needed

systemctl stop opensearch-dashboards
chown -R opensearch:opensearch /app/opensearch-dashboards /app/opensearch-dashboards/config /app/data/opensearch-dashboards /app/logs/opensearch-dashboards /app/distr/saf_6.2/opensearch-dashboards

!!! Are you sure you have done everything from the list above? [y/N]:

At the final step, you must confirm that all commands were executed as the root user. Enter y to confirm; otherwise, the update will be terminated.

Next, preparatory actions will be performed before the update. Before applying the update, you'll be prompted for confirmation - until this point, no system-impacting operations are performed. Additional information about the current node will also be displayed.

Current list of plugins:
-- smartMonitor
-- smartMonitorColumnChart
-- smartMonitorCyberSecurity
-- smartMonitorDrawio
-- smartMonitorHeatmapChart
-- smartMonitorHtmlChart
-- smartMonitorIncidentManager
-- smartMonitorInventory
-- smartMonitorKnowledgeCenter
-- smartMonitorLineChart
-- smartMonitorLookupManager
-- smartMonitorMitreAttack
-- smartMonitorPDFExport
-- smartMonitorPieChart
-- smartMonitorSingleValue
-- smartMonitorTable
-- smartMonitorUserBehaviorAnalytics

Current version of OpenSearch-Dashboards: 3.5.0

!!! AT THIS POINT WE START TO MAKE CHANGES IN OPERATING SYSTEM !!!
Do you want to continue? [y/N]:

If the update was selected without using commands requiring privilege escalation to the root user, an information block will be displayed containing the list of commands that must be executed as the root user.

================================================================================
ATTENTION!
After updating SEARCH ANYWHERE FRAMEWORK, you must run the following commands as a user with root privileges.
Change user, group and directories as needed.

cp /app/distr/saf_6.2/opensearch-dashboards/staging/services/opensearch-dashboards.service /etc/systemd/system/
chown root:root /etc/systemd/system/opensearch-dashboards.service
chcon -Rv -u system_u -r object_r -t bin_t /app/opensearch-dashboards/bin
chown -R opensearch:opensearch /app/opensearch-dashboards /app/opensearch-dashboards/config /app/data/opensearch-dashboards /app/logs/opensearch-dashboards
systemctl daemon-reload
systemctl enable opensearch-dashboards
systemctl start opensearch-dashboards
systemctl status opensearch-dashboards

================================================================================
-- SEARCH ANYWHERE FRAMEWORK DASHBOARDS SUCCESSFULLY UPDATED!
-- For further instructions, please refer to the documentation: https://docs.saf-systems.com/
================================================================================

Upon successful completion of the update script, the following message is displayed: SEARCH ANYWHERE FRAMEWORK DASHBOARDS SUCCESSFULLY UPDATED.

Important

To correctly restore cluster operation and clear the accumulated resource load after all nodes have been updated, stop the nodes in the following order: SA Data Storage Hot, SA Data Storage Cold, SA Master Node. Then start the nodes in the following order: SA Master Node, SA Data Storage Hot, SA Data Storage Cold.

Post-Update Actions​

Migrate Limit Settings​

After upgrading to version 6.2.0 and restarting the OpenSearch nodes, migrate the cluster limit settings first, followed by the base, user, and role limit documents. Send the requests without a body. Before starting, back up the current cluster settings and the limits index.

On startup, version 6.2 adds max_dt_interval: 315360000 (10 years) to the base document if the field is missing. If the base limit previously had a narrower window, check and adjust the new value: the old restriction is not migrated automatically. You can check the current limits under Main Menu - System Settings - Module Settings - General - Limits. Until user and role windows are migrated, 6.2 nodes inherit the new limit from roles and the base document.

Migrate Cluster Settings​

POST _core/migration/6.2.0/migrate_limits/cluster

The migration processes old sme.core.* keys.

Old pathNew path
sme.core.enable_limitssme.core.limits.enable_limits
sme.core.check_base_limitsme.core.limits.check_base_limit
sme.core.max_subsearch_hits_countsme.core.limits.max_subsearch_hits_count
sme.core.list_limitsme.core.limits.list_limit
sme.core.sort_limitsme.core.limits.sort_limit

If a new value is already set at the same settings level, it is preserved. Old keys are removed after migration. Before migration, 6.2 nodes use old settings as fallbacks for the new ones. Explicitly stored old keys are removed from persistent and transient; they remain registered and may appear in defaults.

HTTP statusMessage or situationMeaning and action
200Limit settings migrated successfullyThe cluster acknowledged the settings update. Old keys were removed from the corresponding persistent or transient section.
200No limit settings to migrate.No old keys are explicitly stored in persistent or transient. They may not have been set or may have already been migrated.
400Invalid settings valuesThe values could not be validated during migration preparation. Correct the settings according to the error and retry.
409Another limit settings operation is already in progress on this node.A cluster limit migration is already in progress on this node. Wait for it to finish and retry.
500Migration errorAn error occurred during migration. Check the error and the actual stored settings before retrying.
503Limit settings migration was not acknowledgedThe cluster did not acknowledge the change. Check persistent and transient before retrying.

Check the result by running the following request in the Dev Tools console (Main Menu - System Settings - Dev Tools):

GET _cluster/settings?include_defaults=true&flat_settings=true

Check the new values in persistent and transient, confirm they match the original configuration, and verify that the migrated old keys are absent. If an old key was not explicitly set, it is not migrated; registered default values can be seen in defaults. A repeated run should not change values already migrated.

Migrate Base, User, and Role Limits​

Run the following request in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _core/migration/6.2.0/migrate_limits/users_roles

The migration processes documents in the index configured by sme.core.limits.index_name (.sm_sme_limits_user by default). Writes are paginated, so the result may be partially successful.

FieldChange
allowed_dt_start, allowed_dt_endRemoved after successful interval conversion.
max_command_ram_usageRemoved without a direct replacement.
max_dt_intervalAdded based on the previous time bounds, or preserved if the document was already converted.

max_dt_interval sets the maximum search period in seconds. It replaces the pair of time bounds, but limits the length of the range rather than its position on the timeline. For example, "allowed_dt_start": "now-7d" and "allowed_dt_end": "now" result in "max_dt_interval": 604800 being added, while the old fields remain until cleanup.

If the end bound is missing, now is used. If the start bound is missing, max_dt_interval is not added and the document retains inheritance. Absolute dates, rounding, and other unsupported windows require manual correction. Calendar periods are converted to a fixed number of seconds at migration time.

The response contains an array of results with document (document ID) and message (processing result). The HTTP status applies to the entire request.

HTTP statusMeaning
200All documents were processed without errors; old fields are still preserved.
404Documents with limits not found in <index>: no limit documents were found.
409Some documents require manual correction; others may have migrated successfully.
500Read, conversion, or write error; previously written documents are not rolled back. If errors and documents requiring manual correction occur together, the response is 500.

Messages in the array apply to individual documents. A successful message can therefore also appear in a 409 or 500 response.

Message or situationDescription
Migrated successfully. Converted calendar periods are fixed at migration time.The document change was saved. Calendar periods were converted to seconds at migration time.
This document has already been migrated.The document does not need to be written: the new field already exists or no conversion is needed.
Migration requires manual correction: <error>The document requires manual correction.
Migration failed: <error>An error occurred while processing or writing the document.
Write was submitted, completion has not been confirmed.The write was submitted, but its completion was not confirmed. Check the actual document contents.
Read or bulk write errorThe result may contain an entry with document: "_error" and the error text. A bulk write error can leave some documents saved.
Messages in the array apply to individual documents. A successful message can therefore also appear in a 409 or 500 response.
Message or situationDescription
Migrated successfully. Converted calendar periods are fixed at migration time.The document change was saved. Calendar periods were converted to seconds at migration time.
This document has already been migrated.The document does not need to be written: the new field already exists or no conversion is needed.
Migration requires manual correction: <error>The document requires manual correction.
Migration failed: <error>An error occurred while processing or writing the document.
Write was submitted, completion has not been confirmed.The write was submitted, but its completion was not confirmed. Check the actual document contents.
Read or bulk write errorThe result may contain an entry with document: "_error" and the error text. A bulk write error can leave some documents saved.

For a 409 or 500 response, save the response, inspect the affected documents, correct unsupported windows or resolve the write error, and rerun the request. Check the new limit values and the other fields. A repeated run does not recalculate an existing max_dt_interval, even if the old time fields are still present.

Verify and Clean Up Obsolete Fields​

Confirm that all nodes are upgraded to 6.2, max_dt_interval contains the expected number of seconds or is inherited, old fields are still present, documents requiring manual correction have been fixed, and other user and role settings remain unchanged.

Only after these checks, run the following request in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _core/migration/6.2.0/migrate_limits/cleanup

The request removes allowed_dt_start, allowed_dt_end, and max_command_ram_usage while preserving the other fields. The response is an array of document / message objects, as in the document migration. A write error may produce a partial result; check the response and retry after resolving the cause. Repeated cleanup does not change documents that have already been cleaned. After cleanup, verify that the old fields are absent and the new limits are preserved.

Migrate File Storage Settings​

Starting with version 6.2.0, Incident Manager (IM) and Knowledge Center (KWC) store files through shared connections and module bindings. The old settings are no longer read: without migration, the modules cannot save files or serve previously uploaded files. The storage type and its settings do not change during migration.

Run the following request once in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _core/migration/6.2.0/file_storage

The request can be repeated: a binding that already has a connection is not changed. Status 200 means there were no errors; if any module has a failed outcome, the response is 500. Check modules in the response:

outcomeMeaning
migratedA connection was created and selected in the binding.
already_configuredA connection was already selected; the binding was not changed.
skippedOld settings are missing or incomplete; see message for the reason.
failedMigration failed; see message for the reason, such as a connection name already in use.

Example response:

{
"message": "File storage migration completed",
"modules": [
{
"module": "incident_manager",
"outcome": "migrated",
"connection_id": "im_file_storage",
"message": "Binding now uses connection 'im_file_storage'",
"warnings": []
},
{
"module": "kwc",
"outcome": "migrated",
"connection_id": "kwc_file_storage",
"message": "Binding now uses connection 'kwc_file_storage'",
"warnings": ["maxSize is set to 5M: the value of the removed setting plugins.kwc.max_file_size cannot be read, change maxSize in the binding if needed"]
}
]
}

After migration, check module connections and bindings. IM S3 keys are not migrated: save them again under Module Settings - File Storage - Connection Settings. KWC now has a default maxSize of 5M, instead of the previous 20M. For IM without file_max_size, the previous default was 25M. If either module must accept larger files, increase maxSize in its binding.

Active Actions​

Version 6.2.0 adds Active Actions. Its scripts and actions can be used in Job Scheduler jobs, manual incident runs, incident workflow transitions, and incident SLAs.

Configure the Main Menu​

Remove the obsolete first version of the ASM section using the trash icon to its right. Then open Main Menu - System Settings - Module Settings - General - Menu Settings and click Add Module.

FieldModule value
Item TypeGroup
System Nameactive-actions
TitleActive Actions
ShowEnabled

Inside the Active Actions group, click Add Section twice to create these pages:

FieldFirst pageSecond page
Item TypePagePage
System Nameactionsscripts
TitleActive ActionsScripts
ShowEnabledEnabled

Click Save Changes and configure permissions according to your security policy.

Migrate SME Interpreters​

New scripts use the script interpreter directory. Interpreters for the script command from the cluster setting sme.core.remote_script.interpreters do not appear there automatically. After the upgrade, run the following request once in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _core/migration/6.2.0/script_interpreters

The request can be repeated: entries whose names already exist are skipped. sme.core.remote_script.interpreters is not changed, and the script command continues to use it. If a name occurs more than once, the last entry is used.

Setting entries have the form name::path, for example python3::/usr/bin/python3. Only Python and PyPy interpreters are migrated, including versioned names and python.exe and pythonw.exe. Examples of valid paths are /usr/bin/python3.11, /usr/bin/python3.13t, /opt/pypy/bin/pypy3, and C:\Python311\python.exe. /bin/bash, /usr/bin/node, /usr/bin/ipython, /usr/bin/python3-config, and a path ending in /python/ are not valid. Active Actions currently support only Python scripts.

Status 200 means interpreters were created or already existed; if failed is not empty, the response is 500. Check these response fields:

FieldMeaning and action
createdCreated interpreters: name and record ID.
already_existsExisting record names that the migration did not change.
invalidMalformed name::path entries or values exceeding the allowed name or path length. Correct the setting and rerun the request, or create the records manually.
not_pythonSkipped interpreters for other languages. They continue to work for the script command through the old setting.
failedNames and creation errors. Resolve the cause and rerun the request; created records will be skipped.

Example response:

{
"message": "Script interpreters migration completed",
"created": {
"py311": "v5Dfh6EBqr6UwvBa8Etk",
"pypy": "wZDfh6EBqr6UwvBa8kul",
"venv": "w5Dfh6EBqr6UwvBa9kuy"
},
"already_exists": ["python3"],
"invalid": ["broken"],
"not_python": ["bash::/bin/bash"],
"failed": {}
}
Important

The migration skips an interpreter only when its name matches. If you rename a migrated record, a repeated run creates it again under the original name.

Configure SME RE​

Active Actions scripts run through SME RE at /sme_scripts/v1. Each SME RE instance needs a list of allowed interpreters and a token store; each OpenSearch node needs the same token in its keystore. Interpreter paths in the directory must match the allowed SME RE paths exactly. Without a token or interpreter configuration, errors may include 401 auth.unauthorized, 422 interpreter.not_allowed, and sme_re.token_missing.

The old /sme_remote_exec/* routes and script command continue to use the sme.core.remote_script.user account and mTLS configured under server.ssl.*. The Sm-Access header no longer bypasses account verification on those routes.

  1. Install SME RE from the release package. On startup, it places the script loader and sm_actions package in sme.scripts.loadersDir (./loaders by default). Make sure kill is available in PATH; in minimal images it is provided by procps. A missing command is logged as an error.

  2. Generate a random token of at least 32 bytes and store it in the SME RE PKCS12 keystore under an alias starting with scripts-token-. For example:

    openssl rand -base64 32
    JAVA_HOME=${OS_HOME}/jdk/ ${JAVA_HOME}/bin/keytool -importpass -storetype PKCS12 -keystore ${OS_HOME}/utils/sme-re/scripts-tokens.p12 -alias scripts-token-cluster1

    Multiple entries are allowed: all tokens are accepted, and the token alias appears in the call log instead of a username. Do not save the token or keystore password in documentation or command logs.

  3. Configure SME RE in application.properties (or pass the same settings at startup):

    sme.scripts.interpreters=${OS_HOME}/utils/python/bin/python3,/usr/bin/python3,/opt/venv/bin/python3
    sme.scripts.auth.keystorePath=${OS_HOME}/utils/sme-re/scripts-tokens.p12
    sme.scripts.auth.keystorePassword=${SME_RE_KEYSTORE_PASSWORD:}

    Point to the actual interpreter binary, such as bin/python3 in a virtual environment. A wrapper or shim may prevent child processes from being stopped when execution times out. Use separate virtual environments for different library sets. A script receives only PATH, LANG, and its own HOME; the administrator installs libraries in the interpreter environment.

  4. Set the keystore password in the SME RE service environment, for example with Environment="SME_RE_KEYSTORE_PASSWORD=<keystore password>" in the systemd unit file. Restrict access to that file.

  5. Store the same token in the keystore of every OpenSearch node. The primary method is a core request that updates every cluster node and immediately reloads secure settings:

    POST _core/keystore/sm.actions.script.sme_re.token?nodeid=node_with_sme:true
    {
    "value" : "<token>"
    }

    If the keystore is password protected, add "keystore_password": "<password>" to the body. If the key already exists, replace it with a PUT request to the same path. Alternatively, run opensearch-keystore add sm.actions.script.sme_re.token on each node, then run POST _nodes/reload_secure_settings without restarting. Until the token is set, sm-actions-api returns sme_re.token_missing, and the node log shows sm.actions.script.sme_re.token is not set in the node keystore.

  6. Check the SME RE addresses in cluster settings. They are shared with the old script command and do not need to be recreated:

    SettingDefaultDescription
    sme.core.remote_script.url["http://127.0.0.1"]List of SME RE hosts: requests rotate across them and skip unavailable hosts.
    sme.core.remote_script.port18080SME RE port.
    sme.core.remote_script.enable_ssltrueConnect to SME RE over HTTPS.
  7. Compare paths in the interpreter directory with sme.scripts.interpreters. If they differ, SME RE returns 422 interpreter.not_allowed.

To verify the configuration, check the following:

  • the SME RE startup log has no kill error or No script tokens are accepted warning
  • the OpenSearch node log has no warning about sm.actions.script.sme_re.token
  • a test script run from Active Actions finishes with status completed

To rotate the token without downtime, add a scripts-token-<label> entry to every SME RE keystore. Then replace the token on OpenSearch nodes with PUT _core/keystore/sm.actions.script.sme_re.token, or manually run opensearch-keystore add -f sm.actions.script.sme_re.token on each node followed by POST _nodes/reload_secure_settings. When the old alias no longer appears in the SME RE log, delete it:

JAVA_HOME=${OS_HOME}/jdk/ ${JAVA_HOME}/bin/keytool -delete -storetype PKCS12 -keystore ${OS_HOME}/utils/sme-re/scripts-tokens.p12 -alias <old_alias>

Migrate Default Active Actions​

After migrating interpreters and configuring SME RE, create the default selfassign and send-mail scripts and the Assign to Self and Send Email actions in the new section.

In the Dev Tools console (Main Menu - System Settings - Dev Tools), get the interpreter list and copy _meta.id of the required Python interpreter:

GET _core/script_interpreters

Use the identifier in the following request:

POST _core/migration/6.2.0/default_actions?intr=<interpreter_id>

Status 200 means the objects were created or already existed; creation errors return 500. Check created, already_exists, failed, and skipped in the scripts and actions blocks. Resolve errors in failed and repeat the request. Objects whose identifiers are already in use are not changed. If the interpreter does not exist or its type is not python, the response is 400 and no objects are created.

Check that both scripts appear in the script list and both actions appear under Active Actions.

Migrate Job Scheduler Throttling​

In version 6.2.0, each throttling record is stored as a separate document in .sm_throttling_v2. Manual throttling and exceptions were added, and throttle.enabled controls throttling for a job. Version 6.1 stored one document per job with an array of records in .sm_throttling. The new mechanism cannot read these records, so migrate them and add the flag to regular and SP jobs.

Cluster nodes are upgraded one by one, without stopping jobs during the upgrade or migrations. While both versions run, 6.1 nodes use the old index and 6.2 nodes use the new one, which they create on startup. For jobs saved in 6.1, 6.2 nodes treat throttling as enabled when a list of throttling fields is set. The indices do not interfere with each other.

Behavior Before Migration

A 6.2 node cannot see a record created by a 6.1 node until .sm_throttling is migrated. When a job first runs on a 6.2 node, a previously throttled event may pass through the job actions once. The node then creates a record in the new index and throttles subsequent repeats. At most one extra action can occur for each active throttling record.

After all nodes are upgraded, open Main Menu - System Settings - Dev Tools. Run the following requests in order, waiting for each response before starting the next migration. Do not stop jobs.

Add the Throttling Flag to Jobs​

POST _core/migration/6.2.0/enabled_throttled

The request adds throttle.enabled to regular and SP jobs that do not yet have it: true if the job has a list of throttling fields, otherwise false. It does not change throttling behavior because 6.2 nodes already compute this value. A repeated run processes only jobs without the flag.

The response has job for regular jobs and sp for SP jobs. job.successful and sp.successful show how many jobs lacked the flag. job.version_conflicts and sp.version_conflicts may be nonzero if jobs were saved during migration. In that case, rerun the request. If it fails, resolve the cause reported in the response first.

Confirm that both requests return "count": 0:

GET .sm_jsc_jobs/_count
{"query": {"bool": {"must_not": {"exists": {"field": "throttle.enabled"}}}}}

GET .smos_jobs_sp_meta/_count
{"query": {"bool": {"must_not": {"exists": {"field": "job_parameter.throttle.enabled"}}}}}

Migrate Throttling Records​

POST _core/migration/6.2.0/throttling

The request copies records from .sm_throttling to .sm_throttling_v2 while preserving their expiration times. Expired records are skipped. The old index is neither changed nor deleted. New records created by jobs during migration are already in .sm_throttling_v2 and are unaffected. A repeated run overwrites migrated records with the same values without creating duplicates. If the request is interrupted or fails, resolve the cause and rerun it.

The response reports the number of 6.1 documents read (one per job with throttling records), records migrated, and expired records skipped.

Event Comparison

Version 6.1 did not store event field values, so migrated records are compared with events by hash only. For fractional numbers and nested objects, version 6.2.0 computes the hash differently: such a record will not match, and the event will pass through the job actions once.

For jobs with active throttling records, confirm that repeated events are throttled until the record expires: throttled_events_count in run statistics should be greater than zero.

Check the New Index and Delete the Old One​

After a successful migration, count automatically created records in the new index:

GET .sm_throttling_v2/_count
{"query": {"term": {"origin": "auto"}}}

count must be at least the “records migrated” value in the migration response. After checking, delete the old index:

DELETE _core/migration/6.2.0/throttling/legacy_index

The request returns 404 if .sm_throttling is already absent.

Migrate the System SMTP Configuration​

In version 6.2.0, the Send Email action without smtp_id uses the system SMTP configuration. It must be created from the 6.1 Job Scheduler mail settings. Until a system configuration exists, 6.2 nodes continue to send mail without smtp_id using the old settings. Mail is not lost during a rolling upgrade.

After upgrading all nodes, run the following request in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _core/migration/6.2.0/system_smtp

The migration copies the host, port, user, sender address, protocol, and timeout from GET _core/settings/job-scheduler. The password is not migrated: it stays under the existing keystore key and is supplied automatically. If the system SMTP configuration already exists, the migration does not change it. The request can be repeated safely.

Check the system configuration under Main Menu - System Settings - Module Settings - Job Scheduler - SMTP Configurations: its fields should match GET _core/settings/job-scheduler. Click Test Connection and confirm that the connection succeeds. Then test a job with the Send Email action and no smtp_id: the email should be sent, and the email action should have status done in run statistics.

Migrate Inventory​

Important

If the Inventory module is not installed, proceed to the next step.

When upgrading from version 6.1 to 6.2, update the Inventory PostgreSQL schema. In version 6.2, the calculation module creates and updates the schema. Without this update, Links and Events does not work, and node startup logs contain the warning Postgres base storage is not in line with this build.

After upgrading the plugin on all nodes, run the following request in the Dev Tools console (Main Menu - System Settings - Dev Tools):

POST _inv/storage/schema

The request adds the origin column to edges, changes the primary key to (source_node_id, target_node_id, origin), creates link_intake and inv_data.inv_lower(text[]), and removes obsolete 6.1 schema objects. Asset data, manual assets, history, and links are preserved.

Important

The update builds indexes and changes edges under an exclusive lock. Calculations and opening links in the UI wait for the operation to finish. Its duration depends on the size of edges; run the request when Inventory configuration calculations have finished.

If tables are busy, the request changes nothing and returns 409 with code: objects_busy; blockers lists the blocking operations. Wait for them to finish and repeat the request. Repeated calls are safe.

A successful response has status: OK and needs_apply: false. The found field lists differences before the update; fixed lists corrected objects. Then check the schema:

GET _inv/storage/schema

The response must contain "status": "OK", "needs_apply": false, and empty found and fixed arrays. Check scheduled and manual configuration calculations and opening links in the UI.

Migrate UBA​

Important

If the UBA module is not installed, skip this step.

In version 6.2.0, UBA objects become Inventory assets, object types become categories, and accrual types become rule families. The same migration sequence applies to all source versions from 5.3 through 6.1.

Important

Alerts from old Job Scheduler jobs and accumulated scores are not migrated. Rules and reports using old UBA indexes stop receiving data after migration. Before starting, find jobs, dashboards, and reports whose queries use those indexes.

Before starting, take a snapshot of the UBA, Job Scheduler, lookup, and Inventory indexes and a dump of the Inventory PostgreSQL database. Do not change UBA settings during migration.

After upgrading all nodes to 6.2, follow the steps below in order. For COMPLETED_WITH_ERRORS, resolve the errors in the response and repeat the run. If a run stays in RUNNING after a node restart, contact technical support.

Rule family, policy, and Job Scheduler job migrations return results immediately. If any record has status FAILED, the response is 500 with the full response body. Other records have already been migrated: resolve the errors and repeat the request.

Configure the UBA Main Menu​

Open Main Menu - System Settings - Module Settings - General - Menu Settings.

In user-behavior-analytics, remove scoring-calculations and configuration-list. Click Add Section to create the following pages:

System nameTitleDisplay enabled
Leave emptyOverviewEnabled
anomaliesAnomaliesEnabled
watchlistsWatchlistsEnabled
scoring-model-settingsScoring CalculationEnabled
anomaly-rulesAnomaly Detection RulesEnabled

Select Page as the element type for each row. If needed, rename existing sections: policies to Policies and object-list to Objects.

If the inventory group is missing, click Add Module and create it with type Group, system name inventory, title Inventory, and display enabled. Add these pages with display enabled:

System nameTitle
configs/listAssets
watchlistsWatchlists

Do not add Assets again if it already exists. Click Save Changes and configure section permissions. Give Inventory Watchlists the same permissions as Assets.

Migrate Rule Families​

UBA accrual types become rule families with the same identifiers. If a family with the same name already exists, the accrual type is mapped to it. Types without the uba_compatibility flag are skipped; their count is reported in ignored_incompatible.

Before the first run, check the system rule families supplied with the release:

GET .sm_uba_rule_families/_count
{"query": {"term": {"_meta.type.keyword": "system"}}}

The expected count is 20. If it is 0, delete the index and restart any node with UBA. Delete the index only before the first migration run:

DELETE .sm_uba_rule_families

Do not edit the rule family directory manually during migration. Run:

POST _core/migration/6.2.0/uba_rule_families

Repeated requests skip existing families. Under Main Menu - System Settings - Module Settings - UBA - Rule Families, check that every UBA accrual type has a family with the same name.

Migrate Objects​

Complete the Inventory and rule family migrations first. Check the Inventory PostgreSQL connection and the inv.pg.pass key in every node keystore.

For each object type, the migration creates an inventory asset and a category with the original access permissions. The asset source retains the type's population settings: indexes, filter, fields, and time range. Objects with an empty value in any base field are not migrated.

Run a check without writing data and save migration_id from the response:

POST _core/migration/6.2.0/uba_objects?dry_run=true
GET _core/migration/6.2.0/uba_objects/{migration_id}

Compare the future asset object count assets with the license limit. For each type, the response also includes the object count objects and population configuration count fill_configs.

Start migration, save the new migration_id, and check the status until it finishes:

POST _core/migration/6.2.0/uba_objects
GET _core/migration/6.2.0/uba_objects/{migration_id}

The response includes each type's status and collected asset count assets. Objects without a type are not migrated; their count is reported in orphans. Repeated runs skip migrated types. For a type error containing did not finish in 2h, check the asset calculation; if it is stuck, restart the node running it and repeat migration. For other errors, resolve the cause in the response and repeat the request.

Under Inventory - Assets, check that each type has a disabled asset with the original source settings. The category must contain the migrated assets and be accessible to users with the original object type permissions.

Before enabling assets, check their sources and schedules:

  • a single population configuration retains its schedule; multiple configurations result in an every-minute schedule, which you can adjust
  • the object count limit from population settings is not migrated; compare the filter with the license limit
  • a type without population settings keeps .sm_uba_objects as its source, which is no longer updated, and an every-minute schedule; configure the source and schedule manually

Migrate Policies​

After object migration finishes with status COMPLETED, run:

POST _core/migration/6.2.0/uba_policies

Policies are moved from object types to categories. Chronology uses a new result index, <previous>_6.2.0. Unnamed algorithms receive names based on their type in the sm.core.locale language. Existing names are preserved; assigned names appear in named_algorithms.

If a policy has several algorithms of the same type, a number is added to the name, such as Dictionary 1 and Dictionary 2.

Status or markerAction
SKIPPED, no_categoryCheck the type in the object migration results.
SKIPPED, runningWait for the policy calculation to finish and repeat the request.
COMPLETED, filter_mismatchThe policy is disabled. Adjust its object filter to the category fields and enable it.
FAILED, version_conflictThe policy was changed during migration. Repeat the request.
Algorithm names have no translation for sm.core.localeSet sm.core.locale to ru or en and repeat the request.

Check that migrated policies have a category. Keep the .backup-.sm_uba_policies backup index until the job and profile migrations are complete: both steps require it.

Migrate UBA Jobs​

After migrating rule families, objects, and policies, run:

POST _core/migration/6.2.0/uba_reactions

For each job that accrues UBA scores, a new job is created with the original query and a UBA Alert action. Lookups that read UBA profiles are copied with the _6.2.0 suffix. Repeated runs preserve changes and the state of new jobs: copy: kept means the copy already existed; copy: created means it was created in this run.

Important

Migration immediately disables migrated old jobs and creates new jobs disabled. Jobs with status SKIPPED or FAILED remain unchanged and continue running.

Numeric job scores are divided into three groups of equal size with criticality levels 1, 2, and 3. If all scores are equal, level 2 is assigned. Thresholds appear in criticality and criticality_reason.

Status or markerAction
SKIPPED, validity_nowThe accrual validity period now is not supported by alerts. Create a job manually.
SKIPPED, unmapped_pathThe query reads a profile metric missing in 6.2.0. Create a job manually.
SKIPPED, no_categoryCheck the type in the object migration results.
SKIPPED, no_familyCheck the accrual type in the rule family migration results.
COMPLETED, score_tokenThe score was calculated by the query. Check the assigned medium criticality level 2.
COMPLETED, run_once_removedInstead of one accrual per run, the new job creates an alert for each result row. Check the query.
FAILEDResolve the cause in the error message and repeat the request.

Check that the new job count matches the number of jobs with status COMPLETED:

GET .sm_jsc_jobs/_count
{"query": {"exists": {"field": "_meta.migrated_from"}}}

Before enabling jobs, compare the old and new queries in the migration response and correct profile references if needed. Enable new jobs only after checking profile migration and completing the first calculation of the corresponding policies.

For SKIPPED jobs and Service Provider jobs, create jobs with the UBA Alert action manually and disable the old jobs. Service Provider jobs are not migrated automatically.

Migrate Profiles​

After migrating objects, policies, and jobs, migrate profiles while the new jobs are disabled. Keep the .backup-.sm_uba_policies backup index.

Statistic and Dictionary are linked to assets with the accumulated baseline preserved. Profiles of objects missing from both the old objects and the assets are deleted; their count appears in dropped. They can be restored from backup before cleanup.

Frequency is deleted and rebuilt by policy calculations. If it accumulated data for longer than the source retention period, the beginning of the series is lost. Accumulated Chronology is not migrated: <previous>_6.2.0 starts filling with the first policy calculation.

Check the profile size without writing data:

POST _core/migration/6.2.0/uba_profiles?dry_run=true
GET _core/migration/6.2.0/uba_profiles/{migration_id}

The response lists algorithms and document counts in documents. Prepare free disk space at least equal to the size of the Statistic, Dictionary, and Frequency profiles and spare shard capacity for one shard per profile algorithm.

Start migration, save the new migration_id, and check the status until it finishes:

POST _core/migration/6.2.0/uba_profiles
GET _core/migration/6.2.0/uba_profiles/{migration_id}

For SKIPPED with reason running, wait for the policy calculation to finish and repeat the request. Each Statistic and Dictionary algorithm must have unmapped: 0. Otherwise, check object migration, migrate the remaining types, and repeat profile migration. After the first policy calculation, check that profile blocks on the object card display data without errors.

Clean Up After UBA Migration​

After checking all steps and completing an observation period, delete service data for each object and profile migration run. Use the corresponding migration_id:

DELETE _core/migration/6.2.0/uba_objects/{migration_id}/cleanup
DELETE _core/migration/6.2.0/uba_profiles/{migration_id}/backups
DELETE _core/migration/6.2.0/uba_profiles/{migration_id}/cleanup

The uba_profiles/{migration_id}/backups request deletes backups and old Chronology indexes.

Important

Do not repeat profile migration after uba_profiles/{migration_id}/cleanup: it would process profiles again and delete data belonging to new assets.

Once all migrations are complete and the data has been checked, delete the policy backup index:

DELETE .backup-.sm_uba_policies