Using multiple proxies¶
Website Monitoring has the ability to use separate proxy servers for each input. This can be useful when you want to test the performance of the proxy server itself. To enable this configuration, you will need to edit the conf files directly on the file-system (changing the settings via the user interface it not yet supported). Below are instructions:
Step one: define proxies¶
First, you will need to define your proxy servers in the website_monitoring.conf. Start by creating or editing the file in . Then, define a stanza for each proxy server. See the spec file for the fields that are supported. Below is an example:
[proxy_california] proxy_server=ca.proxy.acme.com proxy_port=8080 proxy_type=http [proxy_illinois] proxy_server=il.proxy.acme.com proxy_port=8080 proxy_type=http
Step two: define inputs¶
You will now need to make your inputs and define which proxy configuration the input will use. Start by creating or editing the file in . You will do this by adding a field named "configuration" set to the value of the configuration you want the input to use. Below is an example:
[web_ping://ca_proxy] interval = 15m title = SomeWebsite url = http://SomeWebsite.com configuration=proxy_california [web_ping://no_proxy] interval = 15m title = SomeWebsite url = http://SomeWebsite.net configuration=proxy_illinois
If you want, you can first make the inputs using the user interface, and then add the configuration information to the inputs afterwards.
After you done editing the file, restart Splunk to make sure the changes get recognized.
Step three: verify configuration¶
After you have restarted Splunk, verify that the configuration worked by running the following search:
sourcetype=web_ping | table url title proxy_server proxy_port proxy_user proxy_type
If the configuration worked, then you should see the correct proxy used by the inputs.