{"id":13932989,"url":"https://github.com/logstash-plugins/logstash-input-jdbc","last_synced_at":"2026-02-21T06:37:57.533Z","repository":{"id":27899949,"uuid":"31391612","full_name":"logstash-plugins/logstash-input-jdbc","owner":"logstash-plugins","description":"Logstash Plugin for JDBC Inputs","archived":false,"fork":false,"pushed_at":"2021-11-08T10:08:23.000Z","size":291,"stargazers_count":449,"open_issues_count":137,"forks_count":187,"subscribers_count":35,"default_branch":"main","last_synced_at":"2024-11-26T23:32:55.975Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/logstash-plugins.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-02-26T22:12:38.000Z","updated_at":"2024-04-17T05:02:14.000Z","dependencies_parsed_at":"2022-09-04T08:51:10.521Z","dependency_job_id":null,"html_url":"https://github.com/logstash-plugins/logstash-input-jdbc","commit_stats":null,"previous_names":[],"tags_count":46,"template":false,"template_full_name":null,"purl":"pkg:github/logstash-plugins/logstash-input-jdbc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logstash-plugins%2Flogstash-input-jdbc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logstash-plugins%2Flogstash-input-jdbc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logstash-plugins%2Flogstash-input-jdbc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logstash-plugins%2Flogstash-input-jdbc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/logstash-plugins","download_url":"https://codeload.github.com/logstash-plugins/logstash-input-jdbc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/logstash-plugins%2Flogstash-input-jdbc/sbom","scorecard":{"id":597452,"data":{"date":"2025-08-11","repo":{"name":"github.com/logstash-plugins/logstash-input-jdbc","commit":"878a73eb67b68366fac74fcc65e9cadd6cf44766"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.4,"checks":[{"name":"Code-Review","score":5,"reason":"Found 13/22 approved changesets -- score normalized to 5","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: ci/unit/Dockerfile:2","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 23 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-20T23:30:18.113Z","repository_id":27899949,"created_at":"2025-08-20T23:30:18.114Z","updated_at":"2025-08-20T23:30:18.114Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29675505,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-21T06:23:40.028Z","status":"ssl_error","status_checked_at":"2026-02-21T06:23:39.222Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-07T21:01:26.567Z","updated_at":"2026-02-21T06:37:57.517Z","avatar_url":"https://github.com/logstash-plugins.png","language":"Ruby","funding_links":[],"categories":["Ruby"],"sub_categories":[],"readme":"# Logstash JDBC Input Plugin\n\nThis is a plugin for [Logstash](https://github.com/elastic/logstash).\n\nIt is fully free and fully open source. The license is Apache 2.0, meaning you are pretty much free to use it however you want in whatever way.\n\n\n## JDBC Input Plugin Has Moved\n\nThis JDBC Input Plugin is now a part of the [JDBC Integration Plugin][integration-source];\nthis project remains open for backports of fixes from that project to the 5.x series where possible, but issues should first be filed on the [integration plugin][integration-issues].\n\n[integration-source]: https://github.com/logstash-plugins/logstash-integration-jdbc\n[integration-issues]: https://github.com/logstash-plugins/logstash-integration-jdbc/issues/\n\n\n## Documentation\n\nLogstash provides infrastructure to automatically generate documentation for this plugin. We use the asciidoc format to write documentation so any comments in the source code will be first converted into asciidoc and then into html. All plugin documentation are placed under one [central location](http://www.elastic.co/guide/en/logstash/current/).\n\n- For formatting code or config example, you can use the asciidoc `[source,ruby]` directive\n- For more asciidoc formatting tips, see the excellent reference here https://github.com/elastic/docs#asciidoc-guide\n\n## Need Help?\n\nNeed help? Try #logstash on freenode IRC or the https://discuss.elastic.co/c/logstash discussion forum.\n\n## Developing\n\n### 1. Plugin Developement and Testing\n\n#### Code\n- To get started, you'll need JRuby with the Bundler gem installed.\n\n- Create a new plugin or clone and existing from the GitHub [logstash-plugins](https://github.com/logstash-plugins) organization.\n\n- Install dependencies\n```sh\nbundle install\n```\n\n#### Test\n\n```sh\nbundle exec rspec\n```\n\nThe Logstash code required to run the tests/specs is specified in the `Gemfile` by the line similar to:\n```ruby\ngem \"logstash\", :github =\u003e \"elasticsearch/logstash\", :branch =\u003e \"1.5\"\n```\nTo test against another version or a local Logstash, edit the `Gemfile` to specify an alternative location, for example:\n```ruby\ngem \"logstash\", :github =\u003e \"elasticsearch/logstash\", :ref =\u003e \"master\"\n```\n```ruby\ngem \"logstash\", :path =\u003e \"/your/local/logstash\"\n```\n\nThen update your dependencies and run your tests:\n\n```sh\nbundle install\nbundle exec rspec\n```\n\n### 2. Running your unpublished Plugin in Logstash\n\n#### 2.1 Run in a local Logstash clone\n\n- Edit Logstash `tools/Gemfile` and add the local plugin path, for example:\n```ruby\ngem \"logstash-input-jdbc\", :path =\u003e \"/your/local/logstash-input-jdbc\"\n```\n- Update Logstash dependencies\n```sh\nrake vendor:gems\n```\n- Run Logstash with your plugin\n```sh\nbin/logstash -e 'input {jdbc {..}}'\n```\nAt this point any modifications to the plugin code will be applied to this local Logstash setup. After modifying the plugin, simply rerun Logstash.\n\n#### 2.2 Run in an installed Logstash\n\n- Build your plugin gem\n```sh\ngem build logstash-input-jdbc.gemspec\n```\n- Install the plugin from the Logstash home\n```sh\nbin/plugin install /your/local/plugin/logstash-input-jdbc.gem\n```\n- Start Logstash and proceed to test the plugin\n\n## Example configuration\n\nReading data from MySQL:  \n\n\tinput {\n\t  jdbc {\n\t    jdbc_driver_library =\u003e \"/path/to/mysql-connector-java-5.1.33-bin.jar\"\n\t    jdbc_driver_class =\u003e \"com.mysql.jdbc.Driver\"\n\t    jdbc_connection_string =\u003e \"jdbc:mysql://host:port/database\"\n\t    jdbc_user =\u003e \"user\"\n\t    jdbc_password =\u003e \"password\"\n      # or jdbc_password_filepath =\u003e \"/path/to/my/password_file\"\n\t    statement =\u003e \"SELECT ...\"\n\t    jdbc_paging_enabled =\u003e \"true\"\n\t    jdbc_page_size =\u003e \"50000\"\n\t  }\n\t}\n\n\tfilter {\n\t  [some filters here]\n\t}\n\n\toutput {\n\t  stdout {\n\t    codec =\u003e rubydebug\n\t  }\n\t  elasticsearch_http {\n\t    host =\u003e \"host\"\n\t    index =\u003e \"myindex\"\n\t  }\n\t}\n\n## Contributing\n\nAll contributions are welcome: ideas, patches, documentation, bug reports, complaints, and even something you drew up on a napkin.\n\nProgramming is not a required skill. Whatever you've seen about open source and maintainers or community members  saying \"send patches or die\" - you will not see that here.\n\nIt is more important to me that you are able to contribute.\n\nFor more information about contributing, see the [CONTRIBUTING](https://github.com/elastic/logstash/blob/master/CONTRIBUTING.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogstash-plugins%2Flogstash-input-jdbc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flogstash-plugins%2Flogstash-input-jdbc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flogstash-plugins%2Flogstash-input-jdbc/lists"}