Skip to content

Instantly share code, notes, and snippets.

@groundnuty
Created March 12, 2018 11:04
Show Gist options
  • Save groundnuty/4ebf43c14cbcef4bdead5e4256c6dbab to your computer and use it in GitHub Desktop.
Save groundnuty/4ebf43c14cbcef4bdead5e4256c6dbab to your computer and use it in GitHub Desktop.
flitering logs
cat *.log* | perl -ne'print unless m{Unable to check space strategies due to\: \{badmatch,\{error\,not_found\}\}}..m{storage_sync_monitoring}' | grep -v -e exometer_report_lager -e 'started ranch_acceptor:start_link' -e 'started couchbase_pool_worker:start_link' -e 'started wpool_process:start_link' | perl -ne'print unless m{wpool_worker\:handle_cast/2 line 76}..m{storage_id => <<"}' | perl -ne'print unless m{Stacktrace:}..m{0~enotdir\}\}}' > ../f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment