We need to add an agent API (and CLI) for deleting the eventlog entry from the agent's database. This allow user to prune the agent database which has been running for long time.
Agent API:
DELETE /eventlog?timestamp=<timestamp>&severity=<severity_level>:
timestamp: will delete all the eventlog entry before the given timestamp.
severity: if specified, only delete entries with given severity level (info, warning, error)
DELETE /eventlog/prune: will delete all the eventlog entries for previous registrations
We need to add an agent API (and CLI) for deleting the eventlog entry from the agent's database. This allow user to prune the agent database which has been running for long time.
Agent API:
DELETE /eventlog?timestamp=<timestamp>&severity=<severity_level>
: timestamp: will delete all the eventlog entry before the given timestamp. severity: if specified, only delete entries with given severity level (info, warning, error)DELETE /eventlog/prune
: will delete all the eventlog entries for previous registrationsCLI:
hzn eventlog delete -t <timestamp> -s <severity_level>
hzn eventlog prune