log_hits
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| log_hits [2016/05/20 07:01] – luke7858 | log_hits [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 12: | Line 12: | ||
| for log in $(echo " | for log in $(echo " | ||
| </ | </ | ||
| - | |||
| - | \\ | ||
| \\ | \\ | ||
| Example Output: | Example Output: | ||
| Line 52: | Line 50: | ||
| 7 113.190.128.197 "POST /xmlrpc.php | 7 113.190.128.197 "POST /xmlrpc.php | ||
| 7 117.4.251.108 "POST /xmlrpc.php | 7 117.4.251.108 "POST /xmlrpc.php | ||
| + | </ | ||
| + | \\ | ||
| + | === Finding Crawlers === | ||
| + | **Note:** You will need to change date range and make sure you run the very first LOG command on this page first. | ||
| + | <sxh bash> | ||
| + | LC_ALL=C awk '/ | ||
| + | </ | ||
| + | \\ | ||
| + | === Accurate number of Apache requests per hour === | ||
| + | **Note:** Change date range and log file locationg | ||
| + | <sxh bash> | ||
| + | LC_ALL=C awk '/ | ||
| + | </ | ||
| + | \\ | ||
| + | === Log requests for Specific date/time range === | ||
| + | **Note:** Change date/time and log file location | ||
| + | <sxh bash> | ||
| + | LC_ALL=C awk -F \" '/ | ||
| </ | </ | ||
log_hits.1463727693.txt.gz · Last modified: 2024/05/23 07:26 (external edit)
