Skip to content
/ HScan Public

Linux主机日志分析排查脚本,定制化在主机中执行命令

License

Notifications You must be signed in to change notification settings

HZzz2/HScan

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HScan

本脚本旨在为安全应急响应人员对Linux主机排查,日志分析等提供便利,定制化在主机中执行命令

获取脚本

git clone https://github.com/HZzz2/HScan.git

cd HScan

使用脚本

python log_analysis.py     #默认输出至当前目录out_log_analysis.txt
或者
python log_analysis.py out.txt  #进行指定输出至out.txt

查看输出

cat out_log_analysis.txt image

在配置文件中添加需要执行的命令

vim log.cfg

image

可以在定时任务中设置每天八点执行此脚本。

vim /etc/crontab

00 8 * * * root python3 /you_path/HScan/log_analysis.py

About

Linux主机日志分析排查脚本,定制化在主机中执行命令

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages