OK, nerd talk: What's your favorite logging system? (would this ever come up in a normal conversation???)
@axelolaussonholtenas29703 жыл бұрын
LibreNMS
@camerontgore3 жыл бұрын
For prod systems I really love Splunk
@bruceritchie76133 жыл бұрын
I've tried graylog, elk, datadog, cloud watch and a few others. Most are overkill, some are crazy expensive and none are perfect (or even great) Loki was on the 'check out at some point' list
@VoislavVasiljevski3 жыл бұрын
ELK (elasticsearch, logstash, kibana)
@michaelkasede14893 жыл бұрын
@@VoislavVasiljevski ELK is definitely on the "one of the best" list. It's only down side is, it's resource intensive.
@forzaracer Жыл бұрын
These guides are insane. No one goes to the detail that you do. You explain why and how commands and config files work rather that just reading them. Love your channel!
2 жыл бұрын
Great tutorial! One thing to note if you want to log specific docker containers you don't need to install promtail or change the deamon file. Just need the docker plugin for Loki and extra configuration in docker-compose for your specific containers that should use dedicated Loki logging driver.
@ClaudeAlexandreRochatProfile Жыл бұрын
Hello, this sound interesting can you give an example or link ? Thanks
@chelo-homelab8 ай бұрын
Yes please, that will help a ton!
@toshy502 жыл бұрын
Thanks man! This is just so much easier and less troublesome then configuring a proper ELK stack.
@TechnoTim2 жыл бұрын
Glad it helped!
@resetToDefaultSettings2 жыл бұрын
I've watched so many deployment videos trying to get a better all around understanding on all the NMS out there, what they can do, how they operate under the hood, etc. This by far is the absolute best I have seen and definitely earned you a sub. Most deployment videos tend to be quite dry, very un-explainative, and usually feel like a 'just do this real quick and it works' video. Thank you!!!
@brightly93682 жыл бұрын
IDK may be I am wrong fix me if so. The man talks as if he is talking inside my brain. Awesome job
@TechnoTim2 жыл бұрын
🤯
@AshfaqueAhmed-b8d Жыл бұрын
Yo bro, I like your video and the way explained every single bit and steps are just beyond awesome. Thanks for this quality content. God bless you my friend.
@Harry-hi3kr3 жыл бұрын
Been using Loki for over 2 years for work and play. Even out performed some enterprise level logging we tried too!
@TechnoTim3 жыл бұрын
Nice! Thanks for sharing!
@thegeogian3 жыл бұрын
"Make sure you're in a directory... I dont know where else you'd be..." Made me laugh so hard xD
@TechnoTim3 жыл бұрын
haha! I was going to re-record that part but I was like "just roll with it"
@thegeogian3 жыл бұрын
@@TechnoTim best decision
@HTOP1982 Жыл бұрын
Root?
@weitanglau1623 жыл бұрын
Please make a video for Tempo as well! Then we can see how you monitor logs, traces and metrics using grafana and setting alerts! That would be cool!
@annanayagarwal98363 жыл бұрын
Tempo Maintainer here and YES! Would love to see that!
@paulnieuwkamp80672 жыл бұрын
Hi Tim, you look like the kind of guy to keep (their system) up to date, but for those that may not know, there was a high-severity, zero-day vulnerability for Grafana a few days ago that enabled remote access to local files. Anybody that could access the site could access any file on the system, like for instance /etc/passwd. There are proof-of-concepts publicly available so it takes hardly any skill for script kiddies to start scanning. Grafana released a fix right away. If you have not already, install the latest versions / patches!
@toshy502 жыл бұрын
+1 I've noticed this as well, but by using the "latest" tag the fixed version should be pulled next time you up the containers with the "--build" argument. Just want to add a small note for others as well, that using "latest" is not a best practice, and you should specify the version you want to use (especially in production), else you could end up pulling a vulnerable version without even realizing.
@UzielBueno-xd2ud Жыл бұрын
Thanks! This was informative! It's worth mentioning that Promtail is not required if you are setting Loki as the Docker daemon default logging driver
@renobodyrenobody Жыл бұрын
Excellent! I am a long time user of Grafana and do a lot with it, but now the job is to manage the logs: here we are! Loki is the tool we want to deploy. Thanks a lot for your video, brillant, will be very helpful!
@itskagiso2 жыл бұрын
This was a lengthy but worth every second. Managed to get this up and running and Im happy but I would love a guide on getting syslog integrated
@TechnoTim2 жыл бұрын
Nice work! Noted!
@pivertd Жыл бұрын
Now, because of you, I want it ! Thanks for the great work.
@ThomasWilent2 жыл бұрын
5 min in and I can already tell your my new favorite tech guide guy. The detail is really welcome!
@JohnMatthew1 Жыл бұрын
GREAT VIDEO, got me through Loki and Syslog, thank you Tim
@TrueCharts3 жыл бұрын
We went ahead and added Grafana and Loki to our TrueNAS SCALE Apps as well :) Took some work, but well worth it ^^
@magnoliaraoul3 жыл бұрын
I was waiting for this video. Very well explained as always, thanks Tim ! To take a quick glance at my docker logs, i like to use Dozzle, a very small and straight to the point tool, but it does the job
@TechnoTim3 жыл бұрын
Thank you! Glad you liked it!
@royalcanadianbearforce98412 жыл бұрын
Just found your channel. I freaking LOVE these deep dives. Thank you so much for your hard work and insights!
@TechnoTim2 жыл бұрын
Thank you and welcome!
@jaygreentree43943 жыл бұрын
Before watching this video I was thinking to myself I wish Tim had a grafana tutorial.
@michaelganesan45782 жыл бұрын
Thank you for the demo. I really appreciate it. I am in the process of setting up a syslog server.
@TheApeMachine3 жыл бұрын
You know it's like really simple to develop plugins for Grafana? In my recent job we had to develop some very custom dashboards on the data we were collecting and it turns out Grafana has this whole eco-system to develop not only panel plugins, or data source plugins, but even app plugins, which integrate directly into the Grafana UI. It's really nice, since you get all user management and auto-reloading of data mechanisms for free :) And when I say easy, I mean really hard if you don't know it's basically React (and I didn't know React). But once you figure it out, it's easy.
@TheApeMachine3 жыл бұрын
It was an interesting video though, I had been wondering about this logging stack for a while and if I should chase it. The thing is, Kibana is just too powerful. Like even having unstructured data and being able to structure it on the fly is just everything.
@slothchunk Жыл бұрын
thank you for validating my use of nano. we are nano brothers, brother.
@lucianopacione8755 Жыл бұрын
Hi! Before all, amazing video!! But, I'm having an issue when I try to do the first query, I see "No logs volume available". I already checked /ready and /metrics and looks good. Do you know which can be the problem? Thanks a lot
@rupert86062 жыл бұрын
Fantastic tutorial... everything explained really well, and worked perfectly.. great way to get up and running with Loki / Promtail / Grafana quickly!!
@TechnoTim2 жыл бұрын
Glad it helped!
@larsvontrierpung9337 Жыл бұрын
Thanx a lot. Something that would be cool is to have a guide howto setup loki,mimir,tempo with grafana and prometheus in k8. Thanks!
@hassanad944 ай бұрын
Thanks for this tuto. :) I get a lot of value from it :D
@jharding653 жыл бұрын
This is great and timely! Awesome vid! You make logging look fun! Gonna try it out right now!
@TechnoTim3 жыл бұрын
Thank you! Let us know how it goes!
@wildflowers465 Жыл бұрын
Remap Caps Lock to Ctrl if your control key is broken! Easier to reach, I do this by default. Great tutorial.
@MadChristianX2 жыл бұрын
Thank you for your great work, i think i have nearly a copy of your homelab in my home
@chrisumali98413 жыл бұрын
Thanks for the demo and info, have a great day
@grouper15965 ай бұрын
Thank you for the video. Helped a lot!
@rupakrath637 Жыл бұрын
Thank you so much for the knowledgeable session
@lolikpof6 ай бұрын
Can this be used in a closed source commercial product? The AGPL license is concerning. Even though no changes are made to the source code, and it would only be used for internal purposes, section 13 of the license is concerning. The software is a web application, so it would be accessible over a network, and while logs would obviously not be shown to end users, and technically aren't even necessary for the application to work, they are necessary for development and debugging.. Can't figure out whether it can be used in my company or not
@michaelcooper5490 Жыл бұрын
Awesome tutorial Tim, as usual you nailed thank you for your hard work.
@simonostendorf62803 жыл бұрын
New monitoring: error and alert monitoring: CheckMK performance monitoring: Prometheus + Grafana log monitoring: Loki + Grafana status monitoring: uptime kuma
@shekharnandkoemarsing1583 жыл бұрын
Only need a trace management solution and you are all set up
@MrNecrotik3 жыл бұрын
Starting to get into k8s but wouldn't your alerting and status all be in Grafana?
@simonostendorf62803 жыл бұрын
@@MrNecrotik Yes its inside K8S. I think i will use two different grafana instances
@gr4yweb2 жыл бұрын
Thank you for your video. I enjoyed it very much and I know what I will do when I have some more free time around christmas this year.
@TechnoTim2 жыл бұрын
Thank you! Me too!
@pantatzz2 жыл бұрын
Gratefull i found this channel, thanks sir. Greeting from indonesia
@vigscodes Жыл бұрын
Is there a GitHub repository showing the various configuration files? That would be helpful.
@cpt_Ruckus3 жыл бұрын
Loki is great, very versatile. Be warned tho if you have limited storage space the loki database can grow in size quick! Edit: loki doesn't trim old logs by default.. I only keep logs up to two weeks old. Huge data saver!
@TechnoTim3 жыл бұрын
Good tip!
@djdubd2 жыл бұрын
What config items do you need to set to change the default storage locations? I'm looking at their config reference and having trouble making sense of it
@SebastianSastre Жыл бұрын
This is the first I though when Tim was explaining the setup.
@Stoney_Eagle3 жыл бұрын
You can't start logging this professional now dude, I stayed hidden so far from you but now it's impossible 🤣 You have so many docker tutorials and you're actuality running them in your house that... I have to... I hereby declare you the docker King of KZbin!
@TechnoTim3 жыл бұрын
Thanks 😅. I did get a little enterprise on this one, did I? 😆
@Stoney_Eagle3 жыл бұрын
@@TechnoTim This is what I want in my feed, some good knowledge instead of that Tiktok crap. 😉
@MarkDodgson2 жыл бұрын
Great video, I have a question about the promtail adding docker section. when you set up the docker loki driver, the daemon config was sending logs directly to loki so I am not sure what the promtail configuration actually did in this setup. Additionally, the promtail config was set to push from /var/lib/containers.... but this would have ben for the folder within the container of promtail only and not host. Have I missunderstood something?
@WoBuGs-yt8 ай бұрын
You are correct, I believe the loki driver method is completely different form the promtail one with the docker pipeline stage See the other comment I just posted about this for more details :)
@johnconnor77782 жыл бұрын
Awesome video, Tim! Could you share your dashboard config from 0:47? It looks like exactly what I need.
@belbono2 жыл бұрын
The docker loki plugin had a serious problem, so it was not an option for production use. I don´ t know if this issue has been solved. The last time I was reading through the related issues the developers said, that they might not be able to provide a solution anytime soon. Let me describe: If your container host has high IO load and/or the loki server is not reachable for some reason the whole docker daemon hang up, because it wasn´t able to write the logs. The worst possible situation is when shutting down multiple containers. It wasn´ t possible to define some timeout. It was required to kill the daemon process and remove the container files (/var/lib/docker/containers) the daemon normally manages. I never used the plugin again. I´m happy with configuring the log property of a container and have promtail to scrape this. The result is the same, but without the possibility of a blocked daemon.
@TechnoTim2 жыл бұрын
Thanks for sharing your expertise and experience!
@nada1763 жыл бұрын
Messing with influxdb but will check out Loki next. Wondering how Loki performs with TBs of logs without switching to cloud storage. Thanks for the video!
@JasonTurner2 жыл бұрын
Great presentation of some solid content! Thanks for sharing!
@TechnoTim2 жыл бұрын
Thank you!
@project_mini_hero3 ай бұрын
Hey Tim, great content as per usual!! I just saw your video and been struggling to set up logging from a firewall with this especially since promtail will be deprecated next year and they are switching to alloy. I wanted to know what are you using today in 2024 and if your still use this setup, have you migrated to alloy instead ?
@sethalump2 жыл бұрын
Thanks for these excellent walk throughs. It's not easy to cover this level of stuff and still be interesting to watch.
@prasaddotcom2 жыл бұрын
Hi , I tried to extract logs from mssql server using promtail , loki grafana I window environment, logs are coming to grafana dashboard. Problem here is in logs words are displaying as I n s t a n c e instead of instance. Can you please help with solution to resolve my issue.
@sevanchandra12 жыл бұрын
You are my inspiration!! Great job!!
@Nikzww1872 жыл бұрын
this tutorial was awesome, appreciate you!
@grunkasvunka2988Ай бұрын
Awesome video!
@mvaldes3 жыл бұрын
i usually do Elasticsearch, i know its heavy in use and maintenance but also plugs into other things like my wiki so its great. Loki does look promising tho.
@raymondvanderwerf3 жыл бұрын
Pfff ...this is great!! 😀 Thx man! Will definitely have a play with this! ✌️
@TechnoTim3 жыл бұрын
Hope you enjoy it!
@frankihk Жыл бұрын
Hi , may I know how to add the prometheus , snmp exporter also include in the docker? My purpose is monitor linux system, windows system , and network deivce e.g Cisco switch , FortiGate firewall . Thank you
@pyhoff Жыл бұрын
Stupid question, what do you use for SIEM solution in this setup, LOKI is not one or do they plan on it as per github. What would you forward logs to? Graylog or ELK?
@AshishGupta-oc2cz2 жыл бұрын
Very Nicely Explained, keep it up.
@TechnoTim2 жыл бұрын
Glad you liked it
@michaelcooper5490 Жыл бұрын
Hey Tim, Love the video great job, How would this apply to the Raspberry Pi/Orange Pi/Rock Pi? Thanks for your hard work. Can it be installed on RPi 4 or the others I mentioned above?
@alexandrumaer3 жыл бұрын
Tried Loki, because it's easy to correlate it with Jaeger so you could check out traces based on trace ids found in logs. But to have advanced features on your logs, there's nothing else like elk+kibana. It only depends on what your needs are. Cheers and thumbs up for your videos ;) keep up the good work!
@TechnoTim3 жыл бұрын
Good call! Thank you!
@b9944236 Жыл бұрын
Great explanation, thanks a lot.
@smeuse3 жыл бұрын
Used graylog for a while, hated it. This looks much nicer, going to give it a whirl. Currently just aggregating into a rsyslog server with some scripts to compress and logrotate.
@mahabubulhasan7827 Жыл бұрын
Thanks, great explanation indeed
@reyastaroth Жыл бұрын
Hello, I have LXC containers (15) with dockers running inside, have you found a way to monitor them without installing the agent on all of them?
@NFvidoJagg2 Жыл бұрын
for the syslog, see if you can point the logs towards a dummy ip address. this way if someone gets into you system, they won't be able to find and mess with the logging server
@ameenjohnson10613 жыл бұрын
Great video! I installed grafana, prometheus, loki and promtail on my Proxmox host and I am really liking it. One question: is there an easy way to get promtail to get logs from my Proxmox LXC containers and VMs? Or do I need to install promtail into each LXC/VM in order to get the logs into loki?
@reyastaroth Жыл бұрын
Hello, I have LXC containers (15) with dockers running inside, have you found a way to monitor them without installing the agent on all of them?
@tyaprak2 жыл бұрын
I love grep, awk, wc, uniq and sort commands :)
@deviouschu Жыл бұрын
Simply amazing
@kokizzu3 жыл бұрын
you can use ./bla (relative path) for binding volume
@TechnoTim3 жыл бұрын
Thanks!
@mohamedaly41012 жыл бұрын
Great video. Thanks for putting this info out. I will use it to monitor my home network. QQ on syslog, once I place the configuration in the yaml file, I dnt need to use something like rsyslog on a server to listen to the syslog and forward it to promtail? I can send the my syslog directly to promtail container on port 1514?
@abdulrahmanmohammed1382 Жыл бұрын
Awesome video @TechnoTim . Around the 15:24 mark, he was talking about how you would usually check Docker logs then scrolled down his container names, how did he do that? I'm assuming it is a particular shell, maybe? Anyone knows?
@TechnoTim Жыл бұрын
I am using zsh with oh-my-zsh and the docker plugin enabled. Search my website for zsh. I have examples.
@timbockhop72232 жыл бұрын
Hi Tim thanks for all the good stuff you create! I really would like to log actions on my kids' windows 10 computers (they're 8 yo). Just "items" like which program has been started and on google & youtube what was being queried/returned/displayed... Do you have an idea how to achieve that?
@andymok79452 жыл бұрын
Can this be done in a VM? I really don't have the time to learn about docker, containers. Thanks.
@ThorstenS-linux2 жыл бұрын
really nice content dude!
@majorgear1021 Жыл бұрын
I got this working well for standard logs . I'm curious if I can send other logs, like from ansible pull or from application that I write, to promtail as well. Google wasn't useful for answering this question, so maybe I'll hit up reddit and Grafana forums.
@squalazzo3 жыл бұрын
excellent, man! We are evaluating right now a custom logging solution as the ones offered by major cloud providers are quite expensive... alternatives would have been an ELK stack, or something preconfigured as graylog... what do you think? Thanks
@TechnoTim3 жыл бұрын
really depends on your infra! This is great for cloud, containers, kuerbernetes, and even traditional syslog. If you are already sing grafana that's a plus too!
@joeripelgrims890011 ай бұрын
I seem to be missing something with the syslog portion. I set it up with the listening ports. I then went into one of my network devices and pointed it to loki on port 1514. Now what? I don't see anything in grafana indicating that any syslogs are coming in. I must be missing something really basic.
@ramanujadasu12 жыл бұрын
Hey, Thanks for providing docker-compose grafana loki setup. Could you please kubernats (using kind) grafana loki yml if possible(for capturing the ISTIO logs)
@veasnachea69242 жыл бұрын
very nice video, well done, thanks.
@uzairnizamuddin18372 жыл бұрын
I would like to reach a position where my ctrl and enter breaks. How can I do it?
@alfrye68 Жыл бұрын
Great tutorial!!! Is is difficult to get logs out of loki without Granfana Dashboard.
@ThangMinh-ul3cs Жыл бұрын
Hi, I am setting up Grafana, Loki, and Promtail for an upcoming project, and I am using syslog-ng to receive logs from external devices. Can you create a video tutorial on using syslog-ng with Grafana Loki?
@scottezinn85552 жыл бұрын
Hey Tim - great information in your videos! Through lots of tinkering, I've managed to get k3s, cert-manager, rancher, traefik with tls certs up and running under Proxmox (I backed up my whole server, reformatted with Proxmox, created a VM and restored the server which runs 35+ containers in docker for my homelab). I want to get Grafana Loki but also want the prometheus and alerting too from your monitoring video. It looks like installing monitoring via the marketplace gets charts etc but do you just add loki rather than the loki stack? Adding loki stack seems to add things but there were no charts by default installed. Again, thanks for your awesome work. Your homelab machinery is sweet!
@TechnoTim2 жыл бұрын
Hi! Thank you! Nice stack! Yeah, if you just want loki and grafana use the lokie stack (I have the commands in my docs) but you can also tailor the helm command if you already have grafana installed. This is probably what you want so that you can use your existing install.
@scottezinn85552 жыл бұрын
@@TechnoTim So I installed the Rancher Monitoring package (brought in prometheus and customized grafana), installed standalone grafana and added rancher monitoring prometheus (worked), then installed loki-stack with just loki (with persistent storage), Promtail, and prometheus (could probably use the rancher monitoring one but couldn't figure out how to configure Promtail to use it vs the one it links to) enabled and added loki as a datastore to standalone grafana. Worked! So I have alerts now going to Slack, loki collecting and filtering logs, and grafana to view either prometheus or loki logs. Now just need to add in my Unifi data source and teslamate datastore once those containers are moved from docker-based system to k3s. Now back to the day job...
@Deffcolony2 жыл бұрын
Hi Techno Tim, Docker compose does not work. Services are not exposed... I get a 404 page not found at port 3100 the port 3000 is not exposed at all... What do i have to do now?
@TechnoTim2 жыл бұрын
Not sure, possibly check the config again?
@kolaythant3554 Жыл бұрын
let me ask 1 question Loki is possible to connect with old container logs after using docker plugin
@qusifarhan97448 ай бұрын
this video is great help
@Travis94ZX2 жыл бұрын
Unfortunately, I found that the syslog functions do not work with my firewall (SonicWALL) and promtail. Looking at some dashboards on Grafana related to SonicWALL it says something about setting up rsyslog in front of promtail to get it to work.
@rajuhs30862 жыл бұрын
1. Is Loki-Promtail stack suitable for aggregating and shipping logs that are generated at microsecond level?. 2. When logs are available in multiple files, promtail ships the logs in round robin fashion, spoiling the order of the logs. (Let's say logs generated through rolling file appender fashion). Any comments will be helpful.
@Chinna_Chintu2023 Жыл бұрын
Hi friends, Note : logs are from ubuntu server.... I'm looking for a log retention for 3 months in grafana loki .... How can we extend the retention period from the default 30 days to 90 days ??
@exact-estimate2 жыл бұрын
Great video, just set it up. One question though: Retention, what are the limits, and where can you set them to stop it taking up all the space on my host?!
@TechnoTim2 жыл бұрын
Log retention is configurable
@dedenapraia2 жыл бұрын
Thank you !, Your video really help me get this going !. Does someone know about a grafana dashboard ID to see all containers ?
@mza97382 жыл бұрын
Hi, great video. Inspired me to try Loki in my k3s system for my app. I have an issue though. I cannot query logs that are older than 1 hour (no data is returned). Do you potentially know what could be the cause of that, which configuration, because I spend a couple of hours and cannot find the solution.
@saltandsham3 жыл бұрын
Hi Tim Great video. I got the local logs working fine but when trying to get the logs from my docker containers its not working. Could you please point me in the right direction to check for any logs as to where it could be failing ? Thanks
@TechnoTim3 жыл бұрын
Be sure that your yaml for promtail is correct after applying the changes. Check promtail logs to be sure there aren't any errors
@bladrbrettel65112 жыл бұрын
Hey Tim, great tutorial I had a bit of difficulty to set it up on my synology NAS, case, je deamon.json is not located in /etc/docker... it's in /var/packages/Docker/etc wich is a siimlink to /volume1/@appconf/Docker and second diff it's not named daemon.json but dockerd.json... this may help people using their Synology NAS to host a few apps ;)
@TechnoTim2 жыл бұрын
Great find!
@axelolaussonholtenas29703 жыл бұрын
A new video, I love it // Vermium
@TechnoTim3 жыл бұрын
Good to see you! Hope you're well!
@axelolaussonholtenas29703 жыл бұрын
@@TechnoTim I am! I hope you're well too!
@typeer2 жыл бұрын
very nice thanks for this
@fasooly1992 Жыл бұрын
Is there a video on how to set up the dashboard?
@cajone75912 жыл бұрын
Great presentation! , thanks you
@TechnoTim2 жыл бұрын
Glad you liked it!
@RocketLR2 жыл бұрын
It looks promising but what about the syslog listener. Can you specify if it should listen for UDP or TCP? Some of the applications that we have can not do either UDP or TCP, so we have to have individual inputs in graylog for them. Also, if its a major hasle to get readable syslogs from some servers, then I wonder how much time i would have to spend to set this up for all our types of serves/applications
@TechnoTim2 жыл бұрын
You can specify and you can (and should) format syslogs before loki either on the device or better yet, with promtail
@pacholskigaming86993 жыл бұрын
I used Rancher Monitoring from your previous tutorial with Grafana. I had to remove it since it uses a lot of resources.
@TechnoTim3 жыл бұрын
Yeah, that installs prometheus, grafana, alert manager, and everything to log and alert for an entire cluster. Prometheus uses a lot of cycles. This is much lighter and you can actually send all your logs from your cluster using this.