Skip to content

Instantly share code, notes, and snippets.

@mneedham
Forked from sarmbruster/neo4j_last_startup.sh
Created December 17, 2013 08:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mneedham/8001739 to your computer and use it in GitHub Desktop.
Save mneedham/8001739 to your computer and use it in GitHub Desktop.
#!/bin/bash
# tiny script to extract the logs of the latest startup sequence in a Neo4j instance
#
if (( $# == 0 )); then
echo "call me: $0 <path_to_messages.log>"
exit 1
fi
tail -r $1 | sed '/INITIALIZED diagnostics START/q' | tail -r | sed '/SERVER STARTED END/q'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment