Linux Emergency Response – Common Service Logs

Linux Emergency Response - Common Service Logs

System Logs btmp /var/log/btmp records all login attempts that failed, displaying the last ten entries. root@mon0dy-ubuntu:~# lastb –time-format iso -10 root ssh:notty 58.56.52.226 2023-03-11T14:30:23+0800 – 2023-03-11T14:30:23+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:20+0800 – 2023-03-11T14:30:20+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:16+0800 – 2023-03-11T14:30:16+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:05+0800 – 2023-03-11T14:30:05+0800 (00:00) root ssh:notty 58.56.52.226 2023-03-11T14:30:02+0800 – 2023-03-11T14:30:02+0800 (00:00) … Read more

I Tried Using SQL to Query Linux Logs, and It Works Amazingly Well

I Tried Using SQL to Query Linux Logs, and It Works Amazingly Well

Let’s grow together every evening at 18:00! Recently, I discovered some interesting tools and couldn’t wait to share them with everyone. How do you usually check <span>Linux</span> logs? Personally, I often use <span>tail</span>, <span>head</span>, <span>cat</span>, <span>sed</span>, <span>more</span>, and <span>less</span>— these classic system commands, or tools like <span>awk</span> for data filtering, which work together efficiently. However, … Read more