instruction
stringlengths
0
10.5k
โŒ€
input
stringlengths
0
9.24k
โŒ€
output
stringlengths
0
8.56k
O2O_risky_event_occurred (SHB) ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
์‹ ํ•œ์€ํ–‰ O2O ๊ตฌ๊ฐ„ ๋Œ€์ƒ, ๋น„์ธ๊ฐ€ ์ ‘๊ทผ ์‹œ๋„ ํƒ์ง€ ์‹œ๋‚˜๋ฆฌ์˜ค ๋ฐ˜๋ณต์ฃผ๊ธฐ : 5๋ถ„ ์œ„ํ—˜๋„ : Medium
Hacker_Using_Specific_AttackTools_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ๊ณต๊ฒฉ์ž ๋„๊ตฌ๋ฅผ ์ด์šฉํ•œ ๋น„์ธ๊ฐ€ ์ ‘์† ์‹œ๋„ ํƒ์ง€ ์‹œ๋‚˜๋ฆฌ์˜ค [์˜ํ–ฅ๋„] ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํŠน์ •์‹œ์Šคํ…œ์˜ ์„œ๋น„์Šค, ๋‚ด๋ถ€์ž์‚ฐ(OS,๋ฒ„์ „), ๊ณต๊ฒฉ ๊ฐ€๋Šฅํ•œ ์ทจ์•ฝ์  ์ •๋ณด๊ฐ€ ๋…ธ์ถœ๋  ์ˆ˜ ์žˆ์Œ [ํƒ์ง€ ์กฐ๊ฑด] ๋ณด์•ˆ์žฅ๋น„์—์„œ ๋™์ผํ•œ IP์— ๋Œ€ํ•ด 10๋ถ„๋‚ด ์•…์„ฑ UserAgent 2๊ฑด์ด์ƒ ํƒ์ง€์‹œ ๋ฐœ์ƒ
Access_to_Default/Admin_page_of_system_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ํด๋ผ์šฐ๋“œ ๊ตฌ๊ฐ„์— ์ ์šฉ๋œ ์‹œ๋‚˜๋ฆฌ์˜ค๋กœ ๋น„๊ถŒํ•œ์ž์˜ Default Page/ ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€ ์ ‘๊ทผ ์‹œ๋„ ํƒ์ง€ ์‹œ๋‚˜๋ฆฌ์˜ค [์˜ํ–ฅ๋„] ๋น„๊ถŒํ•œ์ž์—๊ฒŒ ๊ด€๋ฆฌ์žํŽ˜์ด์ง€, Default Page ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] ๋ณด์•ˆ์žฅ๋น„์—์„œ ๊ธฐ๋ณธ ํŽ˜์ด์ง€ ๋ฐ ๊ด€๋ฆฌ์žํŽ˜์ด์ง€ ์ ‘๊ทผํ•˜๋Š” ๋กœ๊ทธ ํƒ์ง€์‹œ ๋ฐœ์ƒ
Brute_force_attack(repetitive_failure_of_user_authentication)_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ๋น„๊ถŒํ•œ์ž์˜ ํด๋ผ์šฐ๋“œ ๊ณ„์ • ์ ‘๊ทผ ์‹œ๋„ ํƒ์ง€ ์‹œ๋‚˜๋ฆฌ์˜ค [์˜ํ–ฅ๋„] ๋น„์ธ๊ฐ€์ž ์ ‘๊ทผ , ๊ณ ๊ฐ ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] ํด๋ผ์šฐ๋“œ ์›น ์ฝ˜์†”์—์„œ ์ถœ๋ฐœ์ง€ IP๋กœ ๋กœ๊ทธ์ธ ์ธ์ฆ ๋ฐ˜๋ณต ์‹คํŒจ์‹œ ์‹œ๋‚˜๋ฆฌ์˜ค ๋ฐœ์ƒ ๋กœ๊ทธ์ธ ์‹คํŒจ 5ํšŒ์ด์ƒ ๋ฐœ์ƒ(ํ•˜๋‚˜์˜ ๊ณ„์ •์€ ๋กœ๊ทธ์ธ 5ํšŒ ์‹คํŒจ์‹œ ๊ณ„์ • ์ž ๊น€)
Inactive_account_access_attempts_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ์ผ์ • ๊ธฐ๊ฐ„ ์ ‘์†์ด ๋˜ ์‚ฌ์šฉ์ž์˜ ์ ‘์† ์ด๋ ฅ ํ™•์ธ์šฉ ์‹œ๋‚˜๋ฆฌ์˜ค [์˜ํ–ฅ๋„] - [ํƒ์ง€์กฐ๊ฑด] ํด๋ผ์šฐ๋“œ ์›น ์ฝ˜์†”์—์„œ 30์ผ ์ด์ƒ ๋กœ๊ทธ์ธ ์‹œ๋„ ์—†๋Š” User ID๋กœ ๋กœ๊ทธ์ธ 1ํšŒ ๋ฐœ์ƒ์‹œ ์‹œ๋‚˜๋ฆฌ์˜ค ๋ฐœ์ƒ
Trying_to_use_config_service(not_permitted)_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ๋น„๊ถŒํ•œ์ž์˜ ํด๋ผ์šฐ๋“œ ์ •์ฑ… ์ ‘๊ทผ ์‹œ๋„ ํƒ์ง€ [์˜ํ–ฅ๋„] ๋น„์ธ๊ฐ€ ์ ‘๊ทผ ํ—ˆ์šฉ [ํƒ์ง€์กฐ๊ฑด] ํด๋ผ์šฐ๋“œ ์ •์ฑ… ์ ‘๊ทผ ์‹คํŒจ ๋กœ๊ทธ 5ํšŒ ์ด์ƒ ๋ฐœ์ƒ์‹œ ํƒ์ง€
GuardDuty_risky_event_occurred_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] AWS GuardDuty์— ์˜ํ•œ ์œ„ํ˜‘ ์ด๋ฒคํŠธ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] Exploit ๊ณต๋žต, ๋น„์ธ๊ฐ€ ์ ‘๊ทผ [ํƒ์ง€์กฐ๊ฑด] โ‘  ํŠน์ • ๊ตฌ๊ฐ„(aws:guardduty)ย  ๋น„์ธ๊ฐ€ ์ ‘๊ทผ์— ๋Œ€ํ•œ ํƒ์ง€ โ‘ก ์‚ฌ์šฉ์ž ์ •์˜์— ์˜ํ•œ guardduty ์กฐ๊ฑด ๋งŒ์กฑ ์‹œ ํƒ์ง€
2Factor_Authentication_Detection_Cloud
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] 2Factor ์ธ์ฆ๋˜์ง€ ์•Š์€ ์‚ฌ์šฉ์ž์˜ ์ ‘์† ์ด๋ ฅ ํ™•์ธ [์˜ํ–ฅ๋„] [ํƒ์ง€์กฐ๊ฑด] ํด๋ผ์šฐ๋“œ ์›น ์ฝ˜์†”์—์„œ 2Factor ์ธ์ฆ์„ย  ๊ฑฐ์น˜์ง€ ์•Š๋Š” User ID ๋กœ๊ทธ์ธ 1ํšŒ ๋ฐœ์ƒ ์‹œ ํƒ์ง€
File_uploaded_using_PUT_POST_methods_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ํŒŒ์ผ์—…๋กœ๋“œ ์‹œ๋„ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] ์›น์‰˜ ์—…๋กœ๋“œ๋กœ ์„œ๋ฒ„ ๊ถŒํ•œ ํš๋“ [ํƒ์ง€์กฐ๊ฑด] ๊ฐ€. ํด๋ผ์šฐ๋“œ WAF ์žฅ๋น„๋กœ ๋ถ€ํ„ฐ, ํŠน์ • S-IP์˜ ๋ฐ์ดํ„ฐ ๋กœ๊ทธ๊ฐ€ ํด๋ผ์šฐ๋“œ WAF ์ด๋ฒคํŠธ ์‘๋‹ต ๊ฐ’์ด allowed ์— ๋Œ€ํ•ด์„œ๋งŒ 1ํšŒ ์ด์ƒ ํ™•์ธ ์‹œ ํƒ์ง€ ๋‚˜. PUT ๋ฉ”์†Œ๋“œ์˜ ๊ฒฝ์šฐ uri ๊ฐ’์— .asp, .exe, .jsp, .php ๋“ฑ ์กด์žฌ ์‹œ
Search_WebScanning_Attack_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ๊ฒฝ๊ณ„๊ตฌ๊ฐ„์—์„œ ์Šค์บ” ํ–‰์œ„๋กœ ํƒ์ง€๋œ IP์— ๋Œ€ํ•ด ์ถ”๊ฐ€๋กœ ์Šค์บ๋‹ํ•˜๋Š” ๊ฒฝ์šฐ ํƒ์ง€ [์˜ํ–ฅ๋„] ๋‚ด๋ถ€ ์ž์‚ฐ(IP) ์ทจ์•ฝ์  ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] โ‘  ์Šค์บ” ํ–‰์œ„๋กœ ํƒ์ง€๋œ S-IP์˜ Allow ๋กœ๊ทธ์—์„œ ์ถ”๊ฐ€๋กœ ์›น์Šค์บ๋‹์„ ์‹œ๋„ํ•˜๋Š” ๊ฒฝ์šฐ ํƒ์ง€
Access_to_multi-servers_of_ShinhanGroup_simultaneously_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ํŠน์ • ๊ณต๊ฒฉ์ž๊ฐ€ ์‹ ํ•œ๊ธˆ์œต๊ทธ๋ฃน ๋‹ค์ˆ˜ ๊ณ„์—ด์‚ฌ๋ฅผ ๋Œ€์ƒ์œผ๋กœ ๊ณต๊ฒฉํ•˜๋Š” ํ˜„์ƒ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] - [ํƒ์ง€์กฐ๊ฑด] ์˜จํ”„๋ ˆ๋ฏธ์Šค ๋Œ€์ƒ์˜ ํŠน์ • S-IP๊ฐ€ 1์‹œ๊ฐ„ ์ด๋‚ด 5๊ฐœ ์ด์ƒ ๊ทธ๋ฃน์‚ฌ๋กœ ํƒ์ง€ ์ด๋ฒคํŠธ๊ฐ€ ๋ฐœ์ƒํ•œ ๊ฒฝ์šฐ๋ฅผ ํƒ์ง€
SQL Injection with Long URLs - Rule_Cloud ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] SQL ์ธ์ ์…˜์„ ๋ฐœ์ƒ์‹œํ‚ฌ์ˆ˜ ์žˆ๋Š” URL ๋ฌธ์ž์—ด ์ด๋ฒคํŠธ ํƒ์ง€ [์˜ํ–ฅ๋„] ๋‚ด๋ถ€์ •๋ณด ๋…ธ์ถœ ๋˜๋Š” ๊ถŒํ•œ ์ƒ์Šน [ํƒ์ง€์กฐ๊ฑด] 1. Resource ย ย  ๊ฐ€. โ‘  ๊ตฌ๊ฐ„ โ€“ ๋„คํŠธ์›Œํฌ ํŒจํ‚ท ํด๋ผ์šฐ๋“œ WAF 2. ํƒ์ง€ ๋ฐฉ๋ฒ• ย ย  โ€œโ‘ โ‘กโ€ url ์ฟผ๋ฆฌ๋‚ดย  SQL inject ๊ด€๋ จย  ๋ฌธ์ž์—ด 3๊ฑด ์ด์ƒ ํฌํ•จ ์‹œ ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  1) url ์ฟผ๋ฆฌ sql injection ๋ฌธ์ž์—ด ๊ฒ€์ƒ‰ ย ย ย ย ย ย ย ย ย ย ย ย ย ย ย  2) sql injection ๋ฌธ์ž์—ด 3๊ฑด ์ด์ƒ ์ผ์น˜
Hacker_Scanning_IP ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ๊ฒฝ๊ณ„๊ตฌ๊ฐ„์—์„œ ํ•ดํ‚น ๋Œ€์ƒ ํƒ์ƒ‰์„ ์œ„ํ•ด IP ๋Œ€์—ญ์— ๋Œ€ํ•ด ์Šค์บ๋‹ ํ•˜๋Š” ๊ฒฝ์šฐ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํ˜ธ์ŠคํŠธ์˜ ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€๋ชฉ์ ] ํŠน์ • S-IP์˜ Allow/Deny ๋กœ๊ทธ์—์„œ D-IP๊ฐ€ Cํด๋ž˜์Šค๋กœ 3๋ถ„๊ฐ„ 100๊ฐœ ์ด์ƒ ์„œ๋กœ ๋‹ค๋ฅธ IP ์ ‘์†ํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ํƒ์ง€
Hacker_Scanning_Port#1(system) ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ๋„คํŠธ์›Œํฌ ๋Œ€์—ญ์˜ ๋ถˆํŠน์ • ์‹œ์Šคํ…œ์—์„œ ์‚ฌ์šฉ์ค‘์ธ ์„œ๋น„์Šค ํƒ์ƒ‰ ๋ชฉ์  [์˜ํ–ฅ๋„] ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํŠน์ • ์„œ๋น„์Šค Port์˜ ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] Allow/Deny ๋กœ๊ทธ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ํŠน์ • S-IP์—์„œ 3๋ถ„ ์ด๋‚ด 100๊ฐœ ์ด์ƒ ์„œ๋กœ ๋‹ค๋ฅธ ํฌํŠธ๋ฅผ ์ ‘์†์‹œ๋„ํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ํƒ์ง€
Hacker_Scanning_Port#2(Network_Range) ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค ์„ค๋ช…] ํŠน์ •ํ•œ ํ•ดํ‚น ๋Œ€์ƒ(์‹œ์Šคํ…œ)์—์„œ ์‚ฌ์šฉ์ค‘์ธ ์„œ๋น„์Šค ํƒ์ƒ‰ ๋ชฉ์  [์˜ํ–ฅ๋„] ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํŠน์ • ์„œ๋น„์Šค Port์˜ ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] Allow/Deny ๋กœ๊ทธ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ํŠน์ • S-IP์—์„œ ๋ฐœ์ƒํ•œ ๋กœ๊ทธ์˜ D-Port๋ฅผ Countingํ•˜์—ฌ 3๋ถ„ ์ด๋‚ด 50๊ฐœ ์ด์ƒ ํฌํŠธ๋กœ ์ ‘์†์‹œ๋„ํ•˜๋Š” ๊ฒฝ์šฐ๋ฅผ ํƒ์ง€
Hacker_Using_Specific_AttackTools ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ๊ณต๊ฒฉ์ž์˜ ๋„๊ตฌ๋ฅผ ์ด์šฉํ•œ ๋น„์ธ๊ฐ€ ์ ‘์† ์‹œ๋„ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] ์™ธ๋ถ€์—์„œ ์ ‘๊ทผ ๊ฐ€๋Šฅํ•œ ํŠน์ •์‹œ์Šคํ…œ์˜ ์„œ๋น„์Šค, ๋‚ด๋ถ€์ž์‚ฐ(OS, ๋ฒ„์ „), ๊ณต๊ฒฉ ๊ฐ€๋Šฅํ•œ ์ทจ์•ฝ์  ์ •๋ณด ๋…ธ์ถœ [ํƒ์ง€์กฐ๊ฑด] ํŠน์ • S-IP์— ๋Œ€ํ•ด IPS๋‚˜ WAF์—์„œ ํƒ์ง€๋œ ๋กœ๊ทธ์˜ User-Agent ์ •๋ณด๋ฅผ ํ™•์ธํ•˜์—ฌ "1-๋‚˜-โ‘ก์˜ Tool๋ช…"์ด 10๋ถ„ ์ด๋‚ด 2๊ฐœ ์ด์ƒ ์žˆ๋Š” ๊ฒฝ์šฐ ํƒ์ง€ (โ€ปTool์— ๊ด€๊ณ„์—†์ด 2๊ฑด ์ด์ƒ์ด๋ฉด ํƒ์ง€)
Access_to_Defaul/Admin_page_of_system ์‹œ๋‚˜๋ฆฌ์˜ค์— ๋Œ€ํ•ด ์„ค๋ช… ํ•ด์ค˜
[์‹œ๋‚˜๋ฆฌ์˜ค์„ค๋ช…] ๋น„๊ถŒํ•œ์ž์˜ Default Page / ๊ด€๋ฆฌ์ž ํŽ˜์ด์ง€ ์ ‘๊ทผ ์‹œ๋„ ํƒ์ง€ ๋ชฉ์  [์˜ํ–ฅ๋„] ๋น„๊ถŒํ•œ์ž์—๊ฒŒ ๊ด€๋ฆฌ์žํŽ˜์ด์ง€, Default Page ๋…ธ์ถœ ๊ฐ€๋Šฅ [ํƒ์ง€์กฐ๊ฑด] IPS ๋˜๋Š” WAF์—์„œ raw_data ๋˜๋Š” signature์— default_page ์ ‘๊ทผ ๋‚ด์šฉ์ด ์žˆ๋Š” ๊ฒฝ์šฐ ํƒ์ง€ ํƒ์ง€๋œ ๋กœ๊ทธ์˜ S-IP๊ฐ€ ์ตœ๊ทผ 1๊ฐœ์›” ์ด๋‚ด ์ ‘์†๊ธฐ๋ก(ํƒ์ง€ ๋กœ๊ทธ)์ด ์—†๋Š” ๊ฒฝ์šฐ๋กœ ์ œํ•œ
SPLUNK์—์„œ ๋Œ€์‹œ๋ณด๋“œ ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
| rest /servicesNS/-/-/data/ui/views | search eai:type="views" | table title eai:data
SPLUNK์—์„œ SavedSearch ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
| rest /services/saved/searches |rename auto_summarize.* as a_*, eai:acl.* as * |table title, search, cron_schedule, app, author, description, updated, acl_share, acl_write, status
SPLUNK์—์„œ ๋งคํฌ๋กœ ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
| rest /servicesNS/-/-/admin/macros splunk_server=local | rename title as Macro_Name, author as user, eai:acl.*, definition as query |table Macro_Name, args, query, name, app, "perms,read", "perms,write", updated
์‹ ํ•œ๊ธˆ์œต์ง€์ฃผ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfg_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œ๊ธˆ์œต์ง€์ฃผ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfg_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ๊ธˆ์œต์ง€์ฃผ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfg_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ๊ธˆ์œต์ง€์ฃผ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfg_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์€ํ–‰ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shb_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œ์€ํ–‰ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shb_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์€ํ–‰ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shb_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์€ํ–‰ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shb_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์นด๋“œ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shc_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œ์นด๋“œ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shc_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์นด๋“œ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shc_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ์นด๋“œ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shc_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œํˆฌ์ž์ฆ๊ถŒ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shi_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œํˆฌ์ž์ฆ๊ถŒ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shi_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œํˆฌ์ž์ฆ๊ถŒ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shi_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œํˆฌ์ž์ฆ๊ถŒ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shi_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ๋ผ์ดํ”„ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shl_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œ๋ผ์ดํ”„ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shl_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ๋ผ์ดํ”„ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shl_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œ๋ผ์ดํ”„ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shl_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์บํ”ผํƒˆ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=cap_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์บํ”ผํƒˆ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=cap_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์บํ”ผํƒˆ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=cap_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์บํ”ผํƒˆ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=cap_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์šด์šฉ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sam_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์ž์‚ฐ์šด์šฉ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sam_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์šด์šฉ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sam_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์šด์šฉ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sam_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ œ์ฃผ์€ํ–‰ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=jjb_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์ œ์ฃผ์€ํ–‰ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=jjb_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ œ์ฃผ์€ํ–‰ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=jjb_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ œ์ฃผ์€ํ–‰ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=jjb_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ €์ถ•์€ํ–‰ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sav_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์ €์ถ•์€ํ–‰ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sav_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ €์ถ•์€ํ–‰ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sav_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ €์ถ•์€ํ–‰ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sav_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์‹ ํƒ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sat_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์ž์‚ฐ์‹ ํƒ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sat_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์‹ ํƒ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sat_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ž์‚ฐ์‹ ํƒ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sat_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œDS ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sds_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ํ•œDS WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sds_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œDS IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sds_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ํ•œDS DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sds_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
ํŽ€๋“œํŒŒํŠธ๋„ˆ์Šค ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfp_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
ํŽ€๋“œํŒŒํŠธ๋„ˆ์Šค WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfp_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
ํŽ€๋“œํŒŒํŠธ๋„ˆ์Šค IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfp_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
ํŽ€๋“œํŒŒํŠธ๋„ˆ์Šค DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sfp_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ์šฉ์ •๋ณด ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sci_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
์‹ ์šฉ์ •๋ณด WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sci_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ์šฉ์ •๋ณด IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sci_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์‹ ์šฉ์ •๋ณด DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sci_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ทธ๋ฃน๊ณตํ†ต ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sgc_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
๊ทธ๋ฃน๊ณตํ†ต WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sgc_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ทธ๋ฃน๊ณตํ†ต IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sgc_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ทธ๋ฃน๊ณตํ†ต DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sgc_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
EZ์†ํ•ด๋ณดํ—˜ ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sez_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
EZ์†ํ•ด๋ณดํ—˜ WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sez_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
EZ์†ํ•ด๋ณดํ—˜ IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sez_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
EZ์†ํ•ด๋ณดํ—˜ DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sez_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ธˆ์œตํ”Œ๋Ÿฌ์Šค ๋ฐฉํ™”๋ฒฝ์—์„œ ์ตœ๊ทผ 10๋ถ„๋™์•ˆ ์‚ฌ์ดํŠธ ๋ณ„ ํŠธ๋ž˜ํ”ฝ ํŠน์ด์‚ฌํ•ญ์„ ํ™•์ธํ• ์ˆ˜ ์žˆ๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shp_fw earliest=-10m@m latest=nowย  | stats min(_time) as s_time, max(_time) as e_time, first(src) as src, dc(src) as src_cnt, first(src_port) as src_port, dc(src_port) as src_port_cnt, first(dest_port) as dest_port, dc(dest_port) as dest_port_cnt sum(bytes_in) as inbound, sum(bytes_out) as outbound count by dest, action | sort - inbound limit=0 | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval inbound=case(inbound>1073741824,round(inbound/1024/1024/1024,2)."(GB)", inbound>1048576,round(inbound/1024/1024,2)."(MB)",inbound>1024,floor(inbound/1024)."(KB)",true(),inbound."(Byte)"), outbound=case(outbound>1073741824,round(outbound/1024/1024/1024,2)."(GB)", outbound>1048576,round(outbound/1024/1024,2)."(MB)",outbound>1024,floor(outbound/1024)."(KB)",true(),outbound."(Byte)"), diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table dest, action, inbound, outbound, count, s_time,e_time, diff, src, src_port, dest_port | rename dest as ๋ชฉ์ ์ง€, action as ์ฐจ๋‹จ์—ฌ๋ถ€, inbound as ์ธ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, outbound as ์•„์›ƒ๋ฐ”์šด๋“œํŠธ๋ž˜ํ”ฝ, count as ์š”์ฒญ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€ํฌํŠธ, dest_port as ๋ชฉ์ ์ง€ํฌํŠธ
๊ธˆ์œตํ”Œ๋Ÿฌ์Šค WAF์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shp_waf earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ธˆ์œตํ”Œ๋Ÿฌ์Šค IPS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shp_ips earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature | eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T") | eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port) | eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ") | table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port | rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
๊ธˆ์œตํ”Œ๋Ÿฌ์Šค DDOS์—์„œ ์ตœ๊ทผ 1์‹œ๊ฐ„ ๋™์•ˆ ๋ฐœ์ƒํ•œ ์ด๋ฒคํŠธ๋ฅผ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=shp_ddos earliest=-1h@h latest=now | stats count(eval(action="allowed")) as allow_cnt, count(eval(action="blocked")) as block_cnt, earliest(src) as src, dc(src) as src_cnt, earliest(src_port) as src_port, dc(src_port) as src_port_cnt, earliest(dest) as dest, dc(dest) as dest_cnt, earliest(dest_port) as dest_port, dc(dest_port) as dest_port_cnt, min(_time) as s_time, max(_time) as e_time, values(device_role) as device_role count as all_cnt by signature\"\"| eval diff=e_time - s_time, s_time=strftime(s_time,"%F %T"), e_time=strftime(e_time,"%F %T")\"| eval src=if(src_cnt>1,src."๋“ฑ ".src_cnt."๊ฐœ IP",src), src_port=if(src_port_cnt>1,src_port."๋“ฑ ".src_port_cnt."๊ฐœ IP",src_port), dest=if(dest_cnt>1,dest."๋“ฑ ".dest_cnt."๊ฐœ IP",dest), dest_port=if(dest_port_cnt>1,dest_port."๋“ฑ ".dest_port_cnt."๊ฐœ IP",dest_port)\"| eval all_cnt=all_cnt."๊ฑด (ํƒ์ง€:".allow_cnt."๊ฑด/ ์ฐจ๋‹จ:".block_cnt."๊ฑด)", diff=case(diff>86400,floor(diff/86400)."์ผ ".floor((diff%86400)/3600)."์‹œ ". floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>3600,floor((diff%86400)/3600)."์‹œ ".floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",diff>60,floor(((diff%86400)%3600)/60)."๋ถ„ ".floor((((diff%86400)%3600)%60))."์ดˆ",true(),floor((((diff%86400)%3600)%60))."์ดˆ")\"| table signature, all_cnt, s_time, e_time, diff, device_role, src, src_port, dest, dest_port\"| rename signature as ์ด๋ฒคํŠธ๋ช…, all_cnt as ๊ฑด์ˆ˜, s_time as ์‹œ์ž‘์‹œ๊ฐ„, e_time as ๋งˆ์ง€๋ง‰์‹œ๊ฐ„, diff as ์—ฐ๊ฒฐ์œ ์ง€์‹œ๊ฐ„, device_role as ํƒ์ง€์žฅ๋น„, src as ์ถœ๋ฐœ์ง€, src_port as ์ถœ๋ฐœ์ง€IP, dest as ๋ชฉ์ ์ง€, dest_port as ๋ชฉ์ ์ง€Port
์ตœ๊ทผ 24์‹œ๊ฐ„ ๋™์•ˆ ๋žœ์„ฌ์›จ์–ด ์˜์‹ฌ ๋ฉ”์ผ ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=sgc_mail ("ransome" OR "๋žœ์„ฌ" OR "bitcoin" OR "๋น„ํŠธ์ฝ”์ธ" OR "DDos" OR "๊ณต๊ฒฉ" OR "@protonmail.com" OR "@aaathats3as.com" OR "@startmail.com" OR "attack") earliest=-24h@h latest=now | eval EF=coalesce(EF,senderEmail), ER=coalesce(ER,fromEmail), SJ=coalesce(SJ,subject) | eval time=strftime(_time,"%F %T") | table time, EF, ER, SJ | where isnotnull(SJ) | sort - _time | rename time as ์œ ์ž…์‹œ๊ฐ„, EF as ๋ฐœ์‹ ์ž, ER as ์ˆ˜์‹ ์ž, SJ as ์ œ๋ชฉ
ํ‰์ƒ์‹œ ๋Œ€๋น„ ์ด๋ฒคํŠธ๊ฐ€ ๊ธ‰์ฆํ•˜๋Š” ์ด๋ฒคํŠธ ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=summary_data AND (search_name="Event_Spike_Alerting" OR orig_rule_name="Threat - Anomaly_HomePage_Access_Attempt(JJB) - Rule")ย  | eval alert=if(isnull(alert),orig_rule_name,alert)ย  | table alert src
์ตœ๊ทผ 24์‹œ๊ฐ„ ๋™์•ˆ NICDOWN์ด ๋ฐœ์ƒํ•œ ์žฅ๋น„ ๋ชฉ๋ก์„ ํ™•์ธํ•˜๋Š” ์ฟผ๋ฆฌ๋ฅผ ๋งŒ๋“ค์–ด์ค˜
index=summary_data OR index=shb_waf AND (source="HC - Not Received Availability (10min Over)-*" OR source="HC - Event Log Not Received-1*" ORย  source="HC - Event dectect*" OR source="*System Event Log Error-*" OR source="*FW_๊ด€๋ฆฌ๊ณ„์ •_๋กœ๊ทธ์ธ์‹œ๋„*" OR source="*WIPS_UP/DOWN Event*" OR source="*WAF Interface Down Event*" OR source="*Tipping_Point System Event Log Error-*" OR sourcetype="waf:system") AND ("*LINK*" OR "*NIC*") earliest=-24h@h latest=now
Splunk Machine Learning Toolkit์—์„œ ์ฝ”๋ฑ์€ ์–ด๋–ค ์—ญํ• ์„ ํ•˜๋‚˜์š”?
MLTK์—์„œ ์ฝ”๋ฑ์€ ์•Œ๊ณ ๋ฆฌ์ฆ˜ ๋ชจ๋ธ์„ ์ง๋ ฌํ™”(์ €์žฅ)ํ•˜๊ณ  ์—ญ์ง๋ ฌํ™”(๋กœ๋“œ)ํ•˜๋Š” ์—ญํ• ์„ ํ•ฉ๋‹ˆ๋‹ค. MLTK๋Š” Python ๊ฐ์ฒด๋ฅผ JSON ๊ฐ์ฒด๋กœ ๋ณ€ํ™˜ํ•˜๊ณ  ์ด๋ฅผ CSV ํŒŒ์ผ์— ์ €์žฅํ•˜์—ฌ Splunk Enterprise์—์„œ ๋ฃฉ์—…์œผ๋กœ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๊ฒŒ ํ•ฉ๋‹ˆ๋‹ค.
Correlation Matrix ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ MLTK์— ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?
Correlation Matrix ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด Python ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ณ , BaseAlgo ํด๋ž˜์Šค๋ฅผ ์ƒ์†๋ฐ›์•„ __init__ ๋ฐ fit ๋ฉ”์„œ๋“œ๋ฅผ ์ •์˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฐ ๋‹ค์Œ, algos.conf ํŒŒ์ผ์— ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
MLTK์—์„œ Linear Regression ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
| fit LinearRegression sepal_width from petal* fit_intercept=t ํ˜•์‹์œผ๋กœ SPL์„ ์‚ฌ์šฉํ•˜์—ฌ Linear Regression ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ target_variable์€ 'sepal_width'๋กœ, feature_variables๋Š” 'petal*'๋กœ ์„ค์ •๋ฉ๋‹ˆ๋‹ค.
MLTK์—์„œ Support Vector Regressor(SVR) ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ์„ค์ •ํ•ด์•ผ ํ•˜๋‚˜์š”?
SVR ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์‚ฌ์šฉํ•˜๋ ค๋ฉด SVR.py ํŒŒ์ผ์„ ์ƒ์„ฑํ•˜๊ณ  RegressorMixin๊ณผ BaseAlgo๋ฅผ ์ƒ์†๋ฐ›์•„ init ๋ฉ”์„œ๋“œ์—์„œ ์˜ต์…˜์„ ์„ค์ •ํ•ฉ๋‹ˆ๋‹ค. ํ•„์š”ํ•œ ๊ฒฝ์šฐ SimpleObjectCodec์„ ์‚ฌ์šฉํ•˜์—ฌ ์ฝ”๋ฑ์„ ๋“ฑ๋กํ•ฉ๋‹ˆ๋‹ค.
MLTK์˜ ์‚ฌ์šฉ์ž ์ •์˜ ์•Œ๊ณ ๋ฆฌ์ฆ˜์—์„œ apply ๋ฉ”์„œ๋“œ๋Š” ์–ธ์ œ ์‚ฌ์šฉ๋˜๋‚˜์š”?
apply ๋ฉ”์„œ๋“œ๋Š” ์ €์žฅ๋œ ๋ชจ๋ธ์ด ์ƒˆ๋กœ์šด ๋ฐ์ดํ„ฐ์— ๋Œ€ํ•ด ์˜ˆ์ธก์„ ์ˆ˜ํ–‰ํ•  ๋•Œ ํ•„์š”ํ•ฉ๋‹ˆ๋‹ค. fit ๋ฉ”์„œ๋“œ๊ฐ€ ๋ฐ์ดํ„ฐ ํ•™์Šต์— ์‚ฌ์šฉ๋˜๋Š” ๋ฐ˜๋ฉด, apply ๋ฉ”์„œ๋“œ๋Š” ์ด๋ฏธ ํ•™์Šต๋œ ๋ชจ๋ธ์„ ์‚ฌ์šฉํ•˜์—ฌ ์˜ˆ์ธก์„ ์ˆ˜ํ–‰ํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ stats ๋ช…๋ น์–ด๋Š” ๋ฌด์—‡์ธ๊ฐ€์š”?
stats ๋ช…๋ น์–ด๋Š” ์ฃผ์–ด์ง„ ํ•„๋“œ๋ฅผ ๊ธฐ์ค€์œผ๋กœ ํ†ต๊ณ„๋ฅผ ๊ณ„์‚ฐํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์š”์•ฝํ•˜๋Š” ๋ฐ ์‚ฌ์šฉ๋ฉ๋‹ˆ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด, ์ด๋ฒคํŠธ ์ˆ˜, ํ‰๊ท , ํ•ฉ๊ณ„๋ฅผ ๊ณ„์‚ฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์‚ฌ์šฉ ์˜ˆ: 'index=main | stats count by status'๋Š” ๊ฐ 'status' ๊ฐ’๋ณ„๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ถœ๋ ฅํ•ฉ๋‹ˆ๋‹ค.
Splunk์˜ Machine Learning Toolkit์—์„œ ์ปค์Šคํ…€ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ถ”๊ฐ€ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
MLTK์— ์ปค์Šคํ…€ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ถ”๊ฐ€ํ•˜๋ ค๋ฉด Python ํด๋ž˜์Šค๋ฅผ ์ž‘์„ฑํ•˜๊ณ  MLTK ์•ฑ์— ๋“ฑ๋กํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ๊ธฐ๋ณธ ์ ˆ์ฐจ๋Š” algos.conf ํŒŒ์ผ์— ์•Œ๊ณ ๋ฆฌ์ฆ˜ ์ด๋ฆ„์„ ์ถ”๊ฐ€ํ•˜๊ณ , Python์œผ๋กœ ์•Œ๊ณ ๋ฆฌ์ฆ˜์„ ์ •์˜ํ•œ ํ›„ ํ•„์š”ํ•œ ๋ฉ”์„œ๋“œ๋ฅผ ๊ตฌํ˜„ํ•˜์—ฌ MLTK์™€ ํ˜ธํ™˜๋˜๋„๋ก ํ•˜๋Š” ๊ฒƒ์ž…๋‹ˆ๋‹ค.
Splunk์—์„œ alert suppression์„ ์„ค์ •ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?
alert suppression์€ ๋™์ผํ•œ ์กฐ๊ฑด์—์„œ ๋ฐ˜๋ณต์ ์œผ๋กœ ์•Œ๋ฆผ์ด ํŠธ๋ฆฌ๊ฑฐ๋˜์ง€ ์•Š๋„๋ก ํ•˜๋Š” ์„ค์ •์ž…๋‹ˆ๋‹ค. suppression ์ฃผ๊ธฐ๋ฅผ ์„ค์ •ํ•˜์—ฌ ์ผ์ • ์‹œ๊ฐ„ ๋‚ด ๋™์ผํ•œ ์กฐ๊ฑด์„ ๋ฌด์‹œํ•˜๋„๋ก ์„ค์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ real-time alert๋ฅผ ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Real-time alert๋Š” ์‹ค์‹œ๊ฐ„์œผ๋กœ ์ด๋ฒคํŠธ๋ฅผ ๋ชจ๋‹ˆํ„ฐ๋งํ•˜์—ฌ ์กฐ๊ฑด์„ ๋งŒ์กฑํ•  ๋•Œ ์ฆ‰์‹œ ์•Œ๋ฆผ์„ ํŠธ๋ฆฌ๊ฑฐํ•˜๋Š” ๊ธฐ๋Šฅ์ž…๋‹ˆ๋‹ค. ์‚ฌ์šฉ ์˜ˆ: 'index=main | stats count | where count > 100'๊ณผ ๊ฐ™์€ ์ฟผ๋ฆฌ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ์กฐ๊ฑด์ด ์ถฉ์กฑ๋  ๋•Œ๋งˆ๋‹ค ํŠธ๋ฆฌ๊ฑฐํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk Add-on Builder์—์„œ ์ƒˆ๋กœ์šด add-on์„ ์ƒ์„ฑํ•˜๋Š” ๋ฐฉ๋ฒ•์€?
Add-on Builder์—์„œ ์ƒˆ๋กœ์šด add-on์„ ์ƒ์„ฑํ•˜๋ ค๋ฉด, 'Create an add-on'์„ ์„ ํƒํ•˜๊ณ , ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•  ์†Œ์Šค์™€ ๊ตฌ์„ฑ์„ ์ง€์ •ํ•œ ํ›„ setup page๋ฅผ ์ถ”๊ฐ€ํ•ด ์‚ฌ์šฉ์ž ์„ค์ •์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ดํ›„ add-on์„ ํŒจํ‚ค์ง•ํ•˜์—ฌ ๋ฐฐํฌํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
Splunk์—์„œ ๋ฐ์ดํ„ฐ ๋ชจ๋ธ์„ ๋งคํ•‘ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?
๋ฐ์ดํ„ฐ ๋ชจ๋ธ ๋งคํ•‘์„ ์œ„ํ•ด์„œ๋Š” ํ•„๋“œ ์ถ”์ถœ ๋ฐ ๋ณ€ํ™˜์ด ํ•„์š”ํ•˜๋ฉฐ, collections.conf์™€ transforms.conf ํŒŒ์ผ์„ ์„ค์ •ํ•˜์—ฌ CIM๊ณผ ํ˜ธํ™˜๋˜๋„๋ก ๊ตฌ์„ฑํ•ฉ๋‹ˆ๋‹ค.
Splunk์—์„œ timechart ๋ช…๋ น์–ด๋Š” ์–ด๋–ป๊ฒŒ ์‚ฌ์šฉํ•˜๋‚˜์š”?
timechart ๋ช…๋ น์–ด๋Š” ์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์— ๋”ฐ๋ผ ๋ฐ์ดํ„ฐ๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ๊ทธ๋ž˜ํ”„๋ฅผ ์ƒ์„ฑํ•˜๋Š” ๋ช…๋ น์–ด์ž…๋‹ˆ๋‹ค. ์˜ˆ: 'index=main | timechart span=1h count'๋Š” 1์‹œ๊ฐ„ ๊ฐ„๊ฒฉ์œผ๋กœ ์ด๋ฒคํŠธ ์ˆ˜๋ฅผ ์ง‘๊ณ„ํ•˜์—ฌ ์‹œ๊ฐ„ ๊ธฐ๋ฐ˜ ์ฐจํŠธ๋ฅผ ๋งŒ๋“ญ๋‹ˆ๋‹ค.
Splunk์—์„œ CLI๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•˜๋ ค๋ฉด ์–ด๋–ป๊ฒŒ ํ•ด์•ผ ํ•˜๋‚˜์š”?
'splunk add monitor <directory_path>' ๋ช…๋ น์„ ํ†ตํ•ด ํŠน์ • ๋””๋ ‰ํ„ฐ๋ฆฌ์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ: '/var/log' ๋””๋ ‰ํ„ฐ๋ฆฌ์—์„œ ๋ฐ์ดํ„ฐ๋ฅผ ์ˆ˜์ง‘ํ•˜๋ ค๋ฉด 'splunk add monitor /var/log'๋ฅผ ์‚ฌ์šฉํ•ฉ๋‹ˆ๋‹ค.
YAML Metadata Warning: empty or missing yaml metadata in repo card (https://huggingface.co/docs/hub/datasets-cards)

license: cc-junghun language:

  • en tags:
  • instruction-finetuning pretty_name: Alpaca-Cleaned task_categories:
  • text-generation
Downloads last month
30
Edit dataset card