Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

small script to extract logs from latest startup sequence of a Neo4j instance

View neo4j_last_startup.sh
1 2 3 4 5 6 7 8 9 10 11 12
#!/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
tac $1 | sed '/INITIALIZED diagnostics START/q' | tac | sed '/SERVER STARTED END/q'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.