Stop overriding logging.{ecs,json} defaults#6613
Merged
Merged
Conversation
f5e65f7 to
64d55db
Compare
💚 Build Succeeded
Expand to view the summary
Build stats
Test stats 🧪
🤖 GitHub commentsTo re-run your PR in the CI, just comment with:
|
stuartnelson3
approved these changes
Nov 15, 2021
simitt
approved these changes
Nov 15, 2021
mergify Bot
pushed a commit
that referenced
this pull request
Nov 15, 2021
Co-authored-by: stuart nelson <[email protected]> (cherry picked from commit edca170)
axw
added a commit
that referenced
this pull request
Nov 15, 2021
Co-authored-by: stuart nelson <[email protected]> (cherry picked from commit edca170) Co-authored-by: Andrew Wilkins <[email protected]>
Contributor
|
Verified with 9bb5e4c. $ /apm-server -E output.elasticsearch.username=admin -E output.elasticsearch.password=changeme -E apm-server.rum.enabled= -e
{"log.level":"info","@timestamp":"2021-12-21T14:59:13.371+0800","log.logger":"beater","log.origin":{"file.name":"beater/http.go","file.line":88},"message":"RUM endpoints enabled!","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"warn","@timestamp":"2021-12-21T14:59:13.372+0800","log.logger":"beater","log.origin":{"file.name":"beater/http.go","file.line":91},"message":"CORS related setting `apm-server.rum.allow_origins` allows all origins. Consider more restrictive setting for production use.","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-12-21T14:59:13.372+0800","log.logger":"beater","log.origin":{"file.name":"beater/http.go","file.line":106},"message":"SSL disabled.","service.name":"apm-server","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2021-12-21T14:59:20.093+0800","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":58},"message":"data validation error","service.name":"apm-server","url.original":"/intake/v2/rum/events","http.request.method":"POST","user_agent.original":"curl/7.64.1","source.address":"127.0.0.1","http.request.body.bytes":0,"http.request.id":"7fafc293-b89f-459f-abf8-eda4d2a9318b","event.duration":1088584,"http.response.status_code":400,"error.message":"validation error: 'metadata' required","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-12-21T14:59:49.907+0800","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":61},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/rum/events","http.request.method":"POST","user_agent.original":"curl/7.64.1","source.address":"127.0.0.1","http.request.body.bytes":1096,"http.request.id":"5da04119-499d-47a6-8355-0534207f98af","event.duration":52282167,"http.response.status_code":202,"ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2021-12-21T15:08:06.904+0800","log.logger":"request","log.origin":{"file.name":"middleware/log_middleware.go","file.line":61},"message":"request accepted","service.name":"apm-server","url.original":"/intake/v2/events","http.request.method":"POST","user_agent.original":"curl/7.64.1","source.address":"127.0.0.1","http.request.body.bytes":4700,"http.request.id":"c281207d-1e2d-4229-87a5-c03c39f07716","event.duration":2648916,"http.response.status_code":202,"ecs.version":"1.6.0"} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation/summary
Stop overriding the defaults for
logging.ecsandlogging.json. These are now both forced on by libbeat (elastic/beats#28573).Checklist
- [ ] Documentation has been updated(Relevant docs are copied from beats.)How to test these changes
apm-server -eRelated issues
elastic/beats#28573