Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

where is the source of atlassian-jira.log.1 (rotate disabled)?

Frank Lienhard February 13, 2018

We work with a rather large installation of JIRA, which results in atlassian-jira.log beeing rotated to fast out of date. In our case thats often less than 12 hours.

So I reconfigured logrotate entierly, by disabling all internal logrotation (log4j.properties, <vavle> in server.xml, logging.properties, sentenv.sh).

logrotate ist the done by scripts/cron from linux cli into another sub-dir

Most of it works fine, but I do get the following (I guess while restarting JIRA):

atlassian-jira.log
atlassian-jira.log.1

the second file is the is the one in question. Is there some way to influence the naming/ destination dir for this logfile?

1 answer

0 votes
Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 13, 2018

Dear @Frank Lienhard,

you have to adapt the log4j configuration. This article will help you further. For details on the config format, you best got to the apache log4j reference.

So long

Thomas

Frank Lienhard February 13, 2018

already done that. The lines responsible fpr the rotation in log4j.properties are commented:

log4j.appender.filelog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.filelog.File=atlassian-jira.log
#log4j.appender.filelog.MaxFileSize=20480KB
#log4j.appender.filelog.MaxBackupIndex=5

and it is working basicly. The only annoying part is, that for some reason ONE file ist rotated to "atlassian-jira.log.1".

I tought it was because of a restart of the application, but as I tried to reproduce that, the file wasn't rotated anymore...

EDIT:

Just checked another instance, which is configured the same way. Last "unintended" rotate at 2:51 AM, a time where it was definitly not restarteted

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 13, 2018

Dear @Frank Lienhard,

have you tried the org.apache.log4j.RollingFileAppender?

See also this.

So long

Thomas

Frank Lienhard February 13, 2018

Dear @Thomas Deiler,

now you lost me in 2 ways:

do you mean I should use org.apache.log4j.RollingFileAppender instead of something else or to check if that's the cause of the problem.

To the first: No, we strictly want JIRA to not rotate

As for the later: it's not defined in log4j.properties

 

To the linked article: That question regards to why the logs are beeing written to audit.log.1 instead to audit.log, when the rotate was done delibrately to audit.log.1.

Our problem ist: We don't know what is causing the rotate to audit.log.1 and try to prevent that.

EDIT: I am currently investigating this with the support of atlassian. I'll try to let you know the outcome/ solutioin

...and thanks for all the fish

Frank

Thomas Deiler
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 19, 2018

Dear @Frank Lienhard,

what did the support report?

So long

Thomas

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events