Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Print all matching lines (without the filename
- # or the file path) in all files under the current
- # directory that start with "access.log" that
- # contain the string "500". Note that there are no
- # files named "access.log" in the current directory,
- # you will need to search recursively.
- #
- my try:
- bash(0)> find . -type f -name "access.log*" -exec grep -Hn "500" {} \;
- ./var/log/httpd/access.log:3:69.16.40.148 - - [09/Jan/2017:22:34:33 +0100] "GET /pages/create HTTP/1.0" 500 3471
- ./var/log/httpd/access.log:4:225.219.54.140 - - [09/Jan/2017:22:35:30 +0100] "GET /posts/foo?appID=xxxx HTTP/1.0" 500 2477
- ./var/log/httpd/access.log.1:5:2.71.250.27 - - [09/Jan/2017:22:41:26 +0100] "GET /pages/create HTTP/1.0" 500 2477
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement