2021-06-05 16:53:26 +08:00
|
|
|
|
{$template "/datepicker"}
|
2020-10-31 17:44:48 +08:00
|
|
|
|
|
2022-03-27 17:23:02 +08:00
|
|
|
|
{$layout}
|
|
|
|
|
|
|
|
|
|
|
|
<first-menu>
|
2023-04-21 17:51:25 +08:00
|
|
|
|
<menu-item href="/servers">网站列表</menu-item>
|
2022-03-27 17:23:02 +08:00
|
|
|
|
<span class="item disabled">|</span>
|
|
|
|
|
|
<menu-item :href="'/servers/server/log?serverId=' + server.id" active="true">"{{server.name}}"日志</menu-item>
|
|
|
|
|
|
<span class="disabled item">|</span>
|
|
|
|
|
|
<more-items-angle
|
|
|
|
|
|
:v-data-url="'/servers/nearby?serverId=' + server.id"
|
|
|
|
|
|
:v-url="'/servers/server/log?serverId=${serverId}'"></more-items-angle>
|
|
|
|
|
|
</first-menu>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
|
2022-03-27 17:23:02 +08:00
|
|
|
|
{$template "/left_menu_with_menu"}
|
|
|
|
|
|
<div class="right-box with-menu">
|
2023-07-05 15:55:47 +08:00
|
|
|
|
<!-- 集群设置提醒 -->
|
|
|
|
|
|
<div v-if="!clusterAccessLogIsOn">
|
|
|
|
|
|
<div class="margin"></div>
|
|
|
|
|
|
<warning-message>当前集群已经设置不允许网站记录访问日志,可以在"集群设置" -- "网站设置"中修改此选项。</warning-message>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2023-09-22 16:26:15 +08:00
|
|
|
|
<!-- 网站设置提醒 -->
|
|
|
|
|
|
<div v-if="!serverAccessLogIsOn">
|
|
|
|
|
|
<div class="margin"></div>
|
|
|
|
|
|
<warning-message>当前网站尚未启用访问日志,可以在 <a :href="'/servers/server/settings/accessLog?serverId=' + serverId">[这里]</a> 修改。</warning-message>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
2020-10-31 17:44:48 +08:00
|
|
|
|
<first-menu>
|
2022-08-25 11:36:18 +08:00
|
|
|
|
<menu-item :href="path + '?' + query()" :active="hasError == 0 && hasWAF == 0">所有日志</menu-item>
|
|
|
|
|
|
<menu-item :href="path + '?' + query('hasError=1')" :active="hasError > 0">错误日志</menu-item>
|
|
|
|
|
|
<menu-item :href="path + '?' + query('hasWAF=1')" :active="hasWAF > 0">WAF日志</menu-item>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
</first-menu>
|
|
|
|
|
|
|
2021-08-22 16:49:15 +08:00
|
|
|
|
<form method="get" class="ui form small" :action="path">
|
2021-08-07 22:04:30 +08:00
|
|
|
|
<input type="hidden" name="serverId" :value="serverId"/>
|
2021-08-15 10:39:22 +08:00
|
|
|
|
<input type="hidden" name="hasError" :value="hasError"/>
|
2021-08-22 16:49:15 +08:00
|
|
|
|
<input type="hidden" name="hasWAF" :value="hasWAF"/>
|
2022-01-20 16:28:43 +08:00
|
|
|
|
<http-access-log-search-box :v-ip="ip" :v-domain="domain" :v-keyword="keyword" :v-cluster-id="clusterId" :v-node-id="nodeId">
|
2021-08-07 22:04:30 +08:00
|
|
|
|
<div class="ui field">
|
|
|
|
|
|
<input type="text" name="day" maxlength="10" placeholder="选择日期" style="width:7.8em" id="day-input" v-model="day"/>
|
|
|
|
|
|
</div>
|
2022-03-09 11:00:49 +08:00
|
|
|
|
<div class="ui field">
|
|
|
|
|
|
<div class="ui right labeled input">
|
|
|
|
|
|
<input type="text" name="hour" maxlength="2" style="width: 3.5em" v-model="hour"/>
|
|
|
|
|
|
<span class="ui label">时</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
2021-08-07 22:04:30 +08:00
|
|
|
|
</http-access-log-search-box>
|
|
|
|
|
|
</form>
|
|
|
|
|
|
|
2022-04-17 17:08:39 +08:00
|
|
|
|
<!-- 分区 -->
|
2022-08-25 11:36:18 +08:00
|
|
|
|
<http-access-log-partitions-box :v-day="day" :v-partition="partition" :v-query="currentQuery"></http-access-log-partitions-box>
|
2022-04-17 17:08:39 +08:00
|
|
|
|
|
2020-10-31 17:44:48 +08:00
|
|
|
|
<p class="comment" v-if="accessLogs.length == 0">暂时还没有访问日志。</p>
|
|
|
|
|
|
|
|
|
|
|
|
<table class="ui table selectable" v-if="accessLogs.length > 0">
|
|
|
|
|
|
<!-- 这里之所以需要添加 :key,是因为要不然不会刷新显示 -->
|
|
|
|
|
|
<tr v-for="accessLog in accessLogs" :key="accessLog.requestId">
|
2021-06-04 10:15:31 +08:00
|
|
|
|
<td><http-access-log-box :v-access-log="accessLog" :v-keyword="keyword"></http-access-log-box></td>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="accessLogs.length > 0">
|
2022-08-25 11:36:18 +08:00
|
|
|
|
<a :href="path + '?' + query('requestId=' + lastRequestId + '&hasError=' + hasError + '&hasWAF=' + hasWAF + '&partition=' + partition)" v-if="hasPrev">上一页</a>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
<span v-else class="disabled">上一页</span>
|
|
|
|
|
|
<span class="disabled"> | </span>
|
2022-08-25 11:36:18 +08:00
|
|
|
|
<a :href="path + '?' + query('requestId=' + nextRequestId + '&hasError=' + hasError + '&hasWAF=' + hasWAF + '&partition=' + partition)" v-if="hasMore">下一页</a>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
<span v-else class="disabled">下一页</span>
|
2021-12-08 19:13:34 +08:00
|
|
|
|
<page-size-selector></page-size-selector>
|
2020-10-31 17:44:48 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|