Skip to content

Commit 9a360c2

Browse files
authored
Update impact_high_freq_file_renames_by_kernel.toml
1 parent e374ff5 commit 9a360c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/windows/impact_high_freq_file_renames_by_kernel.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ from logs-endpoint.events.file-* metadata _id, _version, _index
7575
// truncate the timestamp to a 60-second window
7676
| eval Esql.time_window_date_trunc = date_trunc(60 seconds, @timestamp)
7777
78-
| keep file.path, file.name, process.entity_id, Esql.time_window_date_trunc, host.name, host.ip
78+
| keep user.id, user.name, file.path, file.name, process.entity_id, Esql.time_window_date_trunc, host.name, host.ip
7979
8080
// filter for same file name dropped in at least 3 unique paths by the System virtual process
81-
| stats Esql.file_path_count_distinct = COUNT_DISTINCT(file.path), Esql.file_path_values = VALUES(file.path), Esql.host_ips = values(host.ip) by host.name, process.entity_id , file.name, Esql.time_window_date_trunc
81+
| stats Esql.file_path_count_distinct = COUNT_DISTINCT(file.path), Esql.file_path_values = VALUES(file.path), Esql.host_ips = values(host.ip) by host.name, user.name, user.id, process.entity_id , file.name, Esql.time_window_date_trunc
8282
| where Esql.file_path_count_distinct >= 3
8383
'''
8484

0 commit comments

Comments
 (0)