Textlog for Tomcat errors

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Textlog for Tomcat errors

Post by MirkoW »

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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

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.
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

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
MirkoW
Posts: 210
Joined: Tue Jul 01, 2008 6:51 am

Post by MirkoW »

KS-Soft wrote:
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
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Then HostMonitor cannot perform such test

Regards
Alex
Post Reply