# AWS ElasticSearch can' t accept nginx logs from logstash

**URL:** <https://discuss.elastic.co/t/aws-elasticsearch-can-t-accept-nginx-logs-from-logstash/151868>\
**Category:** Elasticsearch\
**Created:** [October 10, 2018, 2:45pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-can-t-accept-nginx-logs-from-logstash/151868 "2018-10-10T14:45:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miodrag\_Lazarevic](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Miodrag\_Lazarevic](https://discuss.elastic.co/u/Miodrag_Lazarevic)\
**Post date:** [October 10, 2018, 2:45pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-can-t-accept-nginx-logs-from-logstash/151868/1 "2018-10-10T14:45:34Z")

</div>

I' ve configured Logstash to collect my nginx productions logs and send them to Amazon ElasticSearch.  
When i tested previously with apache logs, they were successfuly sent and visualized with Kibana,  
but now i can't send my nginx production logs.  
I've searched in /var/log/logstash logs and there were no errors, connection is successfully established.

Anyway, here is my conf file, if anyone has an idea, i would be very greatful.

```
input {
         file {
                path => "/var/log/nginx/access.log"
        }
}

output {
         amazon_es {
                hosts => ["my-domain.us-east-1.es.amazonaws.com"]
                region => "us-east-1"
                aws_access_key_id => 'ACCESS_KEY'
                aws_secret_access_key => 'SECRET_KEY'
                index => "nginx-%{+YYYY.MM.dd}"
        }
}
```

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [October 10, 2018, 3:05pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-can-t-accept-nginx-logs-from-logstash/151868/2 "2018-10-10T15:05:50Z")

</div>

You should probably ask the authors of this plugin.  
I mean on AWS forums.

BTW did you look at [https://www.elastic.co/cloud](https://www.elastic.co/cloud) and [https://aws.amazon.com/marketplace/pp/B01N6YCISK](https://aws.amazon.com/marketplace/pp/B01N6YCISK) ?

Cloud by elastic is one way to have access to all features, all managed by us. Think about what is there yet like Security, Monitoring, Reporting, SQL and what is coming like Canvas...

---

<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:** [November 7, 2018, 3:05pm UTC](https://discuss.elastic.co/t/aws-elasticsearch-can-t-accept-nginx-logs-from-logstash/151868/3 "2018-11-07T15:05:53Z")

</div>

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