# Unable to send logs from NON-AWS infrastructure logstash shipper to SQS

**URL:** <https://discuss.elastic.co/t/unable-to-send-logs-from-non-aws-infrastructure-logstash-shipper-to-sqs/207374>\
**Category:** Logstash\
**Created:** [November 11, 2019, 3:04pm UTC](https://discuss.elastic.co/t/unable-to-send-logs-from-non-aws-infrastructure-logstash-shipper-to-sqs/207374 "2019-11-11T15:04:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![medikonduruv](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@medikonduruv](https://discuss.elastic.co/u/medikonduruv)\
**Post date:** [November 11, 2019, 3:04pm UTC](https://discuss.elastic.co/t/unable-to-send-logs-from-non-aws-infrastructure-logstash-shipper-to-sqs/207374/1 "2019-11-11T15:04:07Z")

</div>

Hi,  
I'm trying to implement the logstash to send logs from a NON-AWS infrastructure to SQS through SQS output plugin in shipper conf by passing the "access\_key\_id" and "secret\_access\_key", From the logs i'm able to see logstash is able to establish connection to SQS but i don't see any messages in queue. The same configuration used from AWS EC2 in same account works fine.

- 

> Tried on two different logstash versions 5.5 and 6.2, both had same issue were i could see the connection established but no logs in queue.

- 

> "access\_key\_id" and "secret\_access\_key", Passed in logstash plugin config and credentials file specified by aws\_credentials\_file.

- 

> Installed AWS CLI, Able to insert to queue using command line, but failing when running it using logstash.

- 

> Tested both with and with out proxy.

Shipper Conf:

input {  
file {  
type =\>"app\_reporting"  
path =\> ["/apps/opt/log/app\_reporting.log"]  
sincedb\_path =\>"/apps/opt/logstash/logstash-5.5.0/var/app\_reporting.sincedb"  
codec =\> json  
start\_position =\> "beginning"  
}  
}  
output {  
if [type] =~ "^app\_reporting" {  
sqs {  
access\_key\_id =\> "**"  
secret\_access\_key =\> "**"  
queue =\> "SQS-Queue-Name"  
region =\> "us-east-1"  
}  
}  
stdout { codec =\> rubydebug }  
}

AWS ClI Command (Worked after CLI installation) : aws sqs send-message --queue-url [https://sqs.us-east-1.amazonaws.com/\*\*\*\*\*\*\*\*\*/SQS-Queue-Name](https://sqs.us-east-1.amazonaws.com/ ********* /SQS-Queue-Name) --message-body "Test SQS Message insert"

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 9, 2019, 3:04pm UTC](https://discuss.elastic.co/t/unable-to-send-logs-from-non-aws-infrastructure-logstash-shipper-to-sqs/207374/2 "2019-12-09T15:04:08Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
