# ELK Stack into AKS

**URL:** <https://discuss.elastic.co/t/elk-stack-into-aks/339086>\
**Category:** Elasticsearch\
**Created:** [July 24, 2023, 11:31am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086 "2023-07-24T11:31:26Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![izbant](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@izbant](https://discuss.elastic.co/u/izbant)\
**Post date:** [July 24, 2023, 11:31am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/1 "2023-07-24T11:31:26Z")

</div>

Hello,

I am trying to deploy ELK Stack with basic license into my AKS cluster, but i am unable to secure connection between logstash and elasticsearch.  
Is there any documentation for deploying ELK Stack into an AKS cluster and to actually work?

Thank you!

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 25, 2023, 8:46am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/2 "2023-07-25T08:46:53Z")

</div>

Hi @izbant,

Welcome to the community! Are you getting a particular error in your deployment.

There is this [old blog here](https://www.elastic.co/blog/how-to-run-elastic-cloud-on-kubernetes-from-azure-kubernetes-service) that covers using ELK and AKS that could help you and should still be roughly in line.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![izbant](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@izbant](https://discuss.elastic.co/u/izbant)\
**Post date:** [July 26, 2023, 6:51am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/3 "2023-07-26T06:51:39Z")

</div>

Hi Carly! Thx for your reply. I find a lot of examples with versions below 8.x.x but I can't find any examples with elasticsearch after version 8.x.x when security comes enabled by default.

🙂

---

<div class="post-metadata">

**Author:** ![carly.richmond](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carly.richmond/32/104935_2.png) [@carly.richmond](https://discuss.elastic.co/u/carly.richmond)\
**Post date:** [July 26, 2023, 10:30am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/4 "2023-07-26T10:30:50Z")

</div>

Thanks for the feedback! Having a quick search I see what you mean regarding later examples.

Is there a particular issue or error you are finding as you muddle through trying to set it up?

---

<div class="post-metadata">

**Author:** ![izbant](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@izbant](https://discuss.elastic.co/u/izbant)\
**Post date:** [July 26, 2023, 11:14am UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/5 "2023-07-26T11:14:45Z")

</div>

I can't manage to establish secure connections between logstash and elasticsearch.  
Beside this, when I have to upgrade the AKS cluster and the pods are restarted, kibana xpack security is reseted and the stack become unavailable...

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [July 26, 2023, 12:19pm UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/6 "2023-07-26T12:19:44Z")

</div>

> [@izbant](#):
>
> Beside this, when I have to upgrade the AKS cluster and the pods are restarted, kibana xpack security is reseted and the stack become unavailable

Can you verify that you are using persistent volumes for all data and master eligible nodes?

---

<div class="post-metadata">

**Author:** ![izbant](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@izbant](https://discuss.elastic.co/u/izbant)\
**Post date:** [August 11, 2023, 2:30pm UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/7 "2023-08-11T14:30:11Z")

</div>

Sorry for this late reply.

Yes, I use pv for all data and master eligible nodes....

---

<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:** [September 8, 2023, 2:30pm UTC](https://discuss.elastic.co/t/elk-stack-into-aks/339086/8 "2023-09-08T14:30:22Z")

</div>

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