View previous topic :: View next topic |
Author |
Message |
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Tue Sep 15, 2020 9:06 am Post subject: Textlog for Tomcat errors |
|
|
Hello,
Tomcat creating files for error outputs with filenames like this: tomcat8-stdout.2020-06-17
I want to monitor all error messages in this file via Textlog text.
How can i select the latest tomcat8-stdout-File? tomcat8-stdout* and tomcat8-stdout%newestfile% does not work.
Best regards,
Mirko |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Tue Sep 15, 2020 10:35 am Post subject: |
|
|
Quote: | tomcat8-stdout%newestfile% does not work |
of course.
Why you cannot use just %newestfille% variable? Other files (not just tomcat logs) created in this folder every day?
Then I would suggest to set tomcat8-stdout.%yyyy-mm-dd%
Regards
Alex |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Wed Sep 16, 2020 2:08 am Post subject: |
|
|
Hello,
Tomcat did not create new logfiles ever day. It use the logfiles since last restart.
Actually i need to monitor follow file: tomcat8-stderr.2020-06-17.log
I tried tomcat8-stderr.%newestfile% with activated checkbox "translate macros". But HM replied RMA: Test Error and Status is unknown.
If i use the filename instead, everything works. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Sep 16, 2020 2:15 am Post subject: |
|
|
Quote: | I tried tomcat8-stderr.%newestfile% with activated checkbox |
of course this will not work.
Why you cannot use just %newestfille% variable? Other files (not just tomcat logs) created in this folder every day?
Regards
Alex |
|
Back to top |
|
|
MirkoW
Joined: 01 Jul 2008 Posts: 205
|
Posted: Wed Sep 16, 2020 2:38 am Post subject: |
|
|
KS-Soft wrote: | Quote: | I tried tomcat8-stderr.%newestfile% with activated checkbox |
of course this will not work.
Why you cannot use just %newestfille% variable? Other files (not just tomcat logs) created in this folder every day?
Regards
Alex |
There are a lot of other files in same folder, for example access-logs. So %newestfile% would choose the wrong file |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Sep 16, 2020 2:40 am Post subject: |
|
|
Then HostMonitor cannot perform such test
Regards
Alex |
|
Back to top |
|
|
|