Log segmentation and analysis with SQL phrase.