nginx(opens in a new tab or window)
apache(opens in a new tab or window)
from logs-nginx.error-*, logs-apache_tomcat.error-*, logs-apache.error-*, logs-iis.error-*
| keep
@timestamp,
event.type,
event.dataset,
source.ip,
agent.id,
host.name
| where source.ip is not null
| stats
Esql.event_count = count(),
Esql.host_name_values = values(host.name),
Esql.agent_id_values = values(agent.id),
Esql.event_dataset_values = values(event.dataset)
by source.ip, agent.id
| where
Esql.event_count > 25
Install detection rules in Elastic Security
Detect Potential Spike in Web Server Error Logs in the Elastic Security detection engine by installing this rule into your Elastic Stack.
To setup this rule, check out the installation guide for Prebuilt Security Detection Rules(opens in a new tab or window).