# Logstash won't create new index patterns again

**URL:** <https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224>\
**Category:** Elasticsearch\
**Created:** [June 2, 2022, 12:26pm UTC](https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224 "2022-06-02T12:26:47Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tasdiq\_Shaikh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tasdiq_shaikh/32/76982_2.png) [@Tasdiq\_Shaikh](https://discuss.elastic.co/u/Tasdiq_Shaikh)\
**Post date:** [June 2, 2022, 12:26pm UTC](https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224/1 "2022-06-02T12:26:47Z")

</div>

Previously, I have connected my logstash with PostgreSQL and Elasticsearch and it also created new index pattern, but it wouldnt load data properly so I deleted my index and restarted logstash to create a new index pattern and that's when problems started. Now I am unable to create a new index pattern.  
My logstash.conf file is present in logstash binary folder which looks like this

```auto
input {
  jdbc {
    clean_run => true
     jdbc_driver_library => "C:\Users\Hp\Downloads\postgresql-42.3.6.jar"
     jdbc_driver_class => "org.postgresql.Driver"
     jdbc_connection_string => "jdbc:postgresql://localhost:5432/logstas"
     jdbc_user => "postgres"
     jdbc_password => "123456"
     schedule => "* * * * *"
     statement=> "SELECT * FROM logstastable WHERE id > :sql_last_value"
     use_column_value => true
     tracking_column => "id"
  }
}
output {
 elasticsearch {
  hosts => ["localhost:9200"]
  index => "logstash_index"
 }
 stdout{
   codec => rubydebug
 }
}

```

---

<div class="post-metadata">

**Author:** ![aaron-nimocks](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron-nimocks/32/73965_2.png) [@aaron-nimocks](https://discuss.elastic.co/u/aaron-nimocks)\
**Post date:** [June 2, 2022, 1:45pm UTC](https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224/2 "2022-06-02T13:45:46Z")

</div>

You can [create the index pattern](https://www.elastic.co/guide/en/kibana/7.17/index-patterns.html) in Kibana.

---

<div class="post-metadata">

**Author:** ![Tasdiq\_Shaikh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tasdiq_shaikh/32/76982_2.png) [@Tasdiq\_Shaikh](https://discuss.elastic.co/u/Tasdiq_Shaikh)\
**Post date:** [June 3, 2022, 7:00am UTC](https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224/3 "2022-06-03T07:00:07Z")

</div>

Yes, but when creating new index pattern from kibana it should give me option to create an index pattern whith `logstash_index` name. just as it happened for the first time when I connected and ran logstash.

---

<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 1, 2022, 7:00am UTC](https://discuss.elastic.co/t/logstash-wont-create-new-index-patterns-again/306224/4 "2022-07-01T07:00:21Z")

</div>

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