Have one’s tail up
To be in good spirits, the opposite of to have one’s tail between one’s legs, derives from observation of dogs who convey their emotions via the position of their tails. It dates from at least The Middle Ages, if not before.