Hi,
I push windows eventlog using winlogbeat-dev(Version: 5.0.0-nightly2bfc1c4) to logstash v2.1.3,the logstash configuration is
input{
beats {
add_field =>["itcategory","it_security_windowslog"]
port => 5150
}
}
(no filter)
output{
elasticsearch {
hosts => "localhost"
index => "it_security_windowslog-%{+YYYY.MM.dd}"
document_type => "windowslog"
}
}
}
but sometimes ,logstash crashed, logstash.err shows :
(I have increased the logstash memory from 500MB to 2048MB,no effect)
Error: Your application used more memory than the safety cap of 2048M.
Specify -J-Xmx####m to increase it (#### = cap size in MB).
Specify -w for full OutOfMemoryError stack trace
logstash.log shows:
{:timestamp=>"2016-06-22T07:35:04.563000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Beats add_field=>{"itcategory"=>"it_security_windowslog"}, port=>5150, codec=><LogStash::Codecs::Plain charset=>"UTF-8">, host=>"0.0.0.0", ssl=>false, congestion_threshold=>5, target_field_for_codec=>"message">\n Error: unable to create new native thread", :level=>:error}
{:timestamp=>"2016-06-22T07:35:05.566000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Beats add_field=>{"itcategory"=>"it_security_windowslog"}, port=>5150, codec=><LogStash::Codecs::Plain charset=>"UTF-8">, host=>"0.0.0.0", ssl=>false, congestion_threshold=>5, target_field_for_codec=>"message">\n Error: unable to create new native thread", :level=>:error}
{:timestamp=>"2016-06-22T07:35:06.568000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Beats add_field=>{"itcategory"=>"it_security_windowslog"}, port=>5150, codec=><LogStash::Codecs::Plain charset=>"UTF-8">, host=>"0.0.0.0", ssl=>false, congestion_threshold=>5, target_field_for_codec=>"message">\n Error: unable to create new native thread", :level=>:error}
{:timestamp=>"2016-06-22T07:35:07.571000+0800", :message=>"A plugin had an unrecoverable error. Will restart this plugin.\n Plugin: <LogStash::Inputs::Beats add_field=>{"itcategory"=>"it_security_windowslog"}, port=>5150, codec=><LogStash::Codecs::Plain charset=>"UTF-8">, host=>"0.0.0.0", ssl=>false, congestion_threshold=>5, target_field_for_codec=>"message">\n Error: unable to create new native thread", :level=>:error}
anybody could help me? thanks.