Explorar o código

[Security Solution] [Fleet] Update file data mappings with new fields for transit hash and persisting uploads (#92591)

* [Security Solution] [Fleet] Update file data mappings with new fields for transit hash and persisting uploads

* update time field to date type

* index bid field
Kevin Logan %!s(int64=2) %!d(string=hai) anos
pai
achega
7ea2a2c409

+ 3 - 0
x-pack/plugin/core/src/main/resources/fleet-file-data.json

@@ -23,6 +23,9 @@
             "type": "binary"
           },
           "bid": {
+            "type": "keyword"
+          },
+          "sha2": {
             "type": "keyword",
             "index": false
           },

+ 6 - 0
x-pack/plugin/core/src/main/resources/fleet-files.json

@@ -20,6 +20,9 @@
         },
         "dynamic": false,
         "properties": {
+          "upload_start": {
+            "type": "date"
+          },
           "agent_id": {
             "type": "keyword"
           },
@@ -29,6 +32,9 @@
           "source": {
             "type": "keyword"
           },
+          "upload_id": {
+            "type": "keyword"
+          },
           "file": {
             "properties": {
               "Status": {