Commit 4890c89d authored by godog's avatar godog

Use fqdn:port to search in 'vhost' logs attribute

parent e375b717
Pipeline #1439 passed with stages
in 39 seconds
......@@ -43,15 +43,19 @@ func (p PublicEndpoint) URL() string {
return fmt.Sprintf("https://%s/", p.FQDN())
}
func (p PublicEndpoint) Address() string {
return fmt.Sprintf("%s:%d", p.FQDN(), p.Port)
}
func (p PublicEndpoint) LogsURL() template.HTML {
// Woah.
return template.HTML(fmt.Sprintf(
"https://logs.%s/app/kibana#/dashboard/%s?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:now-12h,mode:quick,to:now))&_a=(description:'',filters:!(('$state':(store:appState),meta:(alias:!n,disabled:!f,index:da92a2d0-55fd-11e8-b43b-036ee7010221,key:vhost,negate:!f,params:(query:'%s',type:phrase),type:phrase,value:'%s'),query:(match:(vhost:(query:'%s',type:phrase))))))",
config.PublicDomain,
kibanaWebDashboardID,
p.FQDN(),
p.FQDN(),
p.FQDN(),
p.Address(),
p.Address(),
p.Address(),
))
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment