Input:
Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Provisioning exception while parsing protocol
Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Failed to extract text from response
Feb 15 2014 09:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Error while loading make model
Feb 15 2014 10:31:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Failed to extract text from response
Feb 15 2014 10:35:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Failed to extract text from response
Feb 15 2014 10:41:00 ERROR {http--0.0.0.0-0000-000} [54d70-54d70-54d70-54d70-54d70][478-478-478-478-478] JabberServlet - Provisioning exception while parsing protocol
Desired Output:
Provisioning exception while parsing protocol 2
Failed to extract text from response 3
Error while loading make model 1
So far it is simple. this cane be achieved by the below script. This includes grepping only expection lines form log file.
cat test_with_exceptions.log | grep ERROR | grep -v ERROR_SERVER | cut -d" " -f10- | awk '{count[$1]++; } END {for (i in count) print i, count[i]; }'
QUESTION:
1. How do i get these values on a runinng (Live) log file? I can use "tail -F" but have an issue. I need to print the results once every 15 minutes and not at the end. how do i achieve this?
Thanks in advance