Skip to content

Commit 78d63c5

Browse files
authored
Merge pull request #10 from ZDF-OSS/feature/fix_dashboard_allow_block_mixup
fix: fix dashboard top 30 blocks vs allow mix
2 parents 53d82f0 + 8940d34 commit 78d63c5

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

API.md

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ The Construct is available in the following languages:
1717

1818
Third-party Language Deprecation: language version is only supported until its EOL (End Of Life) shared by the vendor or community and is subject to change with prior notice.
1919

20-
![architecture](/assets/architecture.png)
20+
![architecture](https://raw.githubusercontent.com/ZDF-OSS/cdk-aws-wafv2-geofence-lib/HEAD/assets/architecture.png)
2121

2222

2323
**Features**
@@ -29,7 +29,7 @@ Third-party Language Deprecation: language version is only supported until its E
2929

3030

3131

32-
![dashboard](/assets/dashboard.png)
32+
![dashboard](https://raw.githubusercontent.com/ZDF-OSS/cdk-aws-wafv2-geofence-lib/HEAD/assets/dashboard.png)
3333

3434

3535
***AWS Managed Rules***

src/components/dashboard.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,29 +76,29 @@ export class CloudWatchWAFDashboard extends Construct {
7676
});
7777

7878
const blockedAgents = new LogQueryWidget({
79-
title: 'Top 30 Blocked User-Agents',
79+
title: 'Top Blocked User-Agents',
8080
height: 8,
8181
width: 12,
8282
logGroupNames: [props.cloudwatchLogName],
8383
view: LogQueryVisualizationType.TABLE,
8484
queryLines: [
8585
'fields @timestamp, @message',
8686
'parse @message /(?i)"name":"user-agent","value":"(?<httpRequestUserAgent>[^"]+)/',
87-
'filter action == "ALLOW"',
87+
'filter action == "BLOCK"',
8888
'stats count() as count by httpRequestUserAgent as UserAgent',
8989
'sort by count desc',
9090
],
9191
});
9292
const allowedAgents = new LogQueryWidget({
93-
title: 'Top 30 Allowed User-Agents',
93+
title: 'Top Allowed User-Agents',
9494
height: 8,
9595
width: 12,
9696
logGroupNames: [props.cloudwatchLogName],
9797
view: LogQueryVisualizationType.TABLE,
9898
queryLines: [
9999
'fields @timestamp, @message',
100100
'parse @message /(?i)"name":"user-agent","value":"(?<httpRequestUserAgent>[^"]+)/',
101-
'filter action == "BLOCK"',
101+
'filter action == "ALLOW"',
102102
'stats count() as count by httpRequestUserAgent as UserAgent',
103103
'sort by count desc',
104104
],

0 commit comments

Comments
 (0)