Security

Import / Export User Data

DTERM
Contributor

I'm trying to export and import users (and preferably roles) from one Splunk instance to another with no luck.

This is the process I'm following. When I'm complete, the user accounts do not exist on the second instance.

TIA....

Export

Create a directory to export the data to (exported.data)
[root@splunk /]# mkdir exported.data
[root@splunk /]# /splunk/bin/splunk export userdata /exported.data/
Backing up to dir: /exported.data.
Exporting /splunk/etc/apps/search/local/savedsearches.conf.

Copy data to another instance

Import

[root@splunk2 root]# /splunk/bin/splunk import userdata -dir exported.data
Restoring user data from dir: exported.data.
Importing /splunk/etc/apps/search/local/savedsearches.conf.

no accounts, why??

1 Solution

Ron_Naken
Splunk Employee
Splunk Employee

Did you restart splunk2 after the import? The status notice shows that the user data was imported, but you do need to restart for the users to show.

View solution in original post

Ron_Naken
Splunk Employee
Splunk Employee

Did you restart splunk2 after the import? The status notice shows that the user data was imported, but you do need to restart for the users to show.

Get Updates on the Splunk Community!

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...

Introducing the 2024 Splunk MVPs!

We are excited to announce the 2024 cohort of the Splunk MVP program. Splunk MVPs are passionate members of ...

Splunk Custom Visualizations App End of Life

The Splunk Custom Visualizations apps End of Life for SimpleXML will reach end of support on Dec 21, 2024, ...