You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
PRAGMA synchronous = 0;
|
|
|
|
PRAGMA page_size = 4096;
|
|
|
|
PRAGMA journal_mode = wal;
|
|
|
|
PRAGMA journal_size_limit = 1073741824;
|
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE IF NOT EXISTS `web_logs` (
|
|
|
|
`time` INTEGER,
|
|
|
|
`ip` TEXT,
|
|
|
|
`domain` TEXT,
|
|
|
|
`server_name` TEXT,
|
|
|
|
`method` TEXT,
|
|
|
|
`status_code` INTEGER,
|
|
|
|
`uri` TEXT,
|
|
|
|
`body_length` INTEGER,
|
|
|
|
`referer` TEXT DEFAULT "",
|
|
|
|
`user_agent` TEXT,
|
|
|
|
`is_spider` INTEGER DEFAULT 0,
|
|
|
|
`protocol` TEXT,
|
|
|
|
`request_time` INTEGER,
|
|
|
|
`request_headers` TEXT DEFAULT "",
|
|
|
|
`ip_list` TEXT DEFAULT "",
|
|
|
|
`client_port` INTEGER DEFAULT -1
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE INDEX time_inx ON web_logs(`time`);
|