nginx 액세스 로그에서 동시에 다른 IP를 찾아야 합니다.
내 로그는 다음과 같습니다
5.218.148.20 - - [28/Nov/2022:18:49:07 +0330] "GET /family HTTP/1.1" 101 8140 "-" "Go-http-client/1.1"
5.213.114.236 - - [28/Nov/2022:18:49:10 +0330] "GET /family HTTP/1.1" 101 843 "-" "Go-http-client/1.1"
5.127.44.101 - - [28/Nov/2022:18:49:18 +0330] "GET /family HTTP/1.1" 101 167 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:49:20 +0330] "GET /family HTTP/1.1" 101 382 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:49:25 +0330] "GET /family HTTP/1.1" 101 8560 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:49:34 +0330] "GET /family HTTP/1.1" 101 304 "-" "Go-http-client/1.1"
5.218.148.20 - - [28/Nov/2022:18:49:39 +0330] "GET /family HTTP/1.1" 101 6182 "-" "Go-http-client/1.1"
5.218.148.20 - - [28/Nov/2022:18:49:40 +0330] "GET /family HTTP/1.1" 101 1653 "-" "Go-http-client/1.1"
5.127.44.101 - - [28/Nov/2022:18:49:43 +0330] "GET /family HTTP/1.1" 101 609 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:49:45 +0330] "GET /family HTTP/1.1" 101 607 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:49:54 +0330] "GET /family HTTP/1.1" 101 3125 "-" "Go-http-client/1.1"
5.218.148.20 - - [28/Nov/2022:18:49:56 +0330] "GET /family HTTP/1.1" 101 6005 "-" "Go-http-client/1.1"
5.127.44.101 - - [28/Nov/2022:18:50:02 +0330] "GET /family HTTP/1.1" 101 1026 "-" "Go-http-client/1.1"
5.213.114.236 - - [28/Nov/2022:18:50:09 +0330] "GET /family HTTP/1.1" 101 607 "-" "Go-http-client/1.1"
5.213.114.236 - - [28/Nov/2022:18:50:12 +0330] "GET /family HTTP/1.1" 101 670 "-" "Go-http-client/1.1"
5.127.236.49 - - [28/Nov/2022:18:50:22 +0330] "GET /family HTTP/1.1" 101 340 "-" "Go-http-client/1.1"
5.127.236.49 - - [28/Nov/2022:18:50:28 +0330] "GET /family HTTP/1.1" 101 607 "-" "Go-http-client/1.1"
5.127.236.49 - - [28/Nov/2022:18:50:34 +0330] "GET /family HTTP/1.1" 101 1026 "-" "Go-http-client/1.1"
5.213.114.236 - - [28/Nov/2022:18:50:35 +0330] "GET /family HTTP/1.1" 101 469 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:50:37 +0330] "GET /family HTTP/1.1" 101 1026 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:50:40 +0330] "GET /family HTTP/1.1" 101 1534 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:50:47 +0330] "GET /family HTTP/1.1" 101 1019 "-" "Go-http-client/1.1"
5.127.44.101 - - [28/Nov/2022:18:50:47 +0330] "GET /family HTTP/1.1" 101 609 "-" "Go-http-client/1.1"
5.127.75.210 - - [28/Nov/2022:18:50:49 +0330] "GET /family HTTP/1.1" 101 4267 "-" "Go-http-client/1.1"
예를 들어 다음 두 줄을 찾고 싶습니다.
5.127.75.210 - - [28/Nov/2022:18:50:47 +0330] "GET /family HTTP/1.1" 101 1019 "-" "Go-http-client/1.1"
5.127.44.101 - - [28/Nov/2022:18:50:47 +0330] "GET /family HTTP/1.1" 101 609 "-" "Go-http-client/1.1"
1시간마다 실행되고 모든 다른 IP를 찾는 bash 스크립트를 사용할 수 있다면 기쁠 것입니다. 감사합니다.