[Security Solution] add agent field to generator (#111428)
This commit is contained in:
parent
70632e2a9e
commit
14660994d2
|
@ -82,6 +82,10 @@ export class FleetAgentGenerator extends BaseDataGenerator<Agent> {
|
|||
action_seq_no: -1,
|
||||
active: true,
|
||||
enrolled_at: now,
|
||||
agent: {
|
||||
id: this.randomUUID(),
|
||||
version: this.randomVersion(),
|
||||
},
|
||||
local_metadata: {
|
||||
elastic: {
|
||||
agent: {
|
||||
|
|
|
@ -48,6 +48,10 @@ export const indexFleetAgentForHost = async (
|
|||
): Promise<IndexedFleetAgentResponse> => {
|
||||
const agentDoc = fleetAgentGenerator.generateEsHit({
|
||||
_source: {
|
||||
agent: {
|
||||
id: endpointHost.agent.id,
|
||||
version: endpointHost.agent.version,
|
||||
},
|
||||
local_metadata: {
|
||||
elastic: {
|
||||
agent: {
|
||||
|
|
Loading…
Reference in a new issue