From 591db4a8c67b4fc4e93a89027222c21a8144ab3d Mon Sep 17 00:00:00 2001
From: ruslandoga <67764432+ruslandoga@users.noreply.github.com>
Date: Fri, 13 Sep 2024 14:07:08 +0700
Subject: [PATCH] restore clickhouse config
---
.gitignore | 3 ++-
clickhouse/ipv4.xml | 4 ++++
clickhouse/logs.xml | 43 +++++++++++++++++++++++++++++++++++++++++++
3 files changed, 49 insertions(+), 1 deletion(-)
create mode 100644 clickhouse/ipv4.xml
create mode 100644 clickhouse/logs.xml
diff --git a/.gitignore b/.gitignore
index adca6d9..e869ca5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
*
!compose.yml
-!clickhouse
+!clickhouse/
+!clickhouse/**
!README.md
!.gitignore
diff --git a/clickhouse/ipv4.xml b/clickhouse/ipv4.xml
new file mode 100644
index 0000000..aa5abc5
--- /dev/null
+++ b/clickhouse/ipv4.xml
@@ -0,0 +1,4 @@
+
+
+ 0.0.0.0
+
diff --git a/clickhouse/logs.xml b/clickhouse/logs.xml
new file mode 100644
index 0000000..acd4116
--- /dev/null
+++ b/clickhouse/logs.xml
@@ -0,0 +1,43 @@
+
+
+ warning
+ true
+
+
+
+ system
+
+ 7500
+
+ ENGINE = MergeTree
+ PARTITION BY event_date
+ ORDER BY (event_time)
+ TTL event_date + interval 30 day
+ SETTINGS ttl_only_drop_parts=1
+
+
+
+
+ event_date
+ event_date + INTERVAL 30 DAY DELETE
+
+
+
+ event_date
+ event_date + INTERVAL 30 DAY DELETE
+
+
+
+
+
+
+
+
+
+
+