logstash-plugins / logstash-integration-jdbc

Logstash Integration Plugin for JDBC, including Logstash Input and Filter Plugins
Apache License 2.0
53 stars 54 forks source link

[Docs] logstash-jdbc-static requires local_table #55

Open tbennett6421 opened 3 years ago

tbennett6421 commented 3 years ago

Brief:

The docs on elastic.co are incorrect. while the examples contains the correct information, the plugin detail does not.

Specifically under loaders, table should be updated to local_table https://www.elastic.co/guide/en/logstash/6.7/plugins-filters-jdbc_static.html#plugins-filters-jdbc_static-loaders

Relevant error messages

[ERROR] 2020-11-30 16:22:25.749 [LogStash::Runner] jdbcstatic - Invalid setting for jdbc_static filter plugin:

  filter {
    jdbc_static {
      # This setting must be a [LogStash::Filters::Jdbc::Loader]
      # The options must include a 'local_table' string
      loaders => [{"id"=>"remote-servers", "query"=>"select ip, descr from ref.local_ips order by ip", "table"=>"servers"}]
      ...
    }
  }
tbennett6421 commented 3 years ago

https://github.com/logstash-plugins/logstash-integration-jdbc/blob/master/docs/filter-jdbc_static.asciidoc