# How to check if logstash is sending the logs to Elasticsearch

**URL:** <https://discuss.elastic.co/t/how-to-check-if-logstash-is-sending-the-logs-to-elasticsearch/208444>\
**Category:** Logstash\
**Created:** [November 19, 2019, 7:03am UTC](https://discuss.elastic.co/t/how-to-check-if-logstash-is-sending-the-logs-to-elasticsearch/208444 "2019-11-19T07:03:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Magesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magesh/32/57923_2.png) [@Magesh](https://discuss.elastic.co/u/Magesh)\
**Post date:** [November 19, 2019, 7:03am UTC](https://discuss.elastic.co/t/how-to-check-if-logstash-is-sending-the-logs-to-elasticsearch/208444/1 "2019-11-19T07:03:11Z")

</div>

Hi,  
could you please let us know How to check if logstash is sending the logs to Elasticsearch. logstash,elasticsearch,kibana has been started without any issues.however i'm unable to view the logs/indexes in Kibana.

Please find below my logstash config file

input {  
file {  
path =\> "\<\>"  
type =\> "fe"  
start\_position =\> "beginning"

}  
}

output {  
elasticsearch {  
hosts =\> ["[http://localhost:9200](http://localhost:9200)"]  
index =\> "relog"

}  
stdout { codec =\> rubydebug }  
}

---

<div class="post-metadata">

**Author:** ![Quade](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/quade/32/54746_2.png) [@Quade](https://discuss.elastic.co/u/Quade)\
**Post date:** [November 26, 2019, 8:44pm UTC](https://discuss.elastic.co/t/how-to-check-if-logstash-is-sending-the-logs-to-elasticsearch/208444/2 "2019-11-26T20:44:12Z")

</div>

Do any of the logs scroll by on the console (due to your standard out "stdout" line)?

If no, adjust the path to add a wildcard and file extension ("\*.csv" below) to the input section. This will watch your directory for any CSV files that are place there and ingest them.

If yes, try adding your username and password to the output section. I tweaked your host format too.

```
input {
    file {
        path => "/fake-path/.*csv"
        type => "fe"
        start_position => "beginning"
    }
}

output {
    stdout { codec => rubydebug }
    elasticsearch {
        hosts => "localhost:9200"
        user => "username"
        password => "password"
        index => "relog"
    }
}
```

---

<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 24, 2019, 8:44pm UTC](https://discuss.elastic.co/t/how-to-check-if-logstash-is-sending-the-logs-to-elasticsearch/208444/3 "2019-12-24T20:44:28Z")

</div>

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