I want to return @timestamp as a different format such as "YYYY" but am mixing together
doc_valuefields
with fields
. Fields takes priority over doc_valuefields it looks like.
Ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/search-fields.html
We might have a slight bug here: https://github.com/elastic/kibana/blob/master/x-pack/plugins/security_solution/server/lib/detection_engine/signals/build_events_query.ts#L109-L125
Where we mix these two. I test this by trying override the date times below but it only works when we remove doc_valuefields
and not mix it with fields