Hi,
I am using version since logstash 1.5 for windows collect logs.
Everything was very good
but problems occurred after the 2 version
I use ELK + Nxlog
My config:
nxlog:
Module im_msvistalog
Module om_tcp
Host 127.0.0.1
Port 514
Exec $EventReceivedTime = integer($EventReceivedTime) / 1000000;
to_json();
Logstash.conf:
input {
tcp {
port => 514
type => "eventlog"
codec => json
}
}
output {
elasticsearch {
hosts => ["127.0.0.1:9200"]
}
}
i tried : output {elasticsearch_java {network_host => "127.0.0.1:9200"}}
Logstash Service run: logstash -f Logstash.conf
i tried: logstash agent -f Logstash.conf
ConfigTest:
C:\Elk\logstash\bin>logstash -f C:\Elk\logstash\conf\logstash.conf --configtest
io/console not supported; tty will not be manipulated
[31mThe given configuration is invalid. Reason: Couldn't find any output plugin named 'elasticsearch'. Are you sure this is correct? Trying to load the elasticsearch output plugin resulted in this error: cannot load Java class org.apache.http.?mpl.client.StandardHttpRequestRetryHandler {:level=>:fatal} [0m
It was working in older versions
Not work now
Where am I doing wrong? Please help.
Thanks