how to exclude specific lines from catalina.out

hey folks.

i need to now how to set up the log4j.properties to push all lines like this:

2013-08-09 16:11:37,450 http-8080-21 INFO anonymous 971x4882x4 - xx.xx.xx.xx,xx.xx.xx.xx /browse/BPRO/component/12778 [com.domain.seraph.GwallAuthenticator] username got from gwall header: (null)
2013-08-09 16:11:37,450 http-8080-21 INFO anonymous 971x4882x4 - xx.xx.xx.xx,xx.xx.xx.xx /browse/BPRO/component/12778 [com.domain.seraph.GwallAuthenticator] got User from database: (null)
2013-08-09 16:11:37,450 http-8080-21 INFO anonymous 971x4882x4 - xx.xx.xx.xx,xx.xx.xx.xx /browse/BPRO/component/12778 [com.domain.seraph.GwallAuthenticator] User saved into session: (null)

into a seperate log file so that logrotation can be set up.

right now all these request are logged into catalina.out which causes a rapidly increasing file size...

approx 8G in 10 days....so i really need to filter these lines out and push them to a seperate file.

any idea?

Cheers

1 answer

1 accepted

0 votes
Eddie Webb Community Champion Aug 21, 2013

catalina.out probably configured as the console logger in your config. You could chaneg that, or try using filters.

http://logging.apache.org/log4j/2.x/manual/configuration.html#Filters

Also see this SO question for solutions to either stop all ligging to catalina, or roll the file over.

http://stackoverflow.com/questions/1146759/catalina-out-rolling-with-tomcat-6-0

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

2,799 views 11 18
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot