Upgrade
There are multiple ways to use Eventgen, two major ways to use Eventgen - as a PyPI module and as a Splunk App.
Eventgen PyPI module upgrade
For PyPI module upgrade, you can follow setup page to install eventgen PyPI module with the latest release source code.
Eventgen Splunk app upgrade
Normally, follow these steps to upgrade your eventgen SA.
- Download the latest SA-eventgen app from splunkbase
- Log in to Splunk Web and navigate to Apps > Manage Apps.
- Click “Install app from file”.
- Navigate to the path where your downloaded tgz file is and select.
- Check the checkbox “Upgrade app. Checking this will overwrite the app if it already exists.”
- Restart Splunk after you have been notified of a successful upgrade.
Upgrade Eventgen Splunk app from 6.x to 7.x
Starting from Eventgen 7.x, Eventgen only supports python3. A lot of changes in python code between 6.x and 7.x. And these changes break the SA-eventgen upgrade from 6.x to 7.x.
Read the following guide carefully if you want to upgrade SA-eventgen from 6.x to 7.x.
A new installation of SA-Eventgen 7.x is recommended. Because splunk enterprise upgrades the app by copying all the files in new app package to the app folder. If you just ugprade SA-eventgen by normal steps, without a new installation for SA-Eventgen 7.x, there will be some python files which only exist in SA-Eventgen 6.x. These outdated python files will break modinput in SA-eventgen 7.x.
Follow these steps to upgrade SA-eventgen from 6.x to 7.x.
- Backup your conf files in
<SPKUNK_HOME>/etc/apps/SA-Eventgen/local
-
Optional backup your customized sample files in
<SPKUNK_HOME>/etc/apps/SA-Eventgen/samples
. If you do not put any sample files in SA-eventgen samples folder, you can skip this step. - Remove all the files in
<SPKUNK_HOME>/etc/apps/SA-Eventgen/*
- Download the SA-eventgen app 7.x from splunkbase
- Log in to Splunk Web and navigate to Apps > Manage Apps.
- Click “Install app from file”.
- Navigate to the path where your downloaded tgz file is and select.
- Check the checkbox “Upgrade app. Checking this will overwrite the app if it already exists.”
- Restore your SA-eventgen conf backup files to
<SPKUNK_HOME>/etc/apps/SA-Eventgen/local
-
Optional restore your backup sample files to
<SPKUNK_HOME>/etc/apps/SA-Eventgen/samples
- Restart Splunk after you have been notified of a successful upgrade.