You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/SETUP.md
+74-43Lines changed: 74 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,47 +1,64 @@
1
1
## Install
2
2
3
+
For upgrading eventgen, please refer to [this doc](UPGRADE.md).
4
+
3
5
There are multiple ways to use Eventgen, and you should choose the method that best fits your use case.
4
6
Below are the two major ways to use Eventgen - as a PyPI module and as a Splunk App. Follow the instructions below depending on your ideal use:
5
7
6
-
* Install / Use Eventgen as a [Splunk App](#splunk-app-installation)
8
+
1. Install / Use Eventgen as a [Splunk App](#splunk-app-installation)
9
+
10
+
> :heavy_exclamation_mark: Starting from 7.0.0 release, Eventgen only supports python3, which means SA-eventgen can only work with Splunk enterprise 8.x and later release.
7
11
8
12
Benefits:
9
-
* Easy To Install
10
-
* Works with TA's downloaded direclty from SplunkBase
11
-
* Uses a modular input for controlling the main Eventgen process
12
-
* Reads configurations out of Splunk Rest
13
-
* Supports apps default / local directories
14
-
15
-
Draw Backs:
16
-
* Limited to a single process
17
-
* Can't scale to large datasets
18
-
* Easily can fall behind on processing large quantities of eventgen.conf files
19
-
* Doesn't install the jinja templating system automatically
20
-
* No support for python multi-threading / processing
21
-
22
-
* Install / Use Eventgen as a [Python (PyPI) package](#pypi-installation)
23
-
24
-
Benefits:
25
-
* Support for threading / multiprocessing
26
-
* Support for a centralized service that can controll and run multiple threading workers
27
-
* Able to run a larger amount of datavolume with less overhead
28
-
* Allows an Eventgen object to be embeded and controlled using python code
29
-
* Exposes more of the plugin system
30
-
* Includes/installs the Jinja2 templating engine
31
-
32
-
Drawbacks:
33
-
* More complex installation
34
-
* You have to run the `build` command to produce a Splunk app
35
-
* Harder to troubleshoot (especially in multiprocess mode)
13
+
* Easy To Install
14
+
* Works with TA's downloaded direclty from SplunkBase
15
+
* Uses a modular input for controlling the main Eventgen process
16
+
* Reads configurations out of Splunk Rest
17
+
* Supports apps default / local directories
18
+
19
+
Draw Backs:
20
+
* Limited to a single process
21
+
* Can't scale to large datasets
22
+
* Easily can fall behind on processing large quantities of eventgen.conf files
23
+
* Doesn't install the jinja templating system automatically
24
+
* No support for python multi-threading / processing
25
+
26
+
27
+
1. Install / Use Eventgen as a [Python (PyPI) package](#pypi-installation)
28
+
29
+
Benefits:
30
+
* Support for threading / multiprocessing
31
+
* Support for a centralized service that can controll and run multiple threading workers
32
+
* Able to run a larger amount of datavolume with less overhead
33
+
* Allows an Eventgen object to be embeded and controlled using python code
34
+
* Exposes more of the plugin system
35
+
* Includes/installs the Jinja2 templating engine
36
+
37
+
Drawbacks:
38
+
* More complex installation
39
+
* You have to run the `build` command to produce a Splunk app
40
+
* Harder to troubleshoot (especially in multiprocess mode)
36
41
37
42
---
38
43
39
44
<aid="pypi-installation"></a>
40
-
## PyPI Installation / First Run
45
+
### PyPI Installation / First Run
46
+
47
+
> :heavy_exclamation_mark: Starting from 7.0.0 release, Eventgen only supports python3.
48
+
49
+
To use Eventgen as a PyPI module, you need to either download/clone the source code or install direct from github.
50
+
51
+
#### Prerequisite
52
+
53
+
1. Install git.
54
+
1. Install python3 before building Eventgen>=7.0.0.
55
+
1. Install python2 before building Eventgen<7.0.0.
41
56
42
-
To use Eventgen as a PyPI module, you need to either download/clone the source code or install direct from github.
57
+
>:information_source: You can download the python3 installation package [here](https://www.python.org/downloads/).
@@ -150,7 +181,7 @@ Additionally, you'll see SA-Eventgen in your Splunk apps installation directory:
150
181
$ cd ${SPLUNK_HOME}/etc/apps
151
182
```
152
183
153
-
### First Run
184
+
####First Run
154
185
If SA-Eventgen App is correctly installed, there is no additional configuration required. SA-Eventgen app will automatically identify with any apps with eventgen.conf.
155
186
156
187
To start generating data, simply enable the SA-Eventgen modinput by going to Settings > Data Inputs > SA-Eventgen and by clicking "enable" on the default modular input stanza.
0 commit comments