logstash-plugins / logstash-filter-memcached

Memcached Filter plugin for Logstash
Apache License 2.0
4 stars 11 forks source link

Connection to memcached via socket #26

Open artemNN opened 4 years ago

artemNN commented 4 years ago

Need support connection to memcached via socket in filter. Socket connection is more powerful than TCP and more convenient for single-host installation

leandrojmp commented 3 years ago

I just needed the same feature and saw that it is already supported.

The memcached filter uses the Dalli gem, which supports connecting to memcached using a unix socket, as you can see in the client.rb file.

Just tested and was able to use both set and get into a memcached using unix sockets, just need to set the hosts option to point to the socket and make sure that the user running logstash has permissions to write/read on the socket.