Hi,
I have downloaded and unzipped logstash and tried to install it as service using nssm. Logstash gets successfully installed but when i try to start the service it immediately goes to paused state:
I have installed java and JAVA_HOME variable pointing to path where JDK is:
Following paths are used in nssm:
code in logstash.json is as follows:
> input {
> beats {
> port => 5044
> type => "log"
> }
> }
>
> output {
> elasticsearch {
> hosts => "localhost:9200"
> manage_template => false
> index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
> document_type => "%{[@metadata][type]}"
> }
> }
When i try to start Logstash directly using command prompt I get:
"Error: Could not find or load main class Files"
Logstash version: 6.4.2 Downloaded from (https://www.elastic.co/downloads/logstash)
I already have ElasticSearch and Kibana installed and running perfectly fine when I am adding logs using filebeat directly.
Any help will be highly appreciated.