Hi all,
I try to use this config below to start logstash:
input {
snmp {
hosts => [{host => "udp:192.27.18.351/5000" version => "3"}]
security_name => "admin"
auth_protocol => "sha2"
auth_pass => "Local_1234"
priv_protocol => "aes"
priv_pass => "Localme_1234"
security_level => "authPriv"
get => ["1.3.6"]
}
}
However it returns error when start:
[2019-12-02T00:20:06,379][ERROR][logstash.pipeline ] Error registering plugin {:pipeline_id=>"main", :plugin=>"<LogStash::Inputs::Snmp auth_protocol=>\"sha2\"...
:error=>"uninitialized constant Java::OrgSnmp4jSecurity::AuthSHA2::ID"
Failed to execute action {:id=>:main, :action_type=>LogStash::ConvergeResult::FailedAction, :message=>"Could not execute action: PipelineAction::Create<main>, action_result: false", :backtrace=>nil}
[2019-12-02T00:20:07,320][INFO ][logstash.agent ] Successfully started Logstash API endpoint {:port=>9600}
[2019-12-02T00:20:12,383][INFO ][logstash.runner ] Logstash shut down.
Anyone can help me on setup Logstash with snmp version 3?
Actually, I have Huawei server(A) which was config to public data through snmp v3 to another server (B). I would like to use snmp trap with logstash on server B to collect data, however it seems no snmp v3 configuration for snmp trap plugin.