-
Notifications
You must be signed in to change notification settings - Fork 8.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Log correct Kibana URL when TLS is enabled and log it only once. #20721
Log correct Kibana URL when TLS is enabled and log it only once. #20721
Conversation
@@ -85,7 +85,7 @@ export class HttpService implements CoreService { | |||
'Router will **not** be applied.' | |||
); | |||
} else { | |||
this.log.info(`registering route handler for [${router.path}]`); | |||
this.log.debug(`registering route handler for [${router.path}]`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we're going to register lots of routes in the future and logging every one with info
level is probably too much...
record.timestamp | ||
); | ||
public append({ level, context, message, error, timestamp, meta = {} }: LogRecord) { | ||
const tags = [level.id.toLowerCase(), ...context.split('.'), ...(meta.tags || [])]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: we weren't passing meta
to legacy platform previously since we didn't know whether we really need it, turned out we need custom tags like listening
that can't be part of context
.
💔 Build Failed |
retest |
💚 Build Succeeded |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, code looks good, seems to do the right thing when I run it locally. starting server :tada:
is adorable but do you think we can toss it while you're in here?
Yeah. What if we keep it with |
💚 Build Succeeded |
ping @archanid :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ran it locally and all seems as expected. LGTM @azasypkin
💔 Build Failed |
retest |
💔 Build Failed |
retest |
💔 Build Failed |
Okay, something weird is going on CI, I'll take a look later today or on Friday when I'm back from vacation. Should be the test that's too flaky :) |
💔 Build Failed |
💚 Build Succeeded |
6.x/6.4: 750b6b8 |
While testing #19261 I've noticed that with enabled TLS and without base path proxy Kibana always logs HTTP url. The reason is that now "legacy" Kibana doesn't know anything about TLS and new platform doesn't log full URL.
In this PR I log full correct Kibana URL from new platform only.
Broken by #18951.
Before:
![11](https://user-images.githubusercontent.com/1713708/42635423-4ee1097a-85e6-11e8-897e-bf1df6265eb4.png)
![1](https://user-images.githubusercontent.com/1713708/42634817-8d191518-85e4-11e8-8eae-313f4598e9b6.png)
After:
Before:
![21](https://user-images.githubusercontent.com/1713708/42635510-89709844-85e6-11e8-82b7-cb6a08a8ef13.png)
![2](https://user-images.githubusercontent.com/1713708/42634864-ba962d8c-85e4-11e8-9423-2a7f4886c1b5.png)
After:
Before:
![31](https://user-images.githubusercontent.com/1713708/42635578-b64ef518-85e6-11e8-8603-bf23dc2bab42.png)
![3](https://user-images.githubusercontent.com/1713708/42635247-d204a448-85e5-11e8-9f8e-98263ad2e5bf.png)
After:
Before:
![41](https://user-images.githubusercontent.com/1713708/42635653-e4fd2448-85e6-11e8-9814-51af058b6945.png)
![4](https://user-images.githubusercontent.com/1713708/42635290-f5eea9bc-85e5-11e8-8bcc-0306097061a3.png)
After: