Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In the future, this cleanup process could be added to node management policy (NMP) workflow. Instead of executing the delete on each agent, leveraging NMP allows the admin to cleanup eventlog entries for target group of nodes. The following is an example of a subfield to add to the existing NMP structure. 

...


"agent_data_policy":

...

{

...

 

...

 

...

"eventlog":

...

{

          "prune":

...

false,

...

          "selectors":

...

["timestamp

...

<

...

time",

...

 

            "severity_level

...

<

...

3"]

...

 

...

 

...

 

...

}

...

}


Once a node has downloaded a matching NMP, a subworker will run periodically and delete all eventlogs matching the selectors or from previous registrations if "prune" is set to true.

...