Hello,
I'm reading the Forwarder Management manual and it states " Do not install the universal forwarder over an existing installation of full Splunk Enterprise."
What does this mean?
My goal is to install a universal forwarder on a Linux host, to monitor its /var/log directory. However, the host has the Splunk search head server installed on it. Can this be done, without crashing the search head server?
Hi @Lwoods,
it isn't a crashing problem: there isn't no utility to install a UF on a server where it's already installed a full Splunk instance.
You can take the local logs and forward them to Indexers without the UF.
In addition there could be some problem using a Deployment Server.
Ciao.
Giuseppe
For a regular linux host, do I have to create a user and group when installing UF,
The manual says
1. Login as ROOT to the machine that you want to install the Splunk Universal Forwarder.
Create the Splunk user and group.
useradd -m splunk
groupadd splunk
2.
Install the Splunk software, as described in the installation instructions for your platform in Installation instructions.
Create the $SPLUNK_HOME directory wherever desired.
export SPLUNK_HOME="/opt/splunkforwarder"
mkdir $SPLUNK_HOME
Hi @Lwoods
>> For a regular linux host, do I have to create a user and group when installing UF
Yes, we should not run splunk agent thru a root user or any admin users.. so its always better to create a regular user, mostly called as "splunk" and group as well, and then we should install the UF..
Hi @Lwoods ,
good for you, see next time!
Ciao and happy splunking
Giuseppe
P.S.: Karma Points are appreciated by all the contributors 😉
Installing a Universal Forwarder (UF) and a full Splunk instance (such as a search head) on the same machine is not a simple process. Steps must be taken to avoid conflicts between the two.
Fortunately, it is totally unnecessary to install a UF on a SH. That's because a SH is capable of everything a UF can do.
To monitor the SH's /var/log directory, simply add an input that does so. Go to Settings->Data inputs->Files & Directories then click the "New Local File & Directory" button.
it is totally unnecessary to install a UF on a SH ->Requirements are determined by policies, so if policy says that it is required to forward all Splunk components to central Splunk for monitoring, then it is necessary.
We have a use-case that also requires us to install Splunk UF in all the components: Indexers, Search Heads, Deployment servers.
I believe forwarders itself can dual-pipe, however whether it can choose certain index to pipe, I am not very sure.
e.g
Index 1,2,3 only -pipe to central Splunk
All indexes - pipe to local Splunk
So, to monitor my linux box that has a Splunk Instance on it, I cannot install a forwarder on it. Instead I do:
1. go to data inputs,
2. Files and directories
Do I enable the /var/log directory to get the linux logs?
If I enable it, will it conflict with anything?
Also, can I do this with Indexer, and the Deployment Server?
Thanks
So, to monitor my linux box that has a Splunk Instance on it, I cannot install a forwarder on it.
yes, when you already have a splunk HF or splunk indexer or search head, you should not install a UF on that system.
to check if the var log directory is already onboarded or not,.. maybe you can check the DMC for that particular system and if you see details about that system, then, most probably the var logs are already being indexed.
if the var logs are not being indexed, then, you can enable it as you were saying on data inputs.
If I enable it, will it conflict with anything?
nope.. it will not conflict with anything. it will be a simple task and it wont give issues conflicts to you.
Hi @Lwoods,
it isn't a crashing problem: there isn't no utility to install a UF on a server where it's already installed a full Splunk instance.
You can take the local logs and forward them to Indexers without the UF.
In addition there could be some problem using a Deployment Server.
Ciao.
Giuseppe