In the UBA backend, critical data such as HR account information and asset details are stored in the "hrdataaccounts" and "assetsdata" tables.

Exporting these tables into CSV format is useful for reporting, backup, or integration with other systems.
The export process uses the "psql" command-line tool to extract the required data. Proper verification of table presence ensures that accurate information is exported and helps avoid errors during extraction.
The following steps confirm the presence of the required tables in the database before proceeding with export operations:
psql -d caspidadb -U caspida

\dt hrdataaccounts
\dt assetsdata

\q

The following steps outline the process to export the "hrdataaccounts" and "assetsdata" tables to CSV files and verify the exports:
psql -d caspidadb -U caspida

hrdataaccounts.csv in the home directory of the current user:\copy hrdataaccounts TO '~/hrdataaccounts.csv' CSV HEADER

assetsdata.csv in the home directory of the current user:\copy assetsdata TO '~/assetsdata.csv' CSV HEADER

ls -lrt ~ | grep ".csv"

assetsdata.csv:cat assetsdata.csv

\q

Splunk document: Add HR data to Splunk UBA
| Revision | Publish Date | Comments |
|---|---|---|
1.0 |
01-Oct-2026
|
Initial Release |