Create a sql file to create table for nginx logs

This commit is contained in:
Marcus Kammer 2023-11-03 17:04:37 +01:00
parent 39b1d0dd09
commit ab37a3fa86
Signed by: marcuskammer
GPG key ID: C374817BE285268F

View file

@ -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