From 31b85c29966880263662aa6c836eb575cf9c6ee4 Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Mon, 21 Mar 2022 10:43:27 -0400 Subject: [PATCH 01/12] ES8 will not provide _type field --- server/modules/elastic/converter.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/modules/elastic/converter.go b/server/modules/elastic/converter.go index 541f5753..434b86c8 100644 --- a/server/modules/elastic/converter.go +++ b/server/modules/elastic/converter.go @@ -320,7 +320,9 @@ func convertFromElasticResults(store *ElasticEventstore, esJson string, results esRecord := record.(map[string]interface{}) event.Source = esRecord["_index"].(string) event.Id = esRecord["_id"].(string) - event.Type = esRecord["_type"].(string) + if esRecord["_type"] != nil { + event.Type = esRecord["_type"].(string) + } if esRecord["_score"] != nil { event.Score = esRecord["_score"].(float64) } From 5414b2d1a346b3033212b4801f47ecfa4e4bda5b Mon Sep 17 00:00:00 2001 From: Jason Ertel Date: Wed, 8 Jun 2022 16:55:39 -0400 Subject: [PATCH 02/12] Support group-by sorting memory on first group only --- html/index.html | 3 ++- html/js/routes/hunt.js | 25 +++++++++++++++++++++++++ html/js/routes/hunt.test.js | 8 ++++++++ 3 files changed, 35 insertions(+), 1 deletion(-) diff --git a/html/index.html b/html/index.html index 5be37187..2cf8708e 100644 --- a/html/index.html +++ b/html/index.html @@ -509,7 +509,8 @@

{{ i18n.eventTotal }} {{ totalEvents.toLocaleString() }}

- {{ tipMessage }} - + @@ -502,17 +502,22 @@

{{ i18n.eventTotal }} {{ totalEvents.toLocaleString() }}

fa-list + + fa-expand + fa-trash - - - + + + - -