I simplified the pipeline to the following:
input
{
beats
{
port=>5043
}
jdbc {
jdbc_driver_library => "C:\Users\mgolubov\elk\6.6.0\logstash-6.6.0\JDBC\mssql-jdbc-7.0.0.jre8.jar"
jdbc_driver_class => "com.microsoft.sqlserver.jdbc.SQLServerDriver"
jdbc_connection_string => "jdbc:sqlserver://gbwllslo015.gbl.ad.hedani.net:1433;dataBase=Reference;"
jdbc_user=> "Toolbox"
jdbc_password =>"Toolbox"
jdbc_validate_connection=> "false"
statement => "
SELECT [ID]
,[TimeZone]
,[AdjustedHour]
,[AdjustedMinute]
FROM [Reference].[dbo].[tblTimeZones]
"
type => "JobSchedule"
schedule=> "*/30 * * * * *"
tags=> "JobSchedule"
}
}
filter
{
}
output
{
exec {
command => "C:\Users\mgolubov\elk\6.6.0\logstash-6.6.0\bin\InitializeCopy.bat"
interval => 0
}
stdout {codec => rubydebug}
}
When I tried to bring up logstash, I got this in logstash-plain.log:
[2019-04-15T15:36:35,619][INFO ][logstash.runner ] Starting Logstash {"logstash.version"=>"6.6.0"}
[2019-04-15T15:36:40,770][ERROR][logstash.plugins.registry] Tried to load a plugin's code, but failed. {:exception=>#<LoadError: no such file to load -- logstash/outputs/exec>, :path=>"logstash/outputs/exec", :type=>"output", :name=>"exec"}
[2019-04-15T15:36:40,790][ERROR][logstash.agent ] Failed to execute action {:action=>LogStash::PipelineAction::Create/pipeline_id:batchfile_Test, :exception=>"LogStash::PluginLoadingError", :message=>"Couldn't find any output plugin named 'exec'. Are you sure this is correct? Trying to load the exec output plugin resulted in this error: no such file to load -- logstash/outputs/exec", :backtrace=>["C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/plugins/registry.rb:211:in lookup_pipeline_plugin'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/plugin.rb:137:in
lookup'", "org/logstash/plugins/PluginFactoryExt.java:222:in plugin'", "org/logstash/plugins/PluginFactoryExt.java:181:in
plugin'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:71:in plugin'", "(eval):17:in
'", "org/jruby/RubyKernel.java:994:in eval'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:49:in
initialize'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline.rb:90:in initialize'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline_action/create.rb:42:in
block in execute'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in block in exclusive'", "org/jruby/ext/thread/Mutex.java:148:in
synchronize'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:92:in exclusive'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/pipeline_action/create.rb:38:in
execute'", "C:/Users/mgolubov/elk/6.6.0/logstash-6.6.0/logstash-core/lib/logstash/agent.rb:317:in `block in converge_state'"]}
[2019-04-15T15:36:41,110][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
when I tried to install the plug-in, I got the following: