게시물 984건
   
zgrep - 압축텍스트 파일 grep
글쓴이 : 최고관리자 날짜 : 2018-07-16 (월) 11:00 조회 : 13146
글주소 :
                                
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



이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.