Skip to content

Commit

Permalink
changes event
Browse files Browse the repository at this point in the history
  • Loading branch information
Nithunikzz committed Nov 1, 2023
1 parent 365c6d1 commit cc693fd
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions sql/20231031110543_update_event.up.sql
Original file line number Diff line number Diff line change
@@ -1,2 +1,20 @@
ALTER TABLE events
ALTER ENGINE = MergeTree();
CREATE TABLE IF NOT EXISTS new_events (
ClusterName String,
Id String,
EventTime DateTime('UTC'),
OpType String,
Name String,
Namespace String,
Kind String,
Message String,
Reason String,
Host String,
Event String,
FirstTime String,
LastTime String
) ENGINE = MergeTree()
ORDER BY (ClusterName, EventTime)
TTL EventTime + INTERVAL 10 MINUTE
SETTINGS index_granularity = 8192;

ALTER TABLE new_events RENAME TO events;

0 comments on commit cc693fd

Please sign in to comment.