Quantcast
Channel: Questions in topic: "splunk-enterprise"
Viewing all articles
Browse latest Browse all 47296

JavaScript SDK throws timeout when connecting. Application on AWS

$
0
0
Hi everyone, I am currently trying to retrieve some information from an enterprise splunk from a Node.js application hosted on AWS EC2. Currently, I can successfully retrieve information from our enterprise github. However, I get the following when trying to connect: { response: { headers: {}, statusCode: 600 }, status: 600, data: undefined, error: { Error: connect ETIMEDOUT 10.200.72.114:8089 at Object.exports._errnoException (util.js:1020:11) at exports._exceptionWithHostPort (util.js:1043:20) at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1090:14) code: 'ETIMEDOUT', errno: 'ETIMEDOUT', syscall: 'connect', address: '10.200.72.114', port: 8089 } } The code I'm using to connect: const service = new splunkjs.Service({ username: secrets.splunkUsername, password: secrets.splunkPassword, scheme: "https", host: "splunk.company.com", port: "8089", version: "6.5.3" }); and then gets the timeout at this code: service.oneshotSearch( searchQuery, searchParams, (error, result) => { console.log(error); if (error) reject("error: Splunk search failed"); else resolve(result.rows); } ); any ideas what could be causing this? thanks

Viewing all articles
Browse latest Browse all 47296

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>