Skip to content

Instantly share code, notes, and snippets.

@M507
Created March 18, 2021 16:02
Show Gist options
  • Save M507/f2e125dcb812bb15f7dafb40d76ae1f3 to your computer and use it in GitHub Desktop.
Save M507/f2e125dcb812bb15f7dafb40d76ae1f3 to your computer and use it in GitHub Desktop.
clear all security onion logs
function cleansoslogs() {
ssh root@$1 -t "so-nsm-clear -y; sleep 1; so-elastic-clear -y; sleep 1; so-sensor-clean"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment