Skip to content

Commit 69157b8

Browse files
committed
feat: add updates for Windows visualizations and default time range adjustments
1 parent f91ac27 commit 69157b8

File tree

3 files changed

+81
-0
lines changed

3 files changed

+81
-0
lines changed
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
6+
7+
<changeSet id="20260211004" author="Manuel Abascal">
8+
9+
<sql dbms="postgresql" splitStatements="true" stripComments="true">
10+
<![CDATA[
11+
12+
------------------------------------------------------------------
13+
-- Fix duplicated .keyword in eventName:
14+
-- log.eventName.keyword.keyword → log.eventName.keyword
15+
------------------------------------------------------------------
16+
UPDATE utm_visualization
17+
SET filters = REPLACE(filters,
18+
'log.eventName.keyword.keyword',
19+
'log.eventName.keyword')
20+
WHERE filters IS NOT NULL;
21+
22+
UPDATE utm_visualization
23+
SET aggregation = REPLACE(aggregation,
24+
'log.eventName.keyword.keyword',
25+
'log.eventName.keyword')
26+
WHERE aggregation IS NOT NULL;
27+
28+
------------------------------------------------------------------
29+
-- Windows EventLog: wineventlogEventDataServiceName → winlogEventDataServiceName
30+
------------------------------------------------------------------
31+
UPDATE utm_visualization
32+
SET filters = REPLACE(filters,
33+
'log.wineventlogEventDataServiceName.keyword',
34+
'log.winlogEventDataServiceName.keyword')
35+
WHERE filters IS NOT NULL;
36+
37+
UPDATE utm_visualization
38+
SET aggregation = REPLACE(aggregation,
39+
'log.wineventlogEventDataServiceName.keyword',
40+
'log.winlogEventDataServiceName.keyword')
41+
WHERE aggregation IS NOT NULL;
42+
43+
44+
]]>
45+
</sql>
46+
47+
</changeSet>
48+
49+
</databaseChangeLog>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<databaseChangeLog
3+
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
6+
7+
<changeSet id="20260211005" author="Manuel Abascal">
8+
9+
<sql dbms="postgresql" splitStatements="true" stripComments="true">
10+
<![CDATA[
11+
12+
------------------------------------------------------------------
13+
-- Visualization 501: update timestamp range (24h → 7d)
14+
------------------------------------------------------------------
15+
UPDATE utm_visualization
16+
SET filters = REPLACE(
17+
filters,
18+
'["now-24h","now"]',
19+
'["now-7d","now"]'
20+
)
21+
WHERE id = 501;
22+
23+
]]>
24+
</sql>
25+
26+
</changeSet>
27+
28+
</databaseChangeLog>

backend/src/main/resources/config/liquibase/master.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,10 @@
411411

412412
<include file="/config/liquibase/changelog/20260211003_update_filter_netflow.xml" relativeToChangelogFile="false"/>
413413

414+
<include file="/config/liquibase/changelog/20260211004_update_windows_visualizations.xml" relativeToChangelogFile="false"/>
415+
416+
<include file="/config/liquibase/changelog/20260211005_update_default_time_visualizations.xml" relativeToChangelogFile="false"/>
417+
414418

415419

416420
</databaseChangeLog>

0 commit comments

Comments
 (0)