seqcli
seqcli copied to clipboard
Add command to delete/clear events
It would be nice if it was possible to automate the deleting of all events from the command line.
Thanks for the suggestion, we'll give this some thought.
Especially useful for those offline scenarios when you use seqcli to ingest log files:
- acquire files (outside the scope of seqcli)
- clean seq
- ingest files
And thinking about it, it could even be a flag on "ingest":
seqcli ingest --truncate --input=C:\temp\logs\* --server=http://localhost:7357/ --json
Are there any plans implementing this feature ?
And it would also be nice if events could be delete based on a query.
We'll revisit this again, thanks for the nudge :+1:
We've reviewed this again and decided we'd rather not implement this. Manual event deletion is not intended to be a general feature in Seq, they're very much for emergency removal of accidentally-ingested data. Retention policies are almost always the better choice in production scenarios.
For local development scenarios, stopping Seq and removing the Stream/ folder under Seq's storage root is a suitable alternative for truncation.
Thanks again for all the input and feedback, though.