BASH_SRV Telegram 63
Ускоряем работу с логами через Bash

Часто приходится искать ошибки в огромных логах?
Вот удобный однострочник, который найдёт все строки с ошибками за последние N минут:


grep "$(date --date='5 min ago' '+%b %_d %H:%M')" /var/log/syslog | grep -i "error"


🔹 Замените 5 на нужное количество минут.
🔹 Работает для логов, где стандартный формат даты (%b %_d %H:%M), например /var/log/syslog, /var/log/auth.log.
🔹 Ключ -i делает поиск нечувствительным к регистру.


Теперь вы всегда увидите самые свежие ошибки без пролистывания тысяч строк!

👉@bash_srv
👍12👎1



tgoop.com/bash_srv/63
Create:
Last Update:

Ускоряем работу с логами через Bash

Часто приходится искать ошибки в огромных логах?
Вот удобный однострочник, который найдёт все строки с ошибками за последние N минут:


grep "$(date --date='5 min ago' '+%b %_d %H:%M')" /var/log/syslog | grep -i "error"


🔹 Замените 5 на нужное количество минут.
🔹 Работает для логов, где стандартный формат даты (%b %_d %H:%M), например /var/log/syslog, /var/log/auth.log.
🔹 Ключ -i делает поиск нечувствительным к регистру.


Теперь вы всегда увидите самые свежие ошибки без пролистывания тысяч строк!

👉@bash_srv

BY Bash Советы




Share with your friend now:
tgoop.com/bash_srv/63

View MORE
Open in Telegram


Telegram News

Date: |

Matt Hussey, editorial director of NEAR Protocol (and former editor-in-chief of Decrypt) responded to the news of the Telegram group with “#meIRL.” Among the requests, the Brazilian electoral Court wanted to know if they could obtain data on the origins of malicious content posted on the platform. According to the TSE, this would enable the authorities to track false content and identify the user responsible for publishing it in the first place. bank east asia october 20 kowloon The group’s featured image is of a Pepe frog yelling, often referred to as the “REEEEEEE” meme. Pepe the Frog was created back in 2005 by Matt Furie and has since become an internet symbol for meme culture and “degen” culture. The public channel had more than 109,000 subscribers, Judge Hui said. Ng had the power to remove or amend the messages in the channel, but he “allowed them to exist.”
from us


Telegram Bash Советы
FROM American