diff --git a/internal/web/actions/default/servers/logs/index.go b/internal/web/actions/default/servers/logs/index.go index 754ff62e..3ebbb4ae 100644 --- a/internal/web/actions/default/servers/logs/index.go +++ b/internal/web/actions/default/servers/logs/index.go @@ -25,6 +25,7 @@ func (this *IndexAction) RunGet(params struct { ClusterId int64 NodeId int64 Day string + Hour string Keyword string Ip string Domain string @@ -45,6 +46,7 @@ func (this *IndexAction) RunGet(params struct { this.Data["serverId"] = 0 this.Data["path"] = this.Request.URL.Path this.Data["day"] = params.Day + this.Data["hour"] = params.Hour this.Data["keyword"] = params.Keyword this.Data["ip"] = params.Ip this.Data["domain"] = params.Domain @@ -76,6 +78,8 @@ func (this *IndexAction) RunGet(params struct { HasError: params.HasError > 0, HasFirewallPolicy: params.HasWAF > 0, Day: day, + HourFrom: params.Hour, + HourTo: params.Hour, Keyword: params.Keyword, Ip: params.Ip, Domain: params.Domain, diff --git a/internal/web/actions/default/servers/server/log/history.go b/internal/web/actions/default/servers/server/log/history.go index 4bf72f0c..0366f3e8 100644 --- a/internal/web/actions/default/servers/server/log/history.go +++ b/internal/web/actions/default/servers/server/log/history.go @@ -21,6 +21,7 @@ func (this *HistoryAction) Init() { func (this *HistoryAction) RunGet(params struct { ServerId int64 Day string + Hour string Keyword string Ip string Domain string @@ -40,6 +41,7 @@ func (this *HistoryAction) RunGet(params struct { this.Data["path"] = this.Request.URL.Path this.Data["day"] = params.Day + this.Data["hour"] = params.Hour this.Data["keyword"] = params.Keyword this.Data["ip"] = params.Ip this.Data["domain"] = params.Domain @@ -68,6 +70,8 @@ func (this *HistoryAction) RunGet(params struct { HasError: params.HasError > 0, HasFirewallPolicy: params.HasWAF > 0, Day: day, + HourFrom: params.Hour, + HourTo: params.Hour, Keyword: params.Keyword, Ip: params.Ip, Domain: params.Domain, diff --git a/web/public/js/components/server/http-access-log-search-box.js b/web/public/js/components/server/http-access-log-search-box.js index a0b5f064..730e1051 100644 --- a/web/public/js/components/server/http-access-log-search-box.js +++ b/web/public/js/components/server/http-access-log-search-box.js @@ -78,11 +78,11 @@ Vue.component("http-access-log-search-box", {
-