zgrep : ¾ÐÃàµÈ ÅؽºÆ® ÆÄÀÏ¿¡¼ µ¿ÀÛ
example)
# ls -l ceph.log.*.gz
-rw------- 1 ceph ceph 2149141 7¿ù 16 06:25 ceph.log.1.gz
-rw------- 1 ceph ceph 2146065 7¿ù 15 06:25 ceph.log.2.gz
-rw------- 1 ceph ceph 2160658 7¿ù 14 06:25 ceph.log.3.gz
-rw------- 1 ceph ceph 2172424 7¿ù 13 06:25 ceph.log.4.gz
-rw------- 1 ceph ceph 2167566 7¿ù 12 06:25 ceph.log.5.gz
-rw------- 1 ceph ceph 2172075 7¿ù 11 06:25 ceph.log.6.gz
-rw------- 1 ceph ceph 2207687 7¿ù 10 06:25 ceph.log.7.gz
# zgrep blocked ceph.log.*.gz
ceph.log.7.gz:2018-07-09 18:02:15.682976 osd.13 172.16.217.234:6800/2406 867 : cluster [WRN] 48 slow requests, 1 included below; oldest blocked for > 274.093746 secs
ceph.log.7.gz:2018-07-09 18:02:16.683501 osd.13 172.16.217.234:6800/2406 869 : cluster [WRN] 48 slow requests, 2 included below; oldest blocked for > 275.094266 secs
ceph.log.7.gz:2018-07-09 18:02:17.370741 osd.5 172.16.217.225:6800/3564 15767 : cluster [WRN] 22 slow requests, 1 included below; oldest blocked for > 275.566796 secs
ceph.log.7.gz:2018-07-09 18:02:17.467358 osd.1 172.16.217.221:6800/3365 12446 : cluster [WRN] 13 slow requests, 1 included below; oldest blocked for > 275.736467 secs
ceph.log.7.gz:2018-07-09 18:02:19.370961 osd.5 172.16.217.225:6800/3564 15769 : cluster [WRN] 22 slow requests, 1 included below; oldest blocked for > 277.567019 secs
ceph.log.7.gz:2018-07-09 18:02:24.601112 mon.0 172.16.217.20:6789/0 67289722 : cluster [INF] HEALTH_WARN; 160 requests are blocked > 32 sec
ceph.log.7.gz:2018-07-09 18:02:24.369164 osd.7 172.16.217.227:6800/7168 4849 : cluster [WRN] 29 slow requests, 1 included below; oldest blocked for > 282.779930 secs
................................
2°³ÀÌ»ó ´Ü¾î °Ë»ö
# zgrep -E -i 'down|blocked' ceph.log.*.gz