The indexes that the rule checks are index = ["auditbeat-*", "winlogbeat-*", "logs-endpoint.events.*", "logs-windows.*"]
. You can search those mappings for file.path
by running this in Dev Tools in Kibana:
GET auditbeat-*,winlogbeat-*,logs-endpoint.events.*,logs-windows.*/_mapping/field/file.path
This is the output I'm getting on my stack when I run this. Note that this will depend on what integrations you have and what indexes they've created. If you're using Elastic Endpoint, you can expect .ds-logs-endpoint.events.file-default-*
to exist, which is the backing index for the data stream logs-endpoint.events.file-default-*
.
{
".ds-logs-endpoint.events.process-default-2021.06.10-000001" : {
"mappings" : { }
},
".ds-logs-endpoint.events.file-default-2021.06.10-000001" : {
"mappings" : {
"file.path" : {
"full_name" : "file.path",
"mapping" : {
"path" : {
"type" : "keyword",
"ignore_above" : 1024,
"fields" : {
"caseless" : {
"type" : "keyword",
"ignore_above" : 1024,
"normalizer" : "lowercase"
},
"text" : {
"type" : "text"
}
}
}
}
}
}
},
"auditbeat-7.8.0" : {
"mappings" : { }
},
".ds-logs-endpoint.events.network-default-2021.06.10-000001" : {
"mappings" : { }
},
".ds-logs-endpoint.events.library-default-2021.06.10-000001" : {
"mappings" : {
"file.path" : {
"full_name" : "file.path",
"mapping" : {
"path" : {
"type" : "keyword",
"ignore_above" : 1024,
"fields" : {
"caseless" : {
"type" : "keyword",
"ignore_above" : 1024,
"normalizer" : "lowercase"
},
"text" : {
"type" : "text"
}
}
}
}
}
}
},
".ds-logs-endpoint.events.registry-default-2021.06.10-000001" : {
"mappings" : { }
},
"auditbeat-7.13.2-2021.06.22-000001" : {
"mappings" : {
"file.path" : {
"full_name" : "file.path",
"mapping" : {
"path" : {
"type" : "keyword",
"ignore_above" : 1024,
"fields" : {
"text" : {
"type" : "text",
"norms" : false
}
}
}
}
}
}
},
".ds-logs-endpoint.events.security-default-2021.06.10-000001" : {
"mappings" : { }
},
"auditbeat-7.14.0-2021.06.09-000001" : {
"mappings" : {
"file.path" : {
"full_name" : "file.path",
"mapping" : {
"path" : {
"type" : "keyword",
"ignore_above" : 1024,
"fields" : {
"text" : {
"type" : "text",
"norms" : false
}
}
}
}
}
}
}
}