``` ÖRNEK SORGU, SINANMADI. FortiGate: aynı kaynaktan bir saat içinde çok sayıda başarısız SSL VPN girişi (39426) ve ardından en az bir açılan tünel (39424). FortiOS 7.6 Log Message Reference: 39426 LOG_ID_EVENT_SSL_VPN_USER_SSL_LOGIN_FAIL, 39424 LOG_ID_EVENT_SSL_VPN_USER_TUNNEL_UP. logid alanı ham günlükte önekli (ör. 01010xxxxx) gelebilir; bu yüzden sonek eşleştirilir. Dizin adını, eşikleri ve meşru VPN çıkışlarını ortamınıza göre ayarlayın. ``` index=fortigate (logid="*39426" OR logid="*39424") | eval outcome=if(like(logid, "%39426"), "fail", "success") | bin _time span=1h | stats count(eval(outcome="fail")) AS failures, count(eval(outcome="success")) AS successes, dc(user) AS distinct_users, values(user) AS users BY srcip, _time | where failures >= 20 AND successes >= 1 | sort - failures