elastalert
elastalert copied to clipboard
Elastalert Rule: Alert if any pulbic IP comes in srcip(source IP) field in an index
Hi, @Qmando
I am using elastalert and elasticsearch 5.5.3.
Can you please help me for writing a condition to alert if any public IP's comes in srcip field.
Thanks & Regards
@suchandbabu
Not sure if this below method works. But give it a try
- Create a whitelist filter and specify the RFC private IP address ranges and the other ranges that you wish not to be triggered in source IP address field.
example :
The below filter will whitelist the entire 10.x/8 subnet range
- query:
query_string:
query: "NOT srcip: /10\\..*/"
- Import the whitelist to your rule using
import:and alert based on the number of eventsnum_events
Thanks for yoour reply,
I would like to get it triggered if any of the public IP comes in srcip field. There is no specific list.