You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 17, 2019. It is now read-only.
Copy file name to clipboardExpand all lines: lib/logstash/outputs/jdbc.rb
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -102,6 +102,14 @@ def register
102
102
@logger.warn("JDBC - Flush size is set to > 1000")
103
103
end
104
104
105
+
if@statement.length < 1
106
+
@logger.error("JDBC - No statement provided. Configuration error.")
107
+
end
108
+
109
+
if(!@unsafe_statementand@statement.length < 2)
110
+
@logger.error("JDBC - Statement has no parameters. No events will be inserted into SQL as you're not passing any event data. Likely configuration error.")
0 commit comments