splunk / eventgen

Splunk Event Generator: Eventgen
Apache License 2.0
380 stars 179 forks source link

scp-perf branch for scp data ingestion #341

Closed ericssontsao closed 5 years ago

ericssontsao commented 5 years ago

_refersh_access_token function is for acquiring and refreshing scp access token every 30 mins scpgen.py is a generator plugin to meet scp's request format httpevent_scp is a output plugin used for hitting scp REST endpoint

Author: Ericsson(Che-Lun) Tsao from Performance Engineering (ctsao@splunk.com)

[README] In the global section of configuration file, one has to specify client credentials(in JSON format) and auth api => client_credentials = {"client_id" : "**","client_secret" : "","grant_type" : "client_credentials"} => auth_url = https://auth.playground.scp.splunk.com/token

As for stanza section, generator, outputMode, and api url have to be specified, e.g... => generator = scpgen => outputMode = httpevent_scp => api_url = https://api.playground.scp.splunk.com/mytenant/ingest/v1beta2/events

arctan5x commented 5 years ago

Just curious why we need a separate scp gen? Can't we use existing generators?