增加WAF日志配置/WAF策略中之日志中增加分表查询

This commit is contained in:
GoEdgeLab
2022-04-21 19:45:25 +08:00
parent 4d089a1af3
commit 305718a03c
8 changed files with 135 additions and 8 deletions

View File

@@ -25,6 +25,8 @@
</first-menu>
</form>
<http-access-log-partitions-box :v-day="day" :v-partition="partition"></http-access-log-partitions-box>
<p class="comment" v-if="accessLogs.length == 0">暂时还没有日志。</p>
<table class="ui table selectable" v-if="accessLogs.length > 0">

View File

@@ -13,5 +13,10 @@ Tea.context(function () {
} else {
accessLog.region = ""
}
if (accessLog.firewallRuleSetId > 0 && typeof (that.wafInfos[accessLog.firewallRuleSetId]) == "object") {
accessLog.wafInfo = that.wafInfos[accessLog.firewallRuleSetId]
} else {
accessLog.wafInfo = null
}
})
})

View File

@@ -92,6 +92,13 @@
</table>
</td>
</tr>
<tr>
<td>记录日志</td>
<td>
<span v-if="firewallPolicy.log == null || !firewallPolicy.log.isOn">默认</span>
<span v-else class="green">开启</span>
</td>
</tr>
<tr>
<td>描述</td>
<td>

View File

@@ -49,6 +49,14 @@
<td>
<firewall-syn-flood-config-box :v-syn-flood-config="firewallPolicy.synFloodConfig"></firewall-syn-flood-config-box>
</td>
</tr>
<tr>
<td>记录日志</td>
<td>
<input type="hidden" name="logJSON" :value="JSON.stringify(firewallPolicy.log)"/>
<checkbox name="" v-model="firewallPolicy.log.isOn"></checkbox>
<p class="comment">选中后总是记录WAF相关日志即使服务中没有开启访问日志。</p>
</td>
</tr>
<tr>
<td colspan="2"><more-options-indicator></more-options-indicator></td>