# Steps to configure and use memcached in logstash. Can you please share with me the steps

**URL:** <https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727>\
**Category:** Logstash\
**Created:** [October 29, 2022, 1:15pm UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727 "2022-10-29T13:15:28Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![danishbit09](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@danishbit09](https://discuss.elastic.co/u/danishbit09)\
**Post date:** [October 29, 2022, 1:15pm UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/1 "2022-10-29T13:15:28Z")

</div>

Can you please share with me the steps to configure and run memcached in filter plugin.  
Is memcached server configured in logstash internally or I have to install and start memcached externally? Please guide me.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 29, 2022, 3:12pm UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/2 "2022-10-29T15:12:05Z")

</div>

> [@danishbit09](#):
>
> I have to install and start memcached externally

Yes, you need to have an external memcached instance running and acessible to Logstash.

After you installed and configured Memcached you can put things in it and read from it.

To put things in the mencached instance you use the `SET` option of the filter and to read from it you use the `GET` option.

The [documentation](https://www.elastic.co/guide/en/logstash/current/plugins-filters-memcached.html#plugins-filters-memcached) is pretty straightforward, but if you want a more detailed example I've made a blog post about it a couple of time ago, you can access it [here](https://web.leandrojmp.com/posts/en/2021/04/logstash-memcached).

---

<div class="post-metadata">

**Author:** ![danishbit09](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@danishbit09](https://discuss.elastic.co/u/danishbit09)\
**Post date:** [October 31, 2022, 8:00am UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/3 "2022-10-31T08:00:29Z")

</div>

Thank you so much for the reply.

Can I use any other cache tool in Logstash? If yes , Please share with me the name of all supported cache application.

---

<div class="post-metadata">

**Author:** ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)\
**Post date:** [October 31, 2022, 12:12pm UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/4 "2022-10-31T12:12:42Z")

</div>

> [@danishbit09](#):
>
> Can I use any other cache tool in Logstash? If yes , Please share with me the name of all supported cache application.

You can check the [documentation](https://www.elastic.co/guide/en/logstash/current/index.html) to see what inputs, outputs and filters logstash supports.

If it is not there, then it is not supported.

---

<div class="post-metadata">

**Author:** ![danishbit09](https://avatars.discourse-cdn.com/v4/letter/d/ea5d25/32.png) [@danishbit09](https://discuss.elastic.co/u/danishbit09)\
**Post date:** [November 2, 2022, 8:32am UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/5 "2022-11-02T08:32:42Z")

</div>

Can you please suggest for below error. I am trying to connect with Kafka topic to publish output log.

[ERROR][logstash.outputs.kafka][test] Unable to create Kafka producer from given configuration {:kafka\_error\_message=\>#\<Java::OrgApacheKafkaCommon::KafkaException: Failed to construct kafka producer\>, :cause=\>#\<Java::OrgApacheKafkaCommon::KafkaException: javax.security.auth.login.LoginException: Could not login: the client is being asked for a password, but the Kafka client code does not currently support obtaining a password from the user. not available to garner authentication information from the user\>}  
[2022-11-02T16:25:43,480][ERROR][logstash.javapipeline][test] Pipeline error {:pipeline\_id=\>"test", :exception=\>#\<Java::OrgApacheKafkaCommon::KafkaException: Failed to construct kafka producer\>,

---

<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:** [November 30, 2022, 8:33am UTC](https://discuss.elastic.co/t/steps-to-configure-and-use-memcached-in-logstash-can-you-please-share-with-me-the-steps/317727/6 "2022-11-30T08:33:11Z")

</div>

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