logstash-plugins / logstash-input-beats

Apache License 2.0
86 stars 81 forks source link

Error when starting logstash #135

Open Sunde93 opened 8 years ago

Sunde93 commented 8 years ago

Hello,

I tried to install filebeat to send my logs to logstash but the beats plugins for logstash is on error when i strat logstash :

Couldn't find any input plugin named 'beats'. Are you sure this is correct? Trying to load the beats input plugin resulted in this error: no such file to load -- logstash/inputs/beats"}

I don't understand why i'm getting this issue, i just installed this plugin following the official guide..

jsvd commented 8 years ago

which version of logstash is this? are you using the tgz, zip, dep or rpm? which operating system?

Sunde93 commented 8 years ago

Logstash 2.3.4 installed by the tgz on CentOS 6.5

jsvd commented 8 years ago

can you also post the config? thanks

Sunde93 commented 8 years ago

Here :

input { beats { port => 5044 } }

output { elasticsearch { hosts => ":9200" manage_template => false index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}" document_type => "%{[@metadata][type]}" } }

Thanks for ur time.

jsvd commented 8 years ago

This is strange, works well for me:

/tmp % tar -zxf ~/Downloads/logstash-2.3.4.tar.gz
/tmp % cd logstash-2.3.4
/tmp/logstash-2.3.4 % cat config
input {
  beats {
    port => 5044
  }
}

output {
  elasticsearch {
    hosts => "localhost:9200"
      manage_template => false
      index => "%{[@metadata][beat]}-%{+YYYY.MM.dd}"
      document_type => "%{[@metadata][type]}"
  }
}
/tmp/logstash-2.3.4 % bin/logstash -f config
Settings: Default pipeline workers: 4
Pipeline main started

can you try unpacking the tgz again?

Sunde93 commented 8 years ago

Stange but it's working now, after unpacking the tgz again. Perhaps, it was because i installed the beats plugin while it was already on the tgz.. Dunno.

Thanks u :)

Sunde93 commented 8 years ago

Hmm, i got a new isssue :

When i start logstash with service logstash start, the issue is still here : "The error reported is: \n Couldn't find any input plugin named 'beats'. Are you sure this is correct? Trying to load the beats input plugin resulted in this error: no such file to load -- logstash/inputs/beats"} ^C "

But when i execute this, it's work... : $ ./bin/logstash -f conf/20-beats.conf Settings: Default pipeline workers: 4 Pipeline main started

Why ?