shaggy dog story: a long rambling joke whose humor derives from its pointlessness
joke: a humorous anecdote or remark intended to provoke laughter
expedition: a military campaign designed to achieve a specific objective in a foreign country