# Logstash is not sending the logfiles to Elasticsearch

**URL:** <https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617>\
**Category:** Logstash\
**Created:** [June 25, 2020, 8:03am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617 "2020-06-25T08:03:48Z")\
**Posts on this page:** 7\
**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:** [June 25, 2020, 8:03am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/1 "2020-06-25T08:03:48Z")

</div>

Hi All,

I'm new to ELK , I tried to send the log files from Logstash to Elasticsearch from my loacl windows10 machine, though the service started successfully i don't see the index /logs in Kibana.

Logstash / Elasticsearch version : 7.8.0

My Logstash conf file  
input {  
file {  
path =\> "C:\ELK\test.log"  
type =\> "fe"  
start\_position =\> "beginning"  
}  
}

output {  
stdout { codec =\> rubydebug }  
elasticsearch {  
hosts =\> "localhost:9200"  
index =\> "relog"  
}  
}

---

<div class="post-metadata">

**Author:** ![Emanuil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/emanuil/32/36783_2.png) [@Emanuil](https://discuss.elastic.co/u/Emanuil)\
**Post date:** [June 25, 2020, 10:40am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/2 "2020-06-25T10:40:28Z")

</div>

> i don't see the index /logs

You're configuring the name `relog`

> index =\> "relog"

I assume that was just a typo in your post (but you should check for `relog` in Kibana in case you haven't already).

I assume you do have Elasticsearch running locally on port 9200. If you haven't checked, try clicking this link: [http://localhost:9200](http://localhost:9200) . You should see some JSON with version information being returned. Then, try this link: [http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices) . This is a list of all indices. Does "relog" exist?

If this all goes okay, does [http://localhost:9200/relog/\_search](http://localhost:9200/relog/_search) return any documents?

---

<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:** [June 25, 2020, 10:48am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/3 "2020-06-25T10:48:54Z")

</div>

Hi Emanuil,

thanks for your response.

all the services are up & running, i tried [http://localhost:9200/\_cat/indices](http://localhost:9200/_cat/indices)

i don't see relog index. it seems logstash is not reading the file

---

<div class="post-metadata">

**Author:** ![Badger](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/badger/32/25190_2.png) [@Badger](https://discuss.elastic.co/u/Badger)\
**Post date:** [June 25, 2020, 4:03pm UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/4 "2020-06-25T16:03:02Z")

</div>

> [@Magesh](#):
>
> path =\> "C:\ELK\test.log"

Do not use backslash in the path option of a file filter, they are treated as escapes. Use forward slash.

---

<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:** [June 26, 2020, 2:57am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/5 "2020-06-26T02:57:18Z")

</div>

Thanks it worked

---

<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:** [June 26, 2020, 2:58am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/6 "2020-06-26T02:58:06Z")

</div>

Thanks its working

---

<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:** [July 24, 2020, 2:58am UTC](https://discuss.elastic.co/t/logstash-is-not-sending-the-logfiles-to-elasticsearch/238617/7 "2020-07-24T02:58:14Z")

</div>

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