KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Textlog for Tomcat errors

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Tue Sep 15, 2020 9:06 am    Post subject: Textlog for Tomcat errors Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Tue Sep 15, 2020 10:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Wed Sep 16, 2020 2:08 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Wed Sep 16, 2020 2:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
MirkoW



Joined: 01 Jul 2008
Posts: 205

PostPosted: Wed Sep 16, 2020 2:38 am    Post subject: Reply with quote

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
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12791
Location: USA

PostPosted: Wed Sep 16, 2020 2:40 am    Post subject: Reply with quote

Then HostMonitor cannot perform such test

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index