EFK Setup in Kubernetes Cluster | Logging in Kubernetes with Elasticsearch Fluentd and Kibana | ELK

Поделиться
HTML-код
  • Опубликовано: 1 дек 2024

Комментарии •

  • @dirkl9652
    @dirkl9652 Год назад +2

    Short and to the point. I will give this a try. Thanks for the effort.

  • @danielboullon8788
    @danielboullon8788 Год назад +1

    NICE BRO, SHORT, WORKLY , easy to make , thanku very much from Argentina :)

  • @himanshubhusanrath4529
    @himanshubhusanrath4529 Год назад +1

    Thank you so much for making this content especially for the installation of Elastic Search,

  • @saibaba-s8t
    @saibaba-s8t Год назад +1

    Nice Video, it Very useful for Kubernetes environment to check the logs

  • @AvinashaSharmaP
    @AvinashaSharmaP 2 месяца назад

    After following this, I was able to have all the components you showed. I found that you have excluded pv creation, elastoc secrets etc without which this installation will not work. Including them would make it more useful!!

    • @bhoopeshdevops
      @bhoopeshdevops  2 месяца назад

      Sure will check the documentation and will create another one if needed 👍

  • @ashketchum3255
    @ashketchum3255 7 месяцев назад +1

    hey wanted to ask something, the configmap and rbac which we are applying, how will the helm chart of fluentd know about it, like where do we mention these files in the values.yaml of fluentd??

    • @bhoopeshdevops
      @bhoopeshdevops  7 месяцев назад

      Configmap is used in deployment/daemonset, kindly review it once more let me know in case of any additional info

    • @ashketchum3255
      @ashketchum3255 7 месяцев назад

      @@bhoopeshdevops sir I have tried a lot of things but the fluentd is unable to send logs to elasticsearch, if you are free can we please have a small meet where I can share my screen and show you the issue

  • @aniketpatil-d8e
    @aniketpatil-d8e 7 месяцев назад +1

    I have deployed five different microservices in a Kubernetes cluster as deployments. I have also configured Filebeat on my worker nodes. Now, I need to create an index in Kibana for each microservice. Could you please provide me with the Filebeat configuration file for this? I am using AWS EKS.
    I am only getting default index as filebeat-

    • @bhoopeshdevops
      @bhoopeshdevops  7 месяцев назад

      You can modify the filebeat configuration for each different 5 Microservices separately and put index name in it..will create a session for the same soon. Let me know if it is fine ?

    • @aniketpatil-d8e
      @aniketpatil-d8e 6 месяцев назад

      @@bhoopeshdevops Yes it is fine but what if i add 6th service after few day then again i need edit filebeat configuration?
      Please create one session for this.

    • @bhoopeshdevops
      @bhoopeshdevops  6 месяцев назад

      Sure will do it

  • @optimus93
    @optimus93 6 месяцев назад

    Hi, Thank you for video. I have question about it: How do you to delete log ElasticSearch by automation after 7days? So it easy make full disk?

    • @bhoopeshdevops
      @bhoopeshdevops  6 месяцев назад

      Yes that is easy via index management with policy creation

  • @shubhamshastri7409
    @shubhamshastri7409 5 месяцев назад

    thanks man for this

    • @bhoopeshdevops
      @bhoopeshdevops  5 месяцев назад

      Your welcome, let me know if you are looking for something else, also you can explore other videos of ELK in the same playlist 🙏

  • @KalaiselvanPalanisamy
    @KalaiselvanPalanisamy 8 месяцев назад

    good work bhoopesh
    i have a question, we have not installed logstash , but still why its is shown in kibana dashboard

    • @bhoopeshdevops
      @bhoopeshdevops  8 месяцев назад

      Fluent bit helm chart is taking care of it

    • @ashketchum3255
      @ashketchum3255 7 месяцев назад +1

      @@bhoopeshdevops but aren't we using fluentd??

    • @bhoopeshdevops
      @bhoopeshdevops  7 месяцев назад +1

      @ashketchum3255 Apologies yes fluentd is working as an agent and sending data directly to Elastic

  • @mauricekalevra
    @mauricekalevra 11 месяцев назад +1

    Hey thank you for the great video. Everything is working, but when i try to access kibana on the browser, it keeps saying "Kibana server is not ready yet", even after a long time. Do you know how to fix this? Greets!

    • @bhoopeshdevops
      @bhoopeshdevops  11 месяцев назад

      Pls check the logs of Kibana pod and see what is the error coming and paste the same here

    • @mauricekalevra
      @mauricekalevra 10 месяцев назад

      @@bhoopeshdevops Hey, i pasted the error logs twice already, but they keep geeting deleted. Is that you or youtube? Maybe the format of the logs gets blocket due to bad input.

    • @bhoopeshdevops
      @bhoopeshdevops  10 месяцев назад

      By RUclips no worries… I will search on the basis of your inputs will let you know

  • @kulveerkapoor5472
    @kulveerkapoor5472 Год назад +1

    When trying to port-forward svc/elasticsearch 9200 error connection refused

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      Pls check the logs for elastic search pod and see if there is any error in statefull set creation

  • @nlokesh1986
    @nlokesh1986 Год назад +1

    Can you please help me to perform same setup on AKS.. I look forward for your response..

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      I will create another video on the same

    • @nlokesh1986
      @nlokesh1986 Год назад

      @bhoopesh123 Thanks alot.. of possible please explain how to read logs of only one micro service/pod in a desired namespace.. 🙏

  • @shadyapp7416
    @shadyapp7416 Год назад +1

    I am assuming to persist the logs in elastic search, you would have to add pv so that kibana can show historical logs even if pods are restarted or deleted. Am i correct?

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      Yes you are absolutely right..Better to use helm charts for it so that all these things are configured easily

    • @shadyapp7416
      @shadyapp7416 Год назад +1

      @@bhoopeshdevops good one.. keep it up

  • @arung.k2902
    @arung.k2902 Год назад

    hi,
    can u tell me how can we load the logs of all namespaces in a single kibana dashboard

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      This is easy..remove all the filters from the pane and save the results in a new dashboard..will create a video soon 🔜 on this item

  • @raghumg4125
    @raghumg4125 9 месяцев назад

    Hi , it’s nice video can you please make a similar video for opensearch and opensearch dashboard since most of them are using that nowadays after docker runtime migration

    • @bhoopeshdevops
      @bhoopeshdevops  9 месяцев назад

      Nice Idea, sure will create on Opensearch and Opensearch dashboard

  • @NguyễnHoan-t9z
    @NguyễnHoan-t9z Год назад +1

    I got error [in_tail_container_logs] pattern not match: "{\"log\":\"\\\\......} when running command: kubectl logs pod/fluentd-.....
    Can you help me ?

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      Kindly change the log location in configmap of fluent

    • @sebastiant5257
      @sebastiant5257 Год назад

      @@bhoopeshdevops I have the same problem. I know Elasticsearch very well but I am new to Kubernetes... How can I change the log location? I can't find this configmap...

    • @sharankarthikeyan4968
      @sharankarthikeyan4968 9 месяцев назад

      @@sebastiant5257 /^(?.+) (?stdout|stderr) [^ ]* (?.*)$/ make this to json

  • @LokeshYarraguntla
    @LokeshYarraguntla Год назад

    Bro I am new to kubernates..we have existing kubernates cluster with Linux worker node I am trying to setup efk for these but I am unable to provision statefulset and kibana deployment using docker image but nginx image is working and provisioning both but the major problem here is I am not able to run kubectl port forward command it's getting error

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      What errors are coming while trying to setup a StatefulSet

  • @danialasif786
    @danialasif786 Год назад

    I have successfully set up everything and can retrieve the logs. However, the issue lies in obtaining logs directly from files within the container, rather than relying on 'kubectl logs.' Do you have any ideas or hints on how to achieve this?

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      Pls share the location from with in container where you want to capture logs… Sam can be mentioned in configmap

    • @samarthbuagde
      @samarthbuagde 11 месяцев назад

      ​@@bhoopeshdevops want to collect logs from /logs/container/

    • @prateekshetty3961
      @prateekshetty3961 7 месяцев назад

      @@bhoopeshdevops how would u do that?

    • @bhoopeshdevops
      @bhoopeshdevops  7 месяцев назад

      Pls specify the same path in the configmap

    • @bhoopeshdevops
      @bhoopeshdevops  7 месяцев назад

      Pls specify the same path in the configmap

  • @VinothBalakrishna
    @VinothBalakrishna 5 месяцев назад

    can we give public ip instead of local host. i gave but i got this error while executing systemctl enable command "unable to resolve host ip-172-31-59-93: Temporary failure in name resolution"

    • @bhoopeshdevops
      @bhoopeshdevops  5 месяцев назад

      Yes we can I have used public ip and dns in my other video in the same playlist pls have a look at it, let me know if it works ?

  • @kulveerkapoor5472
    @kulveerkapoor5472 Год назад

    When tried to port forward kibana its lyk kibana server not yet ready

    • @bhoopeshdevops
      @bhoopeshdevops  Год назад

      Pls see elastic server pod logs, it takes some time for coming up 🆙

    • @mauricekalevra
      @mauricekalevra 11 месяцев назад

      For me the same! have you gotten a fix for this?

  • @michelineplete9728
    @michelineplete9728 6 месяцев назад

    Can anyone make a video for deployment of elk+ filebeat using Kubernetes with ssl enabled

    • @bhoopeshdevops
      @bhoopeshdevops  6 месяцев назад

      Sure i will do it ..it is easy any tentative time when you are looking ??

  • @mrjacksparrow8942
    @mrjacksparrow8942 6 месяцев назад

    how to send kubernetes logs to s3

    • @bhoopeshdevops
      @bhoopeshdevops  6 месяцев назад

      It is easy just send remote write to s3 URL, will create a video soon on this..Let me know if you need any additional use cases??

    • @mrjacksparrow8942
      @mrjacksparrow8942 6 месяцев назад

      ​@@bhoopeshdevops I' already tried setting up with fluentd but getting this error. nexpected error error_class=RuntimeError error="can't call S3 API. Please check your credentials or s3_region configuration. error = #"
      dont know why getting this it's have necessary permissions and all but still geting. can you sort out this or make a video on this requirement.