Linux (ESXi/Misc) Working with log files
- find /var/log/ -name *.log -mtime +1 -exec ls -tl {} \;
- find /var/log/ -name *.log -mtime +1 -exec rm -f {} \;
- egrep 'segfault|fail|denied|oops|warn' /var/log/*
- tail -f /var/log/mcelog
- tail -f /var/log/vmkernel.log
- grep -c "hardware error" /var/log/mcelog
- grep -i "hardware error" /var/log/mcelog
- grep -c "hardware error" /var/log/vmkernel.log
- grep -i "hardware error" /var/log/vmkernel.log
- grep -r "audit" *
- grep -r "error" *
- Clear Log Files
- cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls {} \;
- cd /; find /vmfs/volumes/ -name vmware-*.log -mtime +1 -exec ls {} \; | xargs rm
No comments:
Post a Comment