# Not able to ship logs from Collectd to logstash

**URL:** <https://discuss.elastic.co/t/not-able-to-ship-logs-from-collectd-to-logstash/148582>\
**Category:** Logstash\
**Created:** [September 14, 2018, 8:20am UTC](https://discuss.elastic.co/t/not-able-to-ship-logs-from-collectd-to-logstash/148582 "2018-09-14T08:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abhimanue\_Rana](https://avatars.discourse-cdn.com/v4/letter/a/f14d63/32.png) [@Abhimanue\_Rana](https://discuss.elastic.co/u/Abhimanue_Rana)\
**Post date:** [September 14, 2018, 8:20am UTC](https://discuss.elastic.co/t/not-able-to-ship-logs-from-collectd-to-logstash/148582/1 "2018-09-14T08:20:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 12, 2018, 8:20am UTC](https://discuss.elastic.co/t/not-able-to-ship-logs-from-collectd-to-logstash/148582/2 "2018-10-12T08:20:32Z")

</div>

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