title: Logstash not performing task
body: <p>I want some data in a postgresql database to be indexed to an elasticsearch index. To do so I decided to use Logstash.
  I installed Logstash and JDBC.</p>
  <p>I perform the following config:</p>
  <pre><code>    jdbc {
          jdbc_connection_string =&gt; &quot;jdbc:postgresql://localhost:5432/product_data&quot;
          jdbc_user =&gt; &quot;postgres&quot;
          jdbc_password =&gt; &quot;&lt;my_password&gt;&quot;
          jdbc_driver_class =&gt; &quot;org.postgresql.Driver&quot;
          schedule =&gt; &quot;* * * * *&quot; # cronjob schedule format (see &quot;Helpful Links&quot;)
          statement =&gt; &quot;SELECT * FROM public.vendor_product&quot; # the PG command for retrieving the documents IMPORTANT: no semicolon!
          jdbc_paging_enabled =&gt; &quot;true&quot;
          jdbc_page_size =&gt; &quot;300&quot;
      }
  }
  
  output {
      # used to output the values in the terminal (DEBUGGING)
      # once everything is working, comment out this line
      stdout { codec =&gt; &quot;json&quot; }
      # used to output the values into elasticsearch
      elasticsearch {
          hosts =&gt; [&quot;localhost:9200&quot;]
          index =&gt; &quot;vendorproduct&quot;
          document_id =&gt; &quot;document_%id&quot;
          doc_as_upsert =&gt; true # upserts documents (e.g. if the document does not exist, creates a new record)
      }
  }
  </code></pre>
  <p>As a test I sheduled this every minute. To run my test I did:
  <code>logstash.bat -f logstash_postgre_ES.conf --debug</code></p>
  <p>On my console I get:</p>
  <pre><code>...
  [2022-04-04T16:10:07,065][DEBUG][logstash.agent           ] Starting puma
  [2022-04-04T16:10:07,081][DEBUG][logstash.agent           ] Trying to start WebServer {:port=&gt;9600}
  [2022-04-04T16:10:07,190][DEBUG][logstash.api.service     ] [api-service] start
  [2022-04-04T16:10:07,834][INFO ][logstash.agent           ] Successfully started Logstash API endpoint {:port=&gt;9600}
  C:/Users/Admin/Desktop/Elastic_search/logstash-6.8.23/vendor/bundle/jruby/2.5.0/gems/rufus-scheduler-3.0.9/lib/rufus/scheduler/cronline.rb:77: warning: constant ::Fixnum is deprecated
  [2022-04-04T16:10:09,577][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
  [2022-04-04T16:10:09,948][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=&gt;&quot;ParNew&quot;}
  [2022-04-04T16:10:09,951][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=&gt;&quot;ConcurrentMarkSweep&quot;}
  [2022-04-04T16:10:11,717][DEBUG][logstash.pipeline        ] Pushing flush onto pipeline {:pipeline_id=&gt;&quot;main&quot;, :thread=&gt;&quot;#&lt;Thread:0xaf6cee2 sleep&gt;&quot;}
  [2022-04-04T16:10:14,595][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
  [2022-04-04T16:10:14,960][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=&gt;&quot;ParNew&quot;}
  [2022-04-04T16:10:14,961][DEBUG][logstash.instrument.periodicpoller.jvm] collector name {:name=&gt;&quot;ConcurrentMarkSweep&quot;}
  [2022-04-04T16:10:16,742][DEBUG][logstash.pipeline        ] Pushing flush onto pipeline {:pipeline_id=&gt;&quot;main&quot;, :thread=&gt;&quot;#&lt;Thread:0xaf6cee2 sleep&gt;&quot;}
  [2022-04-04T16:10:19,604][DEBUG][logstash.instrument.periodicpoller.cgroup] One or more required cgroup files or directories not found: /proc/self/cgroup, /sys/fs/cgroup/cpuacct, /sys/fs/cgroup/cpu
  </code></pre>
  <p>The last part gets printed every 2 seconds or so, for me it seems like its waiting to start though I let this run several minutes and it kept printing the same lines. In Kibana I check if my index got created but that wasn't the case.</p>
  <p>The logstash-plain.log gives the same output as the console.
  Why is there no index created and filled with the postgresqldata?</p>