seqcli icon indicating copy to clipboard operation
seqcli copied to clipboard

Add command to delete/clear events

Open redoz opened this issue 6 years ago • 2 comments

It would be nice if it was possible to automate the deleting of all events from the command line.

redoz avatar Dec 05 '19 10:12 redoz

Thanks for the suggestion, we'll give this some thought.

nblumhardt avatar Dec 06 '19 00:12 nblumhardt

Especially useful for those offline scenarios when you use seqcli to ingest log files:

  1. acquire files (outside the scope of seqcli)
  2. clean seq
  3. 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

redoz avatar Dec 06 '19 14:12 redoz

Are there any plans implementing this feature ?

And it would also be nice if events could be delete based on a query.

notes2c avatar Jun 23 '24 06:06 notes2c

We'll revisit this again, thanks for the nudge :+1:

nblumhardt avatar Jun 23 '24 22:06 nblumhardt

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.

nblumhardt avatar Jul 10 '24 05:07 nblumhardt