Hi,
Just wondering, is there anyway I can get the total of logs generated by hours ? Let say I have these logs,
Sep 23 04:48:43 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:48:47 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:48:51 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:48:55 hsbclast message repeated 1 time
Sep 23 04:48:59 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:50:12 hsbclast message repeated 19 times
Sep 23 04:50:16 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:50:20 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:52:22 hsbclast message repeated 30 times
Sep 23 04:52:26 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:52:30 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:53:22 hsbclast message repeated 13 times
Sep 23 04:53:26 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:53:30 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:55:03 hsbclast message repeated 23 times
Sep 23 04:55:07 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:55:11 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:55:40 hsbclast message repeated 7 times
Sep 23 04:55:44 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 04:56:44 hsbclast message repeated 15 times
Sep 23 04:56:48 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 04:56:52 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:00:51 hsbclast message repeated 59 times
Sep 23 05:00:55 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:01:03 hsbclast message repeated 2 times
Sep 23 05:01:07 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:02:16 hsbclast message repeated 17 times
Sep 23 05:02:20 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:02:24 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:02:52 hsbclast message repeated 7 times
Sep 23 05:02:56 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:03:00 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:03:16 hsbclast message repeated 4 times
Sep 23 05:03:20 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:03:24 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:07:27 hsbclast message repeated 60 times
Sep 23 05:07:31 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:07:35 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:08:56 hsbclast message repeated 20 times
Sep 23 05:09:00 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:13:59 hsbclast message repeated 74 times
Sep 23 05:14:03 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
Sep 23 05:14:07 hsbcufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Sep 23 05:15:20 hsbclast message repeated 18 times
Sep 23 05:15:24 hsbcufs: [ID 213553 kern.notice] NOTICE: realloccg /: file system full
I would like to get the stat like ,
Hours Total line
04 ______52
05 ______ 41
06 ____ 65
07 ____ 35
and get them in minutes as well ?
Many thanks everyone !!!