Esmbackuprecovery
Esmbackuprecovery
Legal Notices
Copyright Notice
© Copyright 2001-2024 Open Text or one of its affiliates
Confidential computer software. Valid license from Micro Focus required for possession, use or copying. The
information contained herein is subject to change without notice.
The only warranties for Micro Focus products and services are set forth in the express warranty statements
accompanying such products and services. Nothing herein should be construed as constituting an additional warranty.
Micro Focus shall not be liable for technical or editorial errors or omissions contained herein.
No portion of this product's documentation may be reproduced or transmitted in any form or by any means, electronic
or mechanical, including photocopying, recording, or information storage and retrieval systems, for any purpose other
than the purchaser's internal use, without the express written permission of Micro Focus.
Notwithstanding anything to the contrary in your license agreement for Micro Focus ArcSight software, you may
reverse engineer and modify certain open source components of the software in accordance with the license terms for
those particular components. See below for the applicable terms.
U.S. Governmental Rights. For purposes of your license to Micro Focus ArcSight software, “commercial computer
software” is defined at FAR 2.101. If acquired by or on behalf of a civilian agency, the U.S. Government acquires this
commercial computer software and/or commercial computer software documentation and other technical data subject
to the terms of the Agreement as specified in 48 C.F.R. 12.212 (Computer Software) and 12.211 (Technical Data) of the
Federal Acquisition Regulation (“FAR”) and its successors. If acquired by or on behalf of any agency within the
Department of Defense (“DOD”), the U.S. Government acquires this commercial computer software and/or commercial
computer software documentation subject to the terms of the Agreement as specified in 48 C.F.R. 227.7202-3 of the
DOD FAR Supplement (“DFARS”) and its successors. This U.S. Government Rights Section 18.11 is in lieu of, and
supersedes, any other FAR, DFARS, or other clause or provision that addresses government rights in computer software
or technical data.
For information about legal notices, trademarks, disclaimers, warranties, export and other use restrictions,
U.S.Government rights, patent policy, and FIPS compliance, see https://www.microfocus.com/about/legal/.
Trademark Notices
Adobe™ is a trademark of Adobe Systems Incorporated.
Microsoft® and Windows® are U.S. registered trademarks of Microsoft Corporation.
UNIX® is a registered trademark of The Open Group.
Support
Contact Information
Phone A list of phone numbers is available on the Technical Support
Page: https://softwaresupport.softwaregrp.com/support-contact-information
Backing up ESM 6
Recovering ESM 12
Publication Status 18
Page 3 of 19
Summary
The information in this technical note applies to ArcSight ESM in both compact and distributed
correlation modes. This procedure is for backing up ESM and recovering it on the same system
or on a new system with a configuration that is identical to the original system.
This does not cover backup and recovery of any connectors that are installed on the original
system.
For all backup operations, back up directly to data storage media other than the one that
currently holds the data. Add up the sizes of all relevant files and folders to ensure that the
backup media is large enough. Database tables compress well, but event archives do not.
Note: Steps specific to distributed mode are prefixed with Distributed mode only.
Some steps apply to compact and distributed mode but have special instructions for distributed
mode. The portion that is specific to distributed mode is identified within the step.
Summary Page 4 of 19
Backup and Recovery Tech Note for Compact and Distributed Mode
Summary
Summary Page 5 of 19
Backup and Recovery Tech Note for Compact and Distributed Mode
Backing up ESM
Backing up ESM
Use this procedure to back up ESM (including data) installed in compact or distributed mode.
For every file, directory, and exported database table, save the backup copy in a safe location
on another computer.
To back up ESM:
1. Stop connectors so that they do not continue sending events to ESM.
2. As user arcsight, stop all of the ArcSight services except mysqld and postgresql.
Distributed mode only: Do this on the persistor node.
/etc/init.d/arcsight_services stop all
Important: (Conditional) If you have customized the Cases' user interface, please back up
the Cases customized files, back up these files in a separate location and restore them after
the recovery is finished.
l /etc/hosts
l /home/arcsight/.bash_profile
l /opt/arcsight/logger/current/arcsight/logger/user/logger/logger.propert
ies
l /opt/arcsight/logger/data/mysql/my.cnf
l /opt/arcsight/manager/config/database.properties
Because the command generates a large file, Micro Focus recommends running gzip
/opt/arcsight/manager/tmp/arcsight_dump_system_tables.sql and then backing up
the resulting .gz file.
Tip: Wait until the dump finishes before moving on. You will see the following message:
-- Dump completed on <date> <time>
You can also check the size of the dump to make sure it has completed successfully. You can
see this in line four of the Dump Completed message:
-rw-rw-r--. 1 arcsight arcsight <size> <date> <time> arcsight_dump_system_
tables.sql
5. As user arcsight, run the following command to export selected tables from the
database:
/opt/arcsight/logger/current/arcsight/bin/mysqldump -uarcsight -p arcsight
${tablename}| gzip > /tmp/${tablename}.sql.gz
where:
l -uarcsight specifies to use the database user account called arcsight
l -p specifies to prompt for a password
l arcsight is the name of the database
l ${tablename} is the name of the table to export (see the list below)
l the path (/tmp/ in this case) is the desired location
Specify the following tables:
l user_sequences
l arc_event_annotation
l arc_event_annotation_p
l arc_event_path_info
l arc_event_payload
l arc_event_payload_p
l arc_event_p
l arc_epd_stats
This command uses compression to reduce disk space. For large databases, compression is
also likely to reduce the amount of time for the commands to complete.
The user_sequences table is the table where the ESM Manager gets event IDs from the
database. Export the user_sequences table daily.
When the export is complete, copy the .gz file to the same backup location as the other
backup files.
6. If you need to keep trends, as user arcsight, run the following commands:
DBTODUMP=arcsight
/opt/arcsight/logger/current/arcsight/bin/mysqldump -u arcsight -p
${DBTODUMP} ${TBLIST} > /tmp/arcsight_trends.sql
When the export is complete, copy the .sql file to the same backup location as the other
backup files.
7. Make a note of the following items, which must match exactly on the computer where you
recover the backup:
l Operating system and version
l Computer domain name, host name, and IP addresses
l File system type
l Path to the archive locations for each storage group
l ESM version
l MySQL password
l Timezone of the computer
l Distributed mode only: operating system version and ESM version on all nodes (you
must install and configure the same versions on all nodes where you recover the
backup)
8. Complete the following before you back up configuration data:
a. Back up /opt/arcsight/logger/current/arcsight/logger/bin/
scripts/configbackup.sh
to /opt/arcsight/logger/current/arcsight/logger/bin/
scripts/configbackup.sh.orig.
b. Open /opt/arcsight/logger/current/arcsight/logger/bin/
scripts/configbackup.sh for edit.
c. On line 60, replace:
tar cvf $TAR_DIR/configs.tar -P ${ARCSIGHT_LOGGER_USER} --exclude
logger/data --exclude logger/folderreader --exclude logger/_*
with:
tar cvf $TAR_DIR/configs.tar -P --exclude logger/data --exclude
logger/folderreader --exclude logger/_* ${ARCSIGHT_LOGGER_USER}
9. Run the following command to back up configuration data:
/opt/arcsight/logger/current/arcsight/logger/bin/arcsight configbackup
Note: All repository instances create the same backup file, so you only need to back up one
instance.
Note: If your next step is to upgrade the operating system or reinstall ESM, skip this step
and the next step.
Recovering ESM
This procedure recovers ESM on the same system or on a new system with a configuration that
is identical to the original system. Ensure that the following items are the same on both
systems:
l Operating system and version (if using configbackup and disasterrecovery commands
as part of this process)
l Domain names, host names, and IP addresses
l File system type
l Path to the archive locations for each storage group
l ESM version
Distributed mode only: If you are configuring a new system, when you install ESM in
distributed mode, do not configure any services. The recovery procedure will automatically
configure the services.
l MySQL password
l Timezone
l Distributed mode only: operating system version and ESM version on all nodes (you must
install and configure the same versions on all nodes where you recover the backup)
To recover ESM:
1. Stop connectors so that they do not continue sending events to ESM.
2. Ensure that the system is running the same operating system and is configured with the
same host name and IP addresses as the original system.
Distributed mode only: Ensure that all computers on which you will install distributed
services match the original computer configurations.
3. Reinstall ESM.
Distributed mode only: Do not configure the distributed correlation services (aggregator,
correlator, dcache, repo, mbus_data, and mbus_control). The services will be
configured automatically.
For more information, see the ESM Installation Guide.
4. Distributed mode only: If you have not done so already, run the following command on
the persistor node:
/etc/init.d/arcsight_services sshSetup
5. As user arcsight, stop all of the ArcSight services except mysqld and postgresql.
Distributed mode only: Do this on all nodes. Start services only on the persistor node.
/etc/init.d/arcsight_services stop all
Note: If you compressed the exported file with gzip, unzip it:
gzip -d <path>/arcsight_dump_system_tables.sql.gz
Tip: Wait until the dump finishes before moving on. You will see the following message:
-- Dump completed on <date> <time>
You can also check the size of the dump to make sure it has completed successfully. You can
see this in line four of the Dump Completed message:
-rw-rw-r--. 1 arcsight arcsight <size> <date> <time> arcsight_dump_system_
tables.sql
If you receive an error about the user_sequence table, run the following commands:
gzip –d /tmp/${tablename}.sql.gz
The command above assumes that your trend data was copied from the backup to the
/tmp/ directory. Your file name or directory might differ.
8. Recover the back up files that you previously created:
Tip: (Conditional) If you have backed up your customized Cases, remember to recover
them.
l /etc/hosts
l /home/arcsight/.bash_profile
l /opt/arcsight/logger/current/arcsight/logger/user/logger/logger.propert
ies
l /opt/arcsight/logger/data/mysql/my.cnf
l /opt/arcsight/manager/config/database.properties
describe arc_resource;
If you can run both commands without errors, the MySQL database is operational.
11. Recover configuration data. Distributed mode only: Do this on the persistor node.
a. Copy the configs.tar.gz file from the backup folder to the
/opt/arcsight/logger/current/backups/ folder.
b. Ensure that the logger services are stopped. If not, as user arcsight, run the
arcsight_services command to stop them.
c. Complete the following:
i. Back up /opt/arcsight/logger/current/arcsight/logger/bin/
scripts/disasterrecovery.sh to
/opt/arcsight/logger/current/arcsight/logger/bin/
scripts/disasterrecovery.sh.orig.
ii. Open /opt/arcsight/logger/current/arcsight/logger/bin/
scripts/disasterrecovery.sh for edit.
iii. On line 168, replace:
/bin/tar -xzvf $backupFile --preserve --same-owner -P >> $backupLog
2>&1
with:
/bin/tar -xzvf $backupFile --preserve-permissions --same-owner -P
>> $backupLog 2>&1
d. Run the following commands:
cd /opt/arcsight/logger/current/arcsight/logger/bin
Note: This example assumes that your backup file is in the /opt/backup directory.
Your location might differ.
gzip -d /opt/backup/postgres_data.sql.gz
13. As user arcsight, run the following commands to recover the tables that you exported in
Backing up ESM. Distributed mode only: Do this on the persistor node.
gzip –d /tmp/${tablename}.sql.gz
where:
l -uarcsight specifies to use the database user account called arcsight
l -p specifies to prompt for a password
l arcsight is the name of the database
l ${tablename} is the name of the table to export
l the path (/tmp/ in this case) is the desired recovery location
14. Distributed mode only: Recover repository instances:
Note: These instructions assume that the instance that you backed up was repo2, and the
instance you are recovering is repo1. Repeat this step for each node where repository
instances were configured, using the repository ID for each node as recorded during the
backup procedure.
mkdir -p /var/opt/arcsight/data/repo1
ln -fs /var/opt/arcsight/data/repo1
/opt/arcsight/var/data
mkdir /opt/arcsight/var/tmp/repo1
mkdir /opt/arcsight/var/logs/repo1
/opt/arcsight/manager/mbus/bin/mbus_setup_bits.sh
d. Run the following command on the node where repo1 was configured:
15. Distributed mode only: Run the following command on each of the nodes that had mbus_
control and mbus_data instances, as recorded during the backup procedure:
/opt/arcsight/manager/bin/arcsight mbus-configure-instances
This command uses mbus instances that are defined in the restored information repository
to set up mbus directories and configure mbus instances on the node.
During recovery, this command replaces the mbus_setup command that is typically used to
create mbus instances after installation.
16. Restart the services:
(Distributed mode only: Do this on the persistor node.)
/etc/init.d/arcsight_services start all
Publication Status
Released: February 2024