-
Notifications
You must be signed in to change notification settings - Fork 66
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
How can I change the logging level of the reportportal/service-api ? #1404
Comments
Help, anyone ? |
Seconded. Without building a custom docker image, I don't see how to do this and having 'debug' level logging sent to our Elastic stack is not much fun. |
This is still an issue and it is absolutely flooding our logging infrastructure. Could we please get a solution to decrease logging? |
Hello. Not sure if this issue is still relevant, but still. |
Hi Vadym, Thanks a lot for your input. |
I just found that I tried this in the past, and it didn't work either. |
Hi!
|
Well, this does seems to work. I guess this is the one combination I haven't tried :-) |
Try this two environment variables
|
Hello,
I'm running a RepotPortal 5 self-hosted cluster, from a docker-compose file.
We configured the ReportPortal services to send their own logging messages to an ELK central logging service.
We have observed that ever since switching to ReportPortal 5's async reporting, outrELK ReportPortal log indices are flooded with hundreds of GB of log messages daily.
After some investigation, we identified that most of it is coming from DEBUG log messages of the API services, and more specifically from the **com.epam.ta.reportportal.ws package (LogAsyncController.createLog, TestItemAsyncController. finishTestItem, and AsyncReportingListener.onMessage (not exception logs)).
For every reporting API request/response, we get multiple DEBUG log messages from these classes.
I see here https://github.com/reportportal/service-api/blob/d16a30d3d4f6430c0fe45e3df2208dac7e21887e/src/main/resources/application.yaml that the default logging level for these packages is set to debug
We have tried to change the log level settings for this package, via our docker-compose.yml file. We tried with various methods shown below, but none of them changed the package's logging level - it keeps logging DEBUG messages.
api:
image: reportportal/service-api:5.3.5
...
environment:
- logging.level.root=info
- logging.level.com.epam.ta.reportportal.ws.controller=info
- logging.level.com.epam.ta.reportportal.ws.rabbit=info
also :
- LOGGING_LEVEL=info
and :
- SPRING_APPLICATION_JSON:
'{"logging.level.root": "INFO"}'
or :
- SPRING_APPLICATION_JSON:
- '{"logging.level.com.epam.ta.reportportal.ws.controller": "info", "logging.level.com.epam.ta.reportportal.ws.rabbit": "info"}'
plus :
- LOGGING_LEVEL_COM_EPAM=info
Please advise how this can be achieved.
Thanks.
The text was updated successfully, but these errors were encountered: