Unfortunately, it seems like the permissions on Ubuntu I found this in my syslog:. As a side-effect, this causes it to seem like there is "pointless" logrotate on catalina. It is probably intended to still be working. You should ensure that the group syslog has write permissions on the catalina. Logging should behave normally from this point on. However something is later compressing them. This is aligned with the file naming used in the Tomcat logging configuration but does not force Tomcat to flush and close the logs.
The log files are owned by the tomcat user implying that these are not maintained by rsyslog and when I check with fuser it is tomcat that has open file handles, not rsyslog. Indeed, since it is using java. So we have three different mechanisms for log management in the package, none of which provide a solution to the log rotation and which will actually break the integrity of your log files.
As I plan on implementing log aggregation, rather than fix the file mechanism I chose to go down the root of sending data to syslog. The default build of Tomcat on Ubuntu uses java.
Although this supports network socket based logging, it does not implement the syslog message protocol. That gets the data into rsyslog. The next step is to get it out of rsyslog into a file. I don't need the web access logs as the HTTP traffic is mediated by a nginx proxy which handles the required logging. The last part of the puzzle is to enable log rotation. Ubuntu Community Ask! Sign up to join this community.
The best answers are voted up and rise to the top. Stack Overflow for Teams — Collaborate and share knowledge with a private group. Create a free Team What is Teams? Learn more. Viewed k times. May I know what is the problem? Which configuration that I need to look to? Yes the catalina. I already checked the log moved to a file called catalina. May I know where can I see the setting and configuration for logging?
Add a comment. Active Oldest Votes. Tomcat 7 Ubuntu Server Because it depends. If there is several, look at their sizes: that with size 0 are not what you want. Andrey Regentov Andrey Regentov 3, 4 4 gold badges 28 28 silver badges 39 39 bronze badges. I hope this helps. Promise Preston Ronan Boiteau 8, 6 6 gold badges 32 32 silver badges 50 50 bronze badges. It works for me on Ubuntu I have used this command to check the logs and is used to show the number of lines sudo tail f catalina.
Rahul Rahul 2, 2 2 gold badges 24 24 silver badges 39 39 bronze badges. I have added the title as well for "what is the purpose of this command". This bug report is a duplicate of: Bug catalina. Edit Remove. This bug affects 2 people. Also affects project? Bug Description. Hello, I have been using Tomcat for about 18 years several versions. Thanks in advance! Add tags Tag help. Revision history for this message. Status changed to 'Confirmed' because the bug affects multiple users.
See full activity log. To post a comment you must log in. Report a bug.
0コメント