This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
clickhouse-client --query "CREATE DATABASE IF NOT EXISTS hellreign;"
|
||||
|
||||
clickhouse-client --query "
|
||||
CREATE TABLE IF NOT EXISTS hellreign.logs (
|
||||
timestamp DateTime64(3) DEFAULT now(),
|
||||
level String,
|
||||
service String,
|
||||
message String,
|
||||
host String,
|
||||
trace_id String
|
||||
) ENGINE = MergeTree()
|
||||
ORDER BY (timestamp, service, level);
|
||||
"
|
||||
Reference in New Issue
Block a user