Hello,
I installed collectd, logstash, elasticsearch and kibana.
I'd like to generate stats from collectd and send them to ec via logstash.
It dosen't work.
Here are my conf files :
logstash.conf
input {
- udp {*
- port => 25826 # 25826 matches port specified in collectd.conf*
- buffer_size => 1452 # 1452 is the default buffer size for Collectd*
- codec => collectd { } # specific Collectd codec to invoke*
- type => collectd *
- }*
}
output { - elasticsearch { *
- }*
}
collectd.conf
*# For each instance where collectd is running, we define *
# hostname proper to that instance. When metrics from
*# multiple instances are aggregated, hostname will tell *
# us were they came from.
Hostname "ilos-stats"
# Fully qualified domain name, false for our little lab
FQDNLookup false
# Plugins we are going to use with their configurations,
# if needed
LoadPlugin cpu
LoadPlugin df
-
Device "/dev/sda1"*
-
MountPoint "/"*
-
FSType "ext4"*
-
ReportReserved "true"*
LoadPlugin interface
-
Interface "eth0"*
-
IgnoreSelected false*
LoadPlugin network
-
<Server "localhost" "25826">*
-
</Server>*
LoadPlugin memory
LoadPlugin syslog
-
LogLevel info*
LoadPlugin swap
<Include "/etc/collectd/collectd.conf.d">
-
Filter ".conf"*