Logstash/ Synchronize Postgres to EL

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://"
     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}"


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