Using large straight logs on the ends is essential for a stable pile.
I find the best logs to use for end pieces are large, heavy, wedge shaped pieces. I place them bark side out to help the pile shed water. Notice how the pile is already overhanging the edges of the pallet!