Apacheã®ã¢ã¯ã»ã¹ãã°ãgrepãããã¨æã£ãããlogrotateããããã°ãgzã§åºãããã¦ã¾ããã1å1åã¯lessã§ä¸ãè¦ãããã©ãå ¨ãã¡ã¤ã«ããgrepã¯åºæ¥ã¾ãããéãã¦ã¯ãã¡ã¤ã«å æ¤ç´¢ãã¦åãã®ã¯ããããã«ããã©ãããã®ã§ã調ã¹ã¾ããã gzã®å ´å $ zgrep "foo" access_log.2.gz $ gzip -c access_log.2.gz | grep "foo" -cãªãã·ã§ã³ã¯--stdoutã§ã解åçµæãæ¨æºåºåã«ã ãã¾ãã $ ls -r | xargs zgrep "foo" ãã°ãã¡ã¤ã«å ¨é¨ããgrepããã«ã¯ãããªãã¾ããã£ã¦ãé常ã®ã³ãã³ãã«zã¤ããã ãã ããlogrorateåã®access_logã ãã¯gzå§ç¸®ããã¦ãªããã©ãzgrepã§åé¡ãªã調ã¹ããã¾ãã tar.gzã®å ´å $ tar -O -xzvf bar.tar.gz
{{#tags}}- {{label}}
{{/tags}}