All Apps and Add-ons

Does the AWS SQS Poller app support a proxy server option like the Splunk Add-on for AWS?

badrinath_itrs
Communicator

Hi All,

Does the AWS SQS Poller app support Proxy server option like SPLUNK Add-on for AWS?
The SQS Poller data input does not provide an option to configure proxy server, but is there a way we can change it in the background and run it which will connect to proxy server and then to AWS API?

Initially we were going with Add-on for AWS, but looks like the add-on cannot consume messages from SQS if it is not coming from Cloudtrail or Config -> SNS --> SQS.

Regards,
Badri

0 Karma
1 Solution

bmacias84
Champion

@badrinath_it,

As it currently been written no, but it relatively simple enhancement. This App was written for an internal process at my company and at this time I do not plan on adding a configurable proxy setting. Though I am scheduled to do some maintenance on the module in the next coming months, feel free to add an enhancement request @ https://github.com/httpstergeek/splunk-sqs/issues. If you need this now run npm install proxy-agent --save in the $APP$/bin/app_dr @ line 134 in sqs_poller.js:

var proxy = require('proxy-agent');

aws.config.update({
  httpOptions: { agent: proxy('$YOUR_PROXY$') }
});

You might have to play around a bit or look at the proxy-agent documentation. Probably not what you wanted to here. Its open on git to be forked. Cheers

View solution in original post

bmacias84
Champion

@badrinath_it,

As it currently been written no, but it relatively simple enhancement. This App was written for an internal process at my company and at this time I do not plan on adding a configurable proxy setting. Though I am scheduled to do some maintenance on the module in the next coming months, feel free to add an enhancement request @ https://github.com/httpstergeek/splunk-sqs/issues. If you need this now run npm install proxy-agent --save in the $APP$/bin/app_dr @ line 134 in sqs_poller.js:

var proxy = require('proxy-agent');

aws.config.update({
  httpOptions: { agent: proxy('$YOUR_PROXY$') }
});

You might have to play around a bit or look at the proxy-agent documentation. Probably not what you wanted to here. Its open on git to be forked. Cheers

badrinath_dash
Explorer

Thank you !! Let modify the code and see if that works for us as well.

I have also added this request as an enhancement in github.

0 Karma

badrinath_itrs
Communicator

@bmacias84,

Thank you !! modified the code as per your suggestion and guideline provided in below AWS blog.

https://blogs.aws.amazon.com/javascript/post/Tx3CV0OSVN2TBPS/Using-the-AWS-SDK-for-JavaScript-from-B...

Solved the Problem .

Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...

Customer success is front and center at .conf25

Hi Splunkers, If you are not able to be at .conf25 in person, you can still learn about all the latest news ...