Mastering Grafana Loki: Complete Guide to Installation, Configuration, and Integration | Part 1

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

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

  • @KodeKloud
    @KodeKloud  7 дней назад

    🚀Explore Our Top Courses & Special Offers: kode.wiki/40SkWyU

  • @tokar86a
    @tokar86a Год назад +3

    Great explanation and very easy to understand and follow along. Hope to see more like this.

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

      Appreciate your gratitude! We strive to make complex topics accessible. If there's a specific area you'd like us to cover, let us know. We're here to help!

  • @AshfaqueAhmed-b8d
    @AshfaqueAhmed-b8d Год назад +4

    Great explanation brother.Respect.

  • @jnelly3426
    @jnelly3426 Год назад +3

    Fantastic! Very well put together

  • @abhinavorugant5798
    @abhinavorugant5798 6 месяцев назад +1

    Great explanation and very easy to understand!!👏

  • @MultiGaurav009
    @MultiGaurav009 Год назад +4

    That was really awesome demo on Loki, thanks Kodekloud team.

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

      Thank you for the appreciation. You can check our videos related to DevOps and subscribe to our channel to stay updated with all the latest tools.

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

      @@KodeKloud I am already a fan of Kodekloud and have taken yearly subscription 😊

    • @LalitKumar-sn3jf
      @LalitKumar-sn3jf 9 дней назад

      ​@@KodeKloudplease also mention the gotchas associated with technology

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

    Good and straight!

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

      Hi, we appreciate the kind comment! enjoy!

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

    That's was really clean and clear explanation ❤

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

    Thank you so match for this demo. It was very hopefull for me

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

    Very good video, Thank you for making it!

  • @diegonayalazo
    @diegonayalazo День назад

    thanks

  • @sfincione2000
    @sfincione2000 Месяц назад

    Not bad, dude... not bad =) I'd like to see some more complicated things around using LogQL, but other than that, nice intro.

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

    Nice video bro, keep it up ☺

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

    Great ❤

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

      Thanks for watching our video. Cheers!

  • @luisrodriguez8135
    @luisrodriguez8135 Месяц назад

    Amazing :D

    • @KodeKloud
      @KodeKloud  Месяц назад

      We are so glad you think so!

  • @MichaelaMarkou-v4x
    @MichaelaMarkou-v4x Год назад +1

    Great!

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

      Hi, we appreciate the kind comment! enjoy!

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

    Nice, when you post part 2 ?

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

      Hi, We will be posting second part next week. Do subscribe to our channel and stay tuned!👍

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

    amazing!

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

    Thanks for the video. How do we set up to view Loki’s logs using systemd (rpa)

  • @Vnehadalassss
    @Vnehadalassss Год назад +3

    This is awesome, can you also make video on installing loki with helm chart ?

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

      "Hey, thank you for watching our video. We will definitely look into your suggestions. Do subscribe and stay tuned for updates on our channel. Cheers :)
      "

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

      @@KodeKloud Hey i would also be really interested on this topic , even using minikube aand grafana
      /loki

  • @weilin4872
    @weilin4872 3 месяца назад

    good 😬

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

    Thanks for the video.
    I am using Grafana cloud, and I want to collect logs from the Airflow. Now as you said, I am only getting the labels, not the actual logs. So if I use promtail, would I get all the logs which are present in the Airflow?
    Also, if you could explain a bit more what do you mean by “basic logs” 4:18

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

    Good day Sir,, i am trying to use loki and promtail with my grafana. But we are using windows environment, do you have any guide for loki and promtail on windows?

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

    Thanks for the video
    I have a simple question regarding Promtail; I am using regexp to set labels. Are all the lines in the log that don't meet the regexp still sent to Loki? If "yes", is there any way to not do that and just send to Loki only the lines that pass the regexp?
    In other words I’d like to send to Loki only a subset of log lines.

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

    how can configure promtail to send multiple containers logs which are running on the same machine to loki with different labels

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

      To configure Promtail to send logs from multiple containers on the same machine to Loki with different labels, create a Promtail configuration file and define separate scrape jobs for each container. Customize the labels and paths for each job to distinguish between the containers, and then start Promtail with this configuration. It will send logs to Loki with the specified labels for differentiation.

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

    In my current role we want build the open source like loki, minor, tempo, is it possible do same videos for mimir and tempo with s3 bucket as datastore in k8s and best practice for production level

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

      Hey, thank you for your thoughts, we might consider doing it in the future.

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

    after the promtail start command, am getting the output same as here,but when i check the grafana console i cant see my log file paths or job names over there, i can only see the existing files and log paths of other servers, do i need to refresh or do anything on the grafana or loki server, please advice

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

      "If you're not seeing your log file paths or job names in Grafana after starting Promtail, try these steps:
      Check Promtail's Configuration: Ensure it's correctly set up to tail the desired log files.
      Verify Log File Access: Promtail should have permission to read these files.
      Look at Promtail Logs: Check for any errors or warnings.
      Confirm Loki Receives Logs: Use Loki's UI or API to verify.
      Check Grafana's Data Source Setup: Ensure it's correctly connected to Loki.
      Refresh Grafana: Sometimes, refreshing the dashboard or creating a new panel helps.
      Review Network Connectivity: If Promtail and Loki are on different servers.
      Examine Grafana Queries: Make sure they are correctly formulated.
      Restart Services: Restarting Promtail and/or Grafana can resolve issues.
      Consult Documentation: For any missed configuration steps."

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

    can we take logs from S3, if yes please do a tutorial or reply a article on it

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

      Hey, please refer to community.grafana.com/t/it-is-possible-to-read-aws-s3-logs-by-loki/55579

  • @Shiv_30
    @Shiv_30 3 месяца назад

    I have a issue in this scenario, grafana not show all pods log,
    Give solution for that ...plz..

  • @nsohche-t3k
    @nsohche-t3k Год назад

    This was amazing and very helpful but i have a question .. is grafana loki better option in general than splunk ?

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

      "Grafana Loki is cost-effective, simpler, and integrates well with Grafana. It's a good choice for straightforward log management, especially in environments already using Grafana.
      Splunk offers more comprehensive log management and advanced analytics features. It's better suited for complex log analysis and large-scale enterprise use, but it's typically more expensive.
      Choose Loki for a simpler, more budget-friendly solution, and Splunk for advanced features and large-scale operations."

  • @DieterFrueh-cp1go
    @DieterFrueh-cp1go 8 месяцев назад

    How to get syslog into loki?

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

    Can't we install/configure Grafana/Loki in the application server ?

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

    any chace of having a full loki course?

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

      Hi, The second part is releasing next week. Do subscribe to our channel and stay tuned for future updates.

  • @LalitKumar-sn3jf
    @LalitKumar-sn3jf 9 дней назад

    Lables in Loki is not equivalent to index in any other log aggregation platform. Labels does not support high cardinality data....actually it is very bad with high cardinality data.

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

    Hi I have one scenario working on im using loki and grafana agent here i just want to monitor log files under a directory, in this case the directory has more than 1000 folders and inside that folders more than 10000 log files are there and here the issue is folders are getting created everyday so I have used * for folders and * for log files also but I reaaly don't need older folders the folders are in YYYYMMDD format is there anyway to avoid these older folders being added because it cause an error while starting

    • @Shiv_30
      @Shiv_30 3 месяца назад

      I have a issue in this scenario grafana not show all pod log, plz... Me

    • @madhand6045
      @madhand6045 3 месяца назад

      @@Shiv_30 both are different bro anyway I have done this using scripts

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

    Great video!!! is there any way to store the logs in S3 bucket instead of local file system

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

      I think you need to rewatch the video

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

      @@therealslimaddy Yes I saw that part I tried it but I am unable to ship logs to S3 bucket

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

      Hi, thanks for watching our vieeo. You can please refer to bluelight.co/blog/how-to-install-grafana-loki

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

    Hi @KodeKloud and all....
    I want your opinion about logging solution. Should we consider Grafana+Loki over ELK stack.
    I am getting huge cost for the monitoring and logging with AWS. Want to suggest particularly logging solution to my organisation.
    If you can provide your inputs on this please.
    Thanks in advance.

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

      The choice between Grafana + Loki and the ELK Stack should be based on your specific logging requirements, operational capabilities, and preferences. Each toolset has its strengths and is suited to different scenarios
      Grafana + Loki: Good for simpler operations, integrates well with Grafana and Prometheus, more cost-effective, and easier to use. Ideal if you already operate within this ecosystem and want streamlined log management.
      ELK Stack: Offers powerful search capabilities and is well-suited for complex log analysis. Requires more resources and can be more expensive to run, but it's the go-to choice if full-text search and extensive data processing are necessary.

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

    How to get response time and alerting to response time of the apps

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

      To monitor response time and set up alerts for applications with Grafana Loki, first configure your application logs to include response time data. Use Loki to ingest these logs and create queries to extract response time information. Set up alerting rules in Grafana based on these queries, defining conditions for when response times exceed specific thresholds. Configure notification channels to receive alerts, whether through email, Slack, or other platforms. Regularly test and adjust your alerting thresholds to ensure you're notified when response times become critical. This approach allows for proactive response to performance issues and helps ensure your applications meet their service level objectives.

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

    What are the specs for the servers? Ram, cpu etc?

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

      Hey, please refer to community.grafana.com/t/hardware-requirements-for-running-grafana-loki/54790/3

  • @AjayKumar-lm4yr
    @AjayKumar-lm4yr Год назад

    How to store Grafana Loki logs in Azure Blob Storage

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

      "
      To store Grafana Loki logs in Azure Blob Storage, first create an Azure Blob Storage account and configure the necessary access permissions. Then, install and configure Loki, specifying Azure Blob Storage as the backend in your Loki configuration file. Make sure to provide the Azure Blob Storage URL, container name, and the appropriate credentials. Restart the Loki service to apply the changes and verify that logs are now being stored in Azure Blob Storage. Remember to consult documentation for both Loki and Azure for specific configuration details to suit your environment and setup. You can refer more to grafana.com/docs/loki/latest/storage/

  • @ThangMinh-ul3cs
    @ThangMinh-ul3cs Год назад

    how to configuration loki delete log automaticaly ?

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

      Hi, please refer to grafana.com/docs/loki/latest/operations/storage/logs-deletion/#:~:text=Configuration%20Enable%20log%20entry%20deletion,very%20careful%20when%20enabling%20retention

  • @user-kg2qn8se4h
    @user-kg2qn8se4h Год назад

    How did you switch to different nodes in one machine? This thing should also be cleared.

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

      We utilized Vagrant to create virtual machines specifically for demonstration purposes. To access these VMs, we executed the vagrant ssh command. For convenience, we opened multiple terminal windows, each running a separate vagrant ssh session, allowing us to switch between different VM environments as required.

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

    Is grafana Loki open source?

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

      Yes Grafana has both open source and paid versions

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

      Yes, Loki is an open-source log aggregation tool inspired by Prometheus architecture.

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

      @@KodeKloud thanks a lot for your response and the video was just amazing and it helps me a lot

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

    Low key, really cool!
    You see what I did there! HA HA! Dad Zoomer 👴 joke!

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

      Hope you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!

  • @terrabiker
    @terrabiker Месяц назад

    "Complete Guide to Installation, Configuration, and Integration" .... a few moments later....this video is not focused on installation so here's a quick install to local machine... 🤨 👎👎👎👎👎👎 not very complete if you ask me...

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

    நீங்கள் தமிழ் பேசுகிறீர்களா தம்பி)?

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

      Thanks for watching our video. Cheers!

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

    Guide from web is disgusting. Thanks fro your guide!

  • @fagobg
    @fagobg Год назад +3

    Is there an easy way to add host name label in the promtail. Can you set a dynamic label? Something like hostname:{HOST}. Where HOST is an environment variable. When looking at logs in Grafana you would want to know the host they came from.

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

      Yes, in Promtail, you can use dynamic labels like hostname:${HOST} in the configuration to include the host's name in logs. This helps identify log sources when viewing them in Grafana.

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

    ./loki-linux-amd64 -config.file=loki-local-config.yaml I can only access loki from Grafana when this command is entered.
    when the command is killed
    Unable to fetch labels from Loki (Failed to call resource), please check the server logs for more details
    I get an error.
    Is this what it should be or am I doing something wrong?