splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
376 stars 180 forks source link

[BUG] What outputMode really means ? #352

Closed rendi7936 closed 4 years ago

rendi7936 commented 4 years ago

Describe the bug I use EventGen in Splunk to generate a sample log. I use same stanza name ( which refer to sample log name ) but using different outputMode.

I get the same sample log result after using different outputMode. Question that i want to ask is what the difference of outputMode ?

Do you run eventgen with SA-eventgen? Yes

If you are using SA-Eventgen with Splunk (please complete the following information):

li-wu commented 4 years ago

outputMode = modinput | s2s | file | splunkstream | stdout | devnull | spool | httpevent | syslogout | tcpout | udpout | metric_httpevent

outputMode means different destination for the generated events. For example, if you are using SA-Eventgen app, the default value for outputMode is modinput. If you want to output the generated events via HEC endpoint you should use httpevent when you are using Eventgen as pip module. Hope it helps.

rblake-splunk commented 4 years ago

Does this mean that some output modes are not available using the SA-Eventgen app, and some are only available using the pip module?

li-wu commented 4 years ago

Yes, the default outputMode for SA-Eventgen app is modinput and change not be changed. If you are using Eventgen as pip module, you can use other outputModes.

rblake-splunk commented 4 years ago

File output seems to work with the app.

li-wu commented 4 years ago

Yes, it might work. But the app is designed to ingest data into Splunk using modinput. If you want to generate data into file, using pip module might be more suitable.

rblake-splunk commented 4 years ago

It would be great if this was documented - I spent ages spinning my wheels trying to get syslogout working using the app.