Analysis of apache access log access. log and how to import it to mysql

Source: Internet
Author: User
Tags apache access log


> Apache_log.txt

Records: 2000 Deleted: 0 Skipped: 0 Warnings: 2672

1) if your filename is an absolute path, the server will start searching for the file from the root directory.
2) If your filename is a relative path, the server will start searching for the file from the database data directory.
If you provide local, the file will be located as follows:
1) if your filename is an absolute path, the client will start searching for the file from the root directory.
2) If your filename is a relative path, the client will start searching for the file from the current directory.

+ -------------- + ----------- + ------ + ----- + --------- + ---------------- +
| Field | Type | Null | Key | Default | Extra |
+ -------------- + ----------- + ------ + ----- + --------- + ---------------- +
| Id | int (11) | NO | PRI | NULL | auto_increment |
| Hostip | char (32) | NO | 0.0.0.0 |
| Marking | char (30) | YES | NULL |
| Browser_name | char (30) | YES | NULL |
| Addtime | char (64) | NO | NULL |
| Time_zone | char (8) | NO | NULL |
| Method | char (8) | NO | NULL |
| Resource | char (64) | NO | NULL |
| Protocol | char (8) | YES | NULL |
| Status | int (5) | YES | NULL |
| Bytes | int (5) | YES | NULL |
| Refer | char (128) | YES | NULL |
| Client_info | char (128) | YES | NULL |
+ -------------- + ----------- + ------ + ----- + --------- + ---------------- +
13 rows in set (0.00 sec)

+ ---- + ----------------- + --------- + -------------- + --------------------- + ----------- + -------- + ---------- + -------- + ------- + Accept +
| Id | hostip | marking | browser_name | addtime | time_zone | method | resource | protocol | status | bytes | refer | client_info |
+ ---- + ----------------- + --------- + -------------- + --------------------- + ----------- + -------- + ---------- + -------- + ------- + Accept +
| 1 | 220.181.108.116 |-| [21/Aug/2013: 23: 59: 59 | + 0800] | "GET |/search/prj/tag/2089-2124-2350-2354-1.html | HTTP/1.1 | 200 | 8181 |"-"|" Mozilla/5.0 (compatible; baiduspider/2.0; + http://www.baidu.com/search/spider.html) "|
| 2 | 220.181.165.5 |-| [21/Aug/2013: 23: 59: 59 | + 0800] | "GET |/event/bushanping/admin_login.php | HTTP/1.1 | 200 | 32095 |"-"|" Mozilla/5.0 (Windows; U; WindowsNT5.1; zh-CN; rv: 1.9.1.1) Gecko/20090715 Firefox/3.5.1 "|
| 3 | 220.181.165.136 |-| [21/Aug/2013: 23: 59: 59 | + 0800] | "GET |/search/diy/server-status/| HTTP/1.1 | 404 | 21795 |"-"|" Mozilla/5.0 (Windows; U; windowsNT5.1; zh-CN; rv: 1.9.1.1) Gecko/20090715 Firefox/3.5.1 "|
+ ---- + ----------------- + --------- + -------------- + --------------------- + ----------- + -------- + ---------- + -------- + ------- + Accept +
3 rows in set (0.00 sec)

Imported


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.