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

  Рет қаралды 62,554

KodeKloud

KodeKloud

Күн бұрын

Пікірлер: 82
@cyrilgonzales8691
@cyrilgonzales8691 19 күн бұрын
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?
@fagobg
@fagobg Жыл бұрын
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 Жыл бұрын
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.
@Shiv_30
@Shiv_30 2 ай бұрын
I have a issue in this scenario, grafana not show all pods log, Give solution for that ...plz..
@eylulucar8046
@eylulucar8046 7 ай бұрын
./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?
@AshfaqueAhmed-b8d
@AshfaqueAhmed-b8d Жыл бұрын
Great explanation brother.Respect.
@KodeKloud
@KodeKloud Жыл бұрын
Glad it was helpful!
@rupakrath637
@rupakrath637 Жыл бұрын
how can configure promtail to send multiple containers logs which are running on the same machine to loki with different labels
@KodeKloud
@KodeKloud Жыл бұрын
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.
@tokar86a
@tokar86a 11 ай бұрын
Great explanation and very easy to understand and follow along. Hope to see more like this.
@KodeKloud
@KodeKloud 11 ай бұрын
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!
@jayamurugans2441
@jayamurugans2441 11 ай бұрын
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 6 ай бұрын
"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."
@MultiGaurav009
@MultiGaurav009 Жыл бұрын
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 😊
@neeraj_gk
@neeraj_gk Жыл бұрын
can we take logs from S3, if yes please do a tutorial or reply a article on it
@KodeKloud
@KodeKloud 11 ай бұрын
Hey, please refer to community.grafana.com/t/it-is-possible-to-read-aws-s3-logs-by-loki/55579
@rajasekhar194
@rajasekhar194 Жыл бұрын
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.
@abhinavorugant5798
@abhinavorugant5798 4 ай бұрын
Great explanation and very easy to understand!!👏
@delmo2009
@delmo2009 Жыл бұрын
Nice, when you post part 2 ?
@KodeKloud
@KodeKloud Жыл бұрын
Hi, We will be posting second part next week. Do subscribe to our channel and stay tuned!👍
@jnelly3426
@jnelly3426 Жыл бұрын
Fantastic! Very well put together
@KodeKloud
@KodeKloud Жыл бұрын
Glad you think so!
@teddybear4466
@teddybear4466 5 ай бұрын
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
@vlauciani
@vlauciani 4 ай бұрын
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.
@sarvagyamaithani2093
@sarvagyamaithani2093 9 ай бұрын
Can't we install/configure Grafana/Loki in the application server ?
@independence_1947
@independence_1947 7 ай бұрын
Thanks for the video. How do we set up to view Loki’s logs using systemd (rpa)
@riquelinhares
@riquelinhares Жыл бұрын
Good and straight!
@KodeKloud
@KodeKloud Жыл бұрын
Hi, we appreciate the kind comment! enjoy!
@ramashish123
@ramashish123 Жыл бұрын
That's was really clean and clear explanation ❤
@KodeKloud
@KodeKloud Жыл бұрын
Thanks a ton!
@weilin4872
@weilin4872 2 ай бұрын
good 😬
@mohamedhaneef6379
@mohamedhaneef6379 Жыл бұрын
Great ❤
@KodeKloud
@KodeKloud Жыл бұрын
Thanks for watching our video. Cheers!
@gursharanvicky
@gursharanvicky 11 ай бұрын
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 10 ай бұрын
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.
@DieterFrueh-cp1go
@DieterFrueh-cp1go 6 ай бұрын
How to get syslog into loki?
@Dioman172
@Dioman172 11 ай бұрын
Guide from web is disgusting. Thanks fro your guide!
@KodeKloud
@KodeKloud 11 ай бұрын
Glad it was helpful!
@nsohche-t3k
@nsohche-t3k 10 ай бұрын
This was amazing and very helpful but i have a question .. is grafana loki better option in general than splunk ?
@KodeKloud
@KodeKloud 6 ай бұрын
"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."
@tolearn1517
@tolearn1517 Жыл бұрын
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
@user-kg2qn8se4h
@user-kg2qn8se4h 11 ай бұрын
How did you switch to different nodes in one machine? This thing should also be cleared.
@KodeKloud
@KodeKloud 10 ай бұрын
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.
@AjayKumar-lm4yr
@AjayKumar-lm4yr Жыл бұрын
How to store Grafana Loki logs in Azure Blob Storage
@KodeKloud
@KodeKloud 11 ай бұрын
" 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/
@asifadam93
@asifadam93 6 ай бұрын
Nice video bro, keep it up ☺
@MichaelaMarkou-v4x
@MichaelaMarkou-v4x Жыл бұрын
Great!
@KodeKloud
@KodeKloud Жыл бұрын
Hi, we appreciate the kind comment! enjoy!
@ThangMinh-ul3cs
@ThangMinh-ul3cs 10 ай бұрын
how to configuration loki delete log automaticaly ?
@KodeKloud
@KodeKloud 6 ай бұрын
Hi, please refer to grafana.com/docs/loki/latest/operations/storage/logs-deletion/#:~:text=Configuration%20Enable%20log%20entry%20deletion,very%20careful%20when%20enabling%20retention
@sagarhm2237
@sagarhm2237 Жыл бұрын
How to get response time and alerting to response time of the apps
@KodeKloud
@KodeKloud 11 ай бұрын
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.
@ingazaitseva794
@ingazaitseva794 11 ай бұрын
Thank you so match for this demo. It was very hopefull for me
@KodeKloud
@KodeKloud 11 ай бұрын
Glad it was helpful!
@ingazaitseva794
@ingazaitseva794 11 ай бұрын
நீங்கள் தமிழ் பேசுகிறீர்களா தம்பி)?
@KodeKloud
@KodeKloud 11 ай бұрын
Thanks for watching our video. Cheers!
@madhand6045
@madhand6045 8 ай бұрын
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 2 ай бұрын
I have a issue in this scenario grafana not show all pod log, plz... Me
@madhand6045
@madhand6045 Ай бұрын
@@Shiv_30 both are different bro anyway I have done this using scripts
@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.
@Levityy
@Levityy Жыл бұрын
What are the specs for the servers? Ram, cpu etc?
@KodeKloud
@KodeKloud 11 ай бұрын
Hey, please refer to community.grafana.com/t/hardware-requirements-for-running-grafana-loki/54790/3
@dragonball41876
@dragonball41876 11 ай бұрын
Very good video, Thank you for making it!
@KodeKloud
@KodeKloud 11 ай бұрын
Glad you liked it!
@prateekgoyal3353
@prateekgoyal3353 5 ай бұрын
amazing!
@Vnehadalassss
@Vnehadalassss Жыл бұрын
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
@emiljaquinjoy5811
@emiljaquinjoy5811 Жыл бұрын
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
@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!
Grafana Loki to access Kubernetes logs
26:04
Anais Urlichs
Рет қаралды 16 М.
Миллионер | 1 - серия
34:31
Million Show
Рет қаралды 2 МЛН
How to Setup an AWS Lambda Function with API Gateway and Cognito
8:44
Learn DevOps with Serge
Рет қаралды 271
Open source observability explained - the Grafana Labs stack
19:32
Server Monitoring // Prometheus and Grafana Tutorial
24:36
Christian Lempa
Рет қаралды 652 М.
Kubernetes Monitoring Made Easy with Prometheus | KodeKloud
1:08:55
What is OpenTelemetry?
12:55
Highlight
Рет қаралды 7 М.
Structure of Logs (Part 1) | Zero to Hero: Loki | Grafana
8:04
How Prometheus Monitoring works | Prometheus Architecture explained
21:31
TechWorld with Nana
Рет қаралды 1 МЛН
Monitoring, Logging, And Alerting In Kubernetes
22:07
DevOps Toolkit
Рет қаралды 29 М.