openai_chatgpt_enterprise(external, opens in a new tab or window)
text code block:from logs-openai_chatgpt_enterprise.app_log-* | where data_stream.dataset == "openai_chatgpt_enterprise.app_log" and openai_chatgpt_enterprise.app_log.app_name == "Slack" and openai_chatgpt_enterprise.app_log.log_type == "request" and openai_chatgpt_enterprise.app_log.query is not null and user.email is not null | eval Esql.time_bucket = date_trunc(5 minutes, @timestamp) | stats Esql.query_count_distinct = count_distinct(openai_chatgpt_enterprise.app_log.query), Esql.event_count = count(*), Esql.query_values = values(openai_chatgpt_enterprise.app_log.query), Esql.timestamp_first_seen = min(@timestamp), Esql.timestamp_last_seen = max(@timestamp) by user.email, organization.id, Esql.time_bucket | where Esql.query_count_distinct >= 10 | keep user.email, organization.id, Esql.time_bucket, Esql.query_count_distinct, Esql.event_count, Esql.query_values, Esql.timestamp_first_seen, Esql.timestamp_last_seen
Install detection rules in Elastic Security
Detect OpenAI ChatGPT Enterprise Slack Query Burst 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(external, opens in a new tab or window).