Migrate a *nix light forwarder
If you want to replace an existing light forwarder with a universal forwarder, you need to first migrate its checkpoint data to the new forwarder. Checkpoint data is internal data that the forwarder compiles to keep track of what data it has already forwarded to an indexer. By migrating the checkpoint data, you prevent the new universal forwarder from forwarding any data already sent by the old light forwarder. This ensures that the same data does not get indexed twice.
You can migrate checkpoint data from an existing *nix light forwarder (version 4.0 or later) to the universal forwarder. For an overview of migration, see "Migrate from a light forwarder" in this manual.
You must migrate a light forwarder the first time you start the universal forwarder. It is not possible to migrate later.
To migrate, do the following:
1. Stop any services (splunkd and splunkweb, if running) for the existing forwarder:
2. Complete the basic installation of the universal forwarder, as described in "Deploy a nix universal forwarder manually". Do not yet start the universal forwarder.
Important: Make sure you install the universal forwarder into a different directory from the existing light forwarder. Since the default install directory for the universal forwarder is
/opt/splunkforwarder and the default install directory for full Splunk Enterprise (including the light forwarder) is
/opt/splunk, you'll be safe if you just stick with the defaults.
3. In the universal forwarder's installation directory, (the new
$SPLUNK_HOME), create a file named
old_splunk.seed; in other words:
$SPLUNK_HOME/old_splunk.seed. This file must contain a single line, consisting of the path of the old forwarder's
$SPLUNK_HOME directory. For example:
4. Start the universal forwarder:
The universal forwarder will migrate the checkpoint files from the forwarder specified in the
$SPLUNK_HOME/old_splunk.seed file. Migration only occurs the first time you run the
start command. You can leave the
old_splunk.seed in place; it only gets examined the first time you start the forwarder after installing it.
5. Perform any additional configuration of the universal forwarder, as described in "Deploy a nix universal forwarder manually." Since the migration process only copies checkpoint files, you will probably want to manually copy over the old forwarder's
inputs.conf configuration file (or at least examine it, to determine what data inputs it was monitoring).
Once the universal forwarder is up and running (and after you've tested to ensure migration worked correctly), you can uninstall the old forwarder.
Migrate a Windows light forwarder
Configure the universal forwarder
This documentation applies to the following versions of Splunk® Enterprise: 6.3.0, 6.3.1, 6.3.2, 6.3.3, 6.3.4, 6.3.5, 6.3.6, 6.3.7, 6.3.8, 6.3.9, 6.3.10, 6.3.11, 6.3.12, 6.3.13, 6.3.14, 6.4.0