Deployment Architecture

Installing multiple instances on Centos via RPM

williamhutson
New Member

Hey,

I'm trying to install 2 instances of Splunk on a linux machine having migrated from a windows machine. This process was successful on the windows machine by just changing the installation target directory, but I'm having a little trouble on the linux machine.

I tried following the directions given by

http://www.splunk.com/wiki/Community:Run_multiple_Splunks_on_one_machine

by running the command

rpm -i --prefix=/opt/new_directory splunk_package_name.rpm

but got something in the order of

package splunk already installed

from rpm.

Any help would be greatly appreciated. Thanks.

Tags (2)
0 Karma
1 Solution

Ayn
Legend

This is more of an rpm 'issue' rather than a Splunk issue. You can force rpm to install the same rpm in multiple locations like this:

$ rpm -Uhv --prefix=/location1 rpm-pkg.rpm
$ rpm --force -ihv --prefix=/location2 rpm-pkg.rpm

Beware of the problems that may arise with init scripts among other things though.

View solution in original post

Ron_Naken
Splunk Employee
Splunk Employee

Why not just install using the tarball?

0 Karma

Ayn
Legend

This is more of an rpm 'issue' rather than a Splunk issue. You can force rpm to install the same rpm in multiple locations like this:

$ rpm -Uhv --prefix=/location1 rpm-pkg.rpm
$ rpm --force -ihv --prefix=/location2 rpm-pkg.rpm

Beware of the problems that may arise with init scripts among other things though.

williamhutson
New Member

Currently looking into writing a separate init.d to run the same instance with separate configs and index directories....

0 Karma
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...