A plugin for artillery.io that records stats and reports into HTTP Event Collector in Splunk
- Node.js v4 or later.
- Splunk Enterprise 6.3.0 or later, or Splunk Cloud.
- An HTTP Event Collector token from your Splunk Enterprise server.
You need to setup HTTP event collector in splunk. instructions
- Install
$ npm install --save artillery-plugin-splunk
- Add artillery-plugin-splunk to config
config:
target: "https://staging.example.com"
plugins:
splunk:
url: 'XXX', # url to splunk cloud in this format https://input-prd-p-XXXXXXX.cloud.splunk.com:8088/services/collector)
token: 'XXX' # token for HEC
index: 'XXX' (optional) # splunk index
- Clone repo
$ git clone [email protected]:singerxt/artillery-plugin-splunk.git
- Link package
$ npm link artillery-plugin-splunk
- Create artillery script
config:
target: "https://staging.example.com"
plugins:
splunk:
url: 'XXX',
token: 'XXX'
phases:
- duration: 300
arrivalRate: 50
- run it
$ DEBUG=plugin:splunk artillery run script.yml