Not able to ship logs from Collectd to logstash


(Abhimanue Rana) #1

I have installed ELK Stack .
Now i am trying to ship logs through collectd to my ubuntu machines and Openwrt routers .
But i am unable to do so .

This is my Server Logstash Conf.

input {
udp {
port => 25826
host => "server-ip"
buffer_size => 1452
codec => collectd { }
type => collectd
}
}
output {
elasticsearch {
hosts => "server-ip:9200"
manage_template => false
index => "collectd-%{+YYYY.MM.dd}"
}
}

and here is my collectd client config.
Ubuntu Machine --
Hostname "ubuntu"
#FQDNLookup true
BaseDir "/var/lib/collectd"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db" "/etc/collectd/my_types.db"

#LoadPlugin logfile
LoadPlugin syslog
#LoadPlugin log_logstash

#

LogLevel "info"

File STDOUT

Timestamp true

PrintSeverity false

#

LogLevel info LoadPlugin network # # client setup: # Server "ff18::efc0:4a42" "25826" # SecurityLevel Encrypt # Username "user" # Password "secret" # Interface "eth0" # ResolveInterval 14400 TimeToLive 128 # # # server setup: # Listen "ff18::efc0:4a42" "25826" # # SecurityLevel Sign # AuthFile "/etc/collectd/passwd" # Interface "eth0" # MaxPacketSize 1452

Openwrt Router --
Hostname "OpenWrt"
#FQDNLookup true
BaseDir "/var/run/collectd"
Include "/etc/collectd/conf.d"
PIDFile "/var/run/collectd.pid"
#PluginDir "/usr/lib/collectd"
#TypesDB "/usr/share/collectd/types.db"
Interval 30
ReadThreads 2

LoadPlugin syslog
LogLevel info

LoadPlugin network

Server "server-ip" "25826


(system) #2

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.