Send result file to Splunk using splunkforwarder

Natarajan Santhosh
2 min readDec 13, 2019

--

This is article i’m using a free splunk trial and jmeter. I’m using OSX. Please see below links splunk forwarder and jmeter install steps for other OS.

Signup for Splunk, if you don’t have admin access to your company’s splunk installation (choose the cloud trial)

Download Jmeter(open source) and setup a jmeter load test

use this example if don’t happen to have one handy

To set up the Universal Forwarder:

Download & Install the Splunk universal forwarder.

Splunk Downloads web page

Installation Instructions

Login to your splunk account and select on App tab and Download your customized universal forwarder credentials package. splunk executable should be under the bin directory of your SplunkForwarder folder

# to your splunkforwarded installation folder could be different
$ cd /Applications/SplunkForwarder/bin
$ ./splunk install app \Users\johndoe\Downloads\splunkclouduf.spl -auth admin:changeme$ ./splunk restart

Configure your universal forwarders to send data to the Splunk platform.

$ cd /Applications/SplunkForwarder/bin# to see list of files/directory monitored by splunk forwarder
$ ./splunk list monitor
# to add a file to be monitored
$ ./splunk add monitor ~/Performance/scenario_1.jtl

Login to splunk account and click on Search app

Splunk cloud search

Search for sourceType `sourcetype=”jtl”`

search for jmeter jtl file

Run your jmeter test

Run your jmeter load test script (please make sure that output jtl file path &name matches to file that was added in our monitor step above)


$ ~/Downloads/apache-jmeter-5.1.1/bin/jmeter -n -t scenario_1.jmx -l scenario_1.jtl
results from jmeter test

--

--

No responses yet