# Logstash fails to write in configured Index

**URL:** <https://discuss.elastic.co/t/logstash-fails-to-write-in-configured-index/207332>\
**Category:** Logstash\
**Created:** [November 11, 2019, 10:45am UTC](https://discuss.elastic.co/t/logstash-fails-to-write-in-configured-index/207332 "2019-11-11T10:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moritz\_Kiesewetter](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moritz_kiesewetter/32/51243_2.png) [@Moritz\_Kiesewetter](https://discuss.elastic.co/u/Moritz_Kiesewetter)\
**Post date:** [November 11, 2019, 10:45am UTC](https://discuss.elastic.co/t/logstash-fails-to-write-in-configured-index/207332/1 "2019-11-11T10:45:21Z")

</div>

Hello guys,  
i have the problem, that i want to manage my Index Names by Date.

```
output {
if [type] == "syslog" {
  elasticsearch {
    hosts => ["XX.XX.XXX.XXX:ZZZZ", "XX.XX.XXX.XXX:ZZZZ", "XX.XX.XXX.XXX:ZZZZ"]
    index => "logstash-%{+YYYY.MM.dd}"

```

But when i look into my Kibana Discover page, all the logs from logstash come like this:

```
<189>date Nov 11, 2019 @ 01:00:00.000
@timestamp Nov 11, 2019 @ 11:33:43.801
**t** @version 1
**t** _id ------blackened-------
**t** _index logstash

```

I don't know why:

1. Logstash Opens up and writes to an Index which is not existant in the config file and is not assigned as IS\_WRITE\_INDEX
2. If i made any mistakes with the config.

I appreciate all your help! Thanks guys!

---

<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, 10:45am UTC](https://discuss.elastic.co/t/logstash-fails-to-write-in-configured-index/207332/2 "2019-12-09T10:45:22Z")

</div>

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