> ## Content Index
> Fetch the complete content index at: https://kudithipudi.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO : grep for response codes in apache logs
- URL: https://kudithipudi.org/how-to-grep-for-response-codes-in-apache-logs/
- Published: 2012-09-05T13:51:14.000Z
- Updated: 2012-09-05T13:51:14.000Z
- Description: If you want to grep for certain http response codes in a apache log file Look for all access requests with a 200 response code[code] grep...
- Author: admin
- Tags: HOWTO, Linux, Uncategorized, Web, #wp, #wp-post, #Import 2026-08-23 02:32

If you want to grep for certain http response codes in a apache log file

Look for all access requests that do NOT have a 200 response code

```
grep -i -v "[: ]200[: ]" HTTP_ACCESS_LOG
```

Look for all access requests with a 200 response code

```
grep -i "[: ]200[: ]" HTTP_ACCESS_LOG
```

Details of the options

```
"[: ]"
```

tells grep to look for space or tab before the specified string, which in this case is 200.