Expand description
Building the document that actually goes to Elasticsearch.
Field names here are not ours to choose: they are the beta index’s mapping (V2-1016), and a mismatch means a field lands as dynamically-mapped text instead of the keyword the dashboards aggregate on. Two in particular read wrong at a glance and are right:
- the time field is
@timestamp, nottimestamp; - the node’s build is
binary_version, whileversionandcommitcarry whatever ant-node said about itself on its startup line. Keeping them separate avoids two half-populated fields meaning the same thing with no rule for which wins.
Two mapped fields are deliberately never sent. host is stripped by the ingest pipeline —
machine hostnames routinely contain someone’s name — and beta_user is stamped server-side from
the authenticated API key, so anything we sent would be discarded and replaced anyway.
Structs§
- Document
Source - The
_sourcebody of a forwarded document. - Forward
Document - A document ready to be framed into a bulk request.
- Node
Tags - The identity fields every event from a given node carries.