Jump to content

Command Crate ¿about?

Delete mentions of specific words in cPanel logs

find ~/logs ~/access-logs ~/tmp/{analog,awstats,webalizer,webalizerftp} -type f \( -name "*.log" -o -name "*.txt" -o -name "*.rs" -o -name "*90a3ac" \) -exec sed -i -E '/djura|dura|80a5ai3dd|pohokolius|--90a3ac/Id' {} +

Searches cPanel log files for specific keywords (e.g., "djura", "dura", etc.) and deletes any lines that contain them.

log management [kb:93]