
$ apt update
$ apt-get install curl gnupg2 wget –y
$ curl -fsSL https://download.opensuse.org/repositories/security:zeek/xUbuntu_20.04/Release.key | gpg --dearmor | tee /etc/apt/trusted.gpg.d/security_zeek.gpg
$ echo 'deb http://download.opensuse.org/repositories/security:/zeek/xUbuntu_20.04/ /' | tee /etc/apt/sources.list.d/security:zeek.list
$ apt update -y
$ apt-get install zeek -y
$ echo "export PATH=$PATH:/opt/zeek/bin" >> ~/.bashrc
$ source ~/.bashrc
$ zeek --version

$ cd /otp/zeek/etc
$ nano networks.cfg




$ zeekctl check
$ zeekctl deploy
$ zeekctl status

WebServer 가상머신
$ service httpd start $ service iptables start
$ cd /opt/zeek/spool/zeek
$ ls -l

$ nanao http.log

$ nanao dns.log



/opt/zeek/spool/zeek 에서 일정 시간이 지나면 로그를 압축 파일로 만들어 /opt/zeek/logs 에 날짜별로 저장해 놓는다.
$ cd /opt/zeek/logs
$ ls -l

$ cd 2024-01-09
$ ls -l

tcp 22포트 방화벽 열기

/tmp 는 sticky bit 설정이 되어 있기 때문에 기타 사용자도 여기에 파일을 만들 수 있다. 별도의 로그 디렉토리를 만들지 않고 /tmp를 사용할 것이다.

$ scp http.log splunk@192.168.10.10:/tmp

/tmp 에서 파일 리스트를 확인하면
