<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to run multiple universal forwarders on a single Linux host? in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333928#M61742</link>
    <description>&lt;P&gt;No, it will be a physical machine.&lt;/P&gt;</description>
    <pubDate>Thu, 20 Apr 2017 10:38:34 GMT</pubDate>
    <dc:creator>tusharsaran1</dc:creator>
    <dc:date>2017-04-20T10:38:34Z</dc:date>
    <item>
      <title>How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333900#M61714</link>
      <description>&lt;P&gt;I am trying to install 2 universal forwarders on a single Linux host.&lt;BR /&gt;
I read a few articles and changed the httpport and mgmtHostPort in the web.conf file in $SPLUNK_HOME/etc/system/local.&lt;BR /&gt;
I also changed serverName in server.conf file.&lt;BR /&gt;
On trying to start the new splunk instance, it gives below error:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;The splunk daemon (splunkd) is already running.            [FAILED]
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there something else that needs to be changed or is there a different method of running 2 universal forwarders on 1 host?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 15:42:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333900#M61714</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-18T15:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333901#M61715</link>
      <description>&lt;P&gt;Should be as simple as unzipping the tar in a different directory, and when you start it from that second bin folder it will ask you to change the ports. Seems to me you are trying to start splunk from the instance thats already running. &lt;/P&gt;

&lt;P&gt;Do you mind me asking why you would want to do this? There are better options depending on what your trying to do. &lt;/P&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:05:00 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333901#M61715</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-18T16:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333902#M61716</link>
      <description>&lt;P&gt;Make sure that you are using the correct Splunk install, in your case the Universal Forwarder (it appears that you are using the full Splunk Enterprise download).  Next, install each one in a DIFFERENT directory.  Then make sure that each instance has a different value for &lt;CODE&gt;serverName&lt;/CODE&gt; inside of &lt;CODE&gt;server.conf&lt;/CODE&gt;:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[general]
serverName = ThisMustBeUniqueForEachInstance
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Apr 2017 16:50:52 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333902#M61716</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-18T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333903#M61717</link>
      <description>&lt;P&gt;Like I mentioned, we have already changed the ports and the server name but its still not working. The reason why we want to do this is because we want 2 different flavours of universal forwarder on 1 host. Each one will be scanning a different set of directories.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:44:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333903#M61717</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T07:44:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333904#M61718</link>
      <description>&lt;P&gt;I have already changed the serverName. The 2 different installations are in /opt/splunkforwarder and /opt/splunkforwarder2. The ports on the 2 instances are also different. What else could be causing this issue?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 07:46:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333904#M61718</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T07:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333905#M61719</link>
      <description>&lt;P&gt;I think you have done the necessary change. You could check the process status (ps) to make sure that there is no previous Splunk running process when you start. Also, after startup the first one, check to see it's using the managment port you set. &lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:07:51 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333905#M61719</guid>
      <dc:creator>tlam_splunk</dc:creator>
      <dc:date>2017-04-19T09:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333906#M61720</link>
      <description>&lt;P&gt;I stopped the forwarder that was running already and then tried to start the new one.&lt;BR /&gt;
I have modified web.conf in /opt/splunkforwarder2/etc/system/local directory with the below details:&lt;BR /&gt;
[default]&lt;BR /&gt;
[settings]&lt;BR /&gt;
httpport = 5000&lt;BR /&gt;
mgmtHostPort = 127.0.0.1:8099&lt;/P&gt;

&lt;P&gt;When I try to start splunkforwarder2, it is still using mgmt port 8089. Is it possible that its still reading the configuration from /opt/splunkforwarder rather than /opt/splunkforwarder2?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 09:54:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333906#M61720</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T09:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333907#M61721</link>
      <description>&lt;P&gt;Another observation - I am able to start splunkforwarder2 on port 8099 if I change the port via CLI. However, adding a line in web.conf is not working. Any idea what could be causing this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:04:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333907#M61721</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T10:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333908#M61722</link>
      <description>&lt;P&gt;I have confirmed my findings. Changing mgmt port via CLI in /opt/splunkforwarder2 still makes changes in /opt/splunkforwarder/etc/system/local.web.conf&lt;BR /&gt;
There must be a way to decouple the 2 directories so that they look at their own config directories.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:29:10 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333908#M61722</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T10:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333909#M61723</link>
      <description>&lt;P&gt;Why do you need different flavours? I still question the validity of this set up if it's anything being used in a prod environment...but anyways.... &lt;/P&gt;

&lt;P&gt;can you please run &lt;CODE&gt;./splunk btool web list --debug&lt;/CODE&gt; so we can confirm your edits are correct and being picked up? You said you were able to successfully configure the second instance by using cli so perhaps you have an error in your config? btool will tell us whether it sees ur changes&lt;/P&gt;

&lt;P&gt;be mindful to ensure you are in the correct bin dir when calling the start. I assume u are doing that...&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:30:35 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333909#M61723</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-19T10:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333910#M61724</link>
      <description>&lt;P&gt;I thought I was able to correctly configure the 2nd instance through CLI but I was wrong. As mentioned in my previous comment, CLI commands are still making changes in the config directory of the original installation.&lt;BR /&gt;
I ran ./splunk set splunkd-port 8099 in the directory /opt/splunkforwarder2/bin&lt;BR /&gt;
It changed mgmtPort in /opt/splunkforwarder/etc/system/local/web.conf&lt;/P&gt;

&lt;P&gt;How can I avoid this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:44:15 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333910#M61724</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T10:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333911#M61725</link>
      <description>&lt;P&gt;hmm maybe an environment variable thing?&lt;/P&gt;

&lt;P&gt;How did you install? tarball? what command are you running and from which path to change the port?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:45:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333911#M61725</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-19T10:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333912#M61726</link>
      <description>&lt;P&gt;by editting the config files manually I would guess. Its gotta be the environment variables or something...&lt;/P&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Changedefaultvalues"&gt;http://docs.splunk.com/Documentation/Splunk/6.5.3/Admin/Changedefaultvalues&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:47:37 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333912#M61726</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-19T10:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333913#M61727</link>
      <description>&lt;P&gt;yeah it certainly appears to be an env variable issue.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:51:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333913#M61727</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T10:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333914#M61728</link>
      <description>&lt;P&gt;I tried exporting $SPLUNK_HOME as /opt/splunkforwarder2 but it didnt make a difference. Changes are still getting done in /opt/splunkforwarder.&lt;BR /&gt;
Manually changing the config files in /opt/splunkforwarder2/etc/system/local isnt helping either (probably because this instance is somehow reading config from /opt/splunkforwarder/etc/system/local).&lt;/P&gt;

&lt;P&gt;Regarding installation, I did the first one through rpm and then copied /opt/splunkforwarder to /opt/splunkforwarder2 to create a second directory containing all the binaries and other sub-directories.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 10:54:21 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333914#M61728</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T10:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333915#M61729</link>
      <description>&lt;P&gt;I'll try in my lab later in the name of science lol but i maintain this is a bad idea and I have not seen any truly valid use cases to support doing this.&lt;/P&gt;

&lt;P&gt;a uf is more than capable of monitoring 2 seperate directories and routing said inputs to seperate destinations even!&lt;/P&gt;

&lt;P&gt;Is this a classic case of 2 different splunk indexing instances/teams wanting to monitor the same host?&lt;/P&gt;

&lt;P&gt;what nix os are u running?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:08:57 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333915#M61729</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-19T11:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333916#M61730</link>
      <description>&lt;P&gt;Its not just 2 directories that we are monitoring. There are 2 different set of directories (one of which will be ~500 directories).&lt;BR /&gt;
Also, we want to manage the configuration separately.&lt;BR /&gt;
We are running it on RHEL6.7&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 11:28:44 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333916#M61730</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T11:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333917#M61731</link>
      <description>&lt;P&gt;Well, i have done all I could to save you from the pain lol. &lt;/P&gt;

&lt;P&gt;Standing by the advice to not go this route, but will try the config on my centos box later.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 13:28:58 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333917#M61731</guid>
      <dc:creator>mattymo</dc:creator>
      <dc:date>2017-04-19T13:28:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333918#M61732</link>
      <description>&lt;P&gt;IMHO, there are very few GOOD reasons to run multiple forwarders so please do explain EXACTLY WHY  you think that you need to do this.  For example, the AQ/AEQ is single-threaded and so if you have even a modest number of &lt;EM&gt;.tar files to forward, you will have to install multiple forwarders on the same server.  Tell us *EXACTLY&lt;/EM&gt; why you are taking this route because I suspect it is unnecessary.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 14:28:28 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333918#M61732</guid>
      <dc:creator>woodcock</dc:creator>
      <dc:date>2017-04-19T14:28:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to run multiple universal forwarders on a single Linux host?</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333919#M61733</link>
      <description>&lt;P&gt;Here is our use case:&lt;BR /&gt;
We have 2 separate log locations that we want to scan - Local logs that exist on each host and an NFS mounted log directory (containing 500+ sub directories).&lt;BR /&gt;
We want to have a local UF running on each host that will scan the local logs on that host.&lt;BR /&gt;
We'll have a 2nd UF that will run on only 1 host in every data center that will scan the 500+ NFS log directories.&lt;BR /&gt;
So in every data center, we will have 1 host where we will be running 2 variants of UF. The reason why we cant have a single UF scanning both local and NFS logs is because that will result in multiple indexed copies of the same NFS logs.&lt;BR /&gt;
Is there a better way of implementing this?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2017 16:06:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/How-to-run-multiple-universal-forwarders-on-a-single-Linux-host/m-p/333919#M61733</guid>
      <dc:creator>tusharsaran1</dc:creator>
      <dc:date>2017-04-19T16:06:56Z</dc:date>
    </item>
  </channel>
</rss>

