Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): OpenSearch 2.8 with Dashboard.
Describe the issue:
Sure, here’s a suggested way to phrase your question to the OpenSearch community:
Title: Using Anomaly Detection Plugin to Identify External IP Log Entries
Hi everyone,
I’m currently working with OpenSearch and would like to leverage the anomaly detection plugin to monitor and identify log entries from IP addresses that fall outside a specified subnet. Specifically, I want to detect anomalies when logs are received from IP addresses that are not part of a given internal subnet (e.g., 192.168.0.0/24).
Could anyone provide guidance or examples on how to set up and configure the anomaly detection plugin to achieve this? Any advice on best practices, potential pitfalls, or alternative approaches would also be greatly appreciated.
Anomaly detector can only analyze keyword type or numeric type field, may not analyze ip type field, so for ip type field, you can try using alerting plugin directly, create an buckets monitor, if there’re some unexpected ip addresses, trigger an alert:
I am new to opensearch, can please completely guide me through the process. I saw Per bucket monitor and got confused in how to write triggers and actions for the task i mentioned.