We have some issues whereby log size grows without limit for console logs.
From logging config, seems like ES defines 2 rootLogger (console and file) and respectively 2 settings for appenders for each of them.
We can configure log size for "rollingFile", but it can't be done for console appender.
My questions is:
Is it accurate to say that "console" and "file" contain the same logs, hence it's safe to remove "console" from rootLogger and appender?
In addition, is there any way to limit console appender file size? from log4j documentation seems like it's not possible. Please let me know if I missed something here.
The console logger doesn't write to a file, it writes to the console. If it's ending up in a file then that is being done by something outside Elasticsearch. Best to work out how it is ending up in a file and then seeing if that mechanism can be made to limit the file size.