Create a sql file to create table for nginx logs
This commit is contained in:
parent
39b1d0dd09
commit
ab37a3fa86
1 changed files with 15 additions and 0 deletions
|
@ -401,6 +401,21 @@ write_files:
|
|||
# Increase history limit
|
||||
set -g history-limit 50000
|
||||
|
||||
- path: /home/cl/nginx_logs.sql
|
||||
owner: 'cl:cl'
|
||||
defer: True
|
||||
content: |
|
||||
CREATE TABLE nginx_logs (
|
||||
timestamp TEXT,
|
||||
ip_address TEXT,
|
||||
remote_user TEXT,
|
||||
request TEXT,
|
||||
status_code INTEGER,
|
||||
body_bytes_sent INTEGER,
|
||||
http_referer TEXT,
|
||||
http_user_agent TEXT
|
||||
);
|
||||
|
||||
runcmd:
|
||||
# Generate the en_US.UTF-8 locale
|
||||
- locale-gen en_US.UTF-8
|
||||
|
|
Loading…
Add table
Reference in a new issue