introduce template-encoded field (#4315)

* introduce `template-encoded` field

* remove IsCustomTemplate func

* refactor and move encoding to `MakeResultEventItem` func

* encode template in case of no results were found

* commit to last commit

* don't encode templates when`-ms` is used
This commit is contained in:
Dogan Can Bakir
2023-11-11 02:12:27 +03:00
committed by GitHub
parent 09603897b6
commit 7c2db9c394
25 changed files with 110 additions and 21 deletions

View File

@@ -254,6 +254,7 @@ func (request *Request) MakeResultEventItem(wrapped *output.InternalWrappedEvent
ExtractedResults: wrapped.OperatorsResult.OutputExtracts,
Timestamp: time.Now(),
MatcherStatus: true,
TemplateEncoded: request.options.EncodeTemplate(),
}
return data
}