Clean up.

- Curtail the logs in test case.
Refactoring.

- Move a functions to 'log-analyzer-filter'.
- Split the test case to 'log-analyzer' and 'log-analyzer-filter'.