# Logstash/ Synchronize Postgres to EL

**URL:** <https://discuss.elastic.co/t/logstash-synchronize-postgres-to-el/202927>\
**Category:** Logstash\
**Created:** [October 10, 2019, 1:11am UTC](https://discuss.elastic.co/t/logstash-synchronize-postgres-to-el/202927 "2019-10-10T01:11:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbyamauchi](https://avatars.discourse-cdn.com/v4/letter/s/22d042/32.png) [@sbyamauchi](https://discuss.elastic.co/u/sbyamauchi)\
**Post date:** [October 10, 2019, 1:11am UTC](https://discuss.elastic.co/t/logstash-synchronize-postgres-to-el/202927/1 "2019-10-10T01:11:12Z")

</div>

Hi,I try to synchronize postgres to elastic.  
But I receive the error below and not update index data.  
Is it necessary to make multiple pipelines or something?

`Logstash could not be started because there is already another instance using the configured data directory. If you wish to run multiple instances, you must change the "path.data" setting.`

my conf is like this,

```
input {
   jdbc {
     jdbc_driver_library => "/usr/share/java/postgresql-42.2.8.jar"
     jdbc_driver_class => "org.postgresql.Driver"
     jdbc_connection_string => "jdbc:postgresql://192.168.9.9/data"
     jdbc_user => "user"
     jdbc_password => "password"
     statement => "select * from database where collect_time>:sql_last_value"
     schedule => "* /10 * * * * *"
   }
}

output {
  elasticsearch {
    hosts => "localhost:9200"
    index => "data"
    document_type => "router"
    document_id=> "log-20%{+YY-MM-dd-hh-mm-ss}"
  }
}

```

regards,

---

<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, 2019, 1:11am UTC](https://discuss.elastic.co/t/logstash-synchronize-postgres-to-el/202927/2 "2019-11-07T01:11:17Z")

</div>

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