how do i move the location of the logs on Jira

Kaushal Patel October 23, 2018

hi

Currently logs for jira are located /opt/jira/atlassian-jira-software-7.4.2-standalone/logs

i want to move to a drive that has much more space.

 

current storage on the server is 

 

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/rhel_inettemplrhel7-root 18G 6.4G 12G 37% /
devtmpfs 7.9G 0 7.9G 0% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
tmpfs 7.9G 809M 7.1G 11% /run
tmpfs 7.9G 0 7.9G 0% /sys/fs/cgroup
/dev/sda1 497M 165M 333M 34% /boot
/dev/mapper/vg_data-jira 177G 92G 85G 53% /home/jira

 

i want to move all the logs to /dev/mapper/vg_data-jira

 

thanks 

 

2 answers

0 votes
Sreenivasaraju P
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 23, 2018
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2018

That's attachments, not logs.  But the right answer for attachments.

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 23, 2018

Two options (both need you to stop Jira while you amend them)

Restart Jira and  it will log to the new place.

Kaushal Patel October 23, 2018

ok found the file do i need to change all jirahomeAppender

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
log4j.appender.filelog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout
log4j.appender.filelog.layout.ConversionPattern=%d %t %p %X{jira.username} %X{jira.request.id} %X{jira.request.assession.id} %X{jira.request.ipaddr} %X{jira.request.url} [%q{2}] %m%n
# re-enable when JDEV-33891 is resolved or improved
log4j.appender.filelog.layout.StackTracePackagingExamined=false
log4j.appender.filelog.layout.MinimumLines=6
log4j.appender.filelog.layout.ShowEludedSummary=false
log4j.appender.filelog.layout.FilteringApplied=true
log4j.appender.filelog.layout.FilteredFrames=@jira-filtered-frames.properties


log4j.appender.httpaccesslog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.httpaccesslog.File=atlassian-jira-http-access.log
log4j.appender.httpaccesslog.MaxFileSize=20480KB
log4j.appender.httpaccesslog.MaxBackupIndex=5
log4j.appender.httpaccesslog.layout=com.atlassian.logging.log4j.NewLineIndentingFilteringPatternLayout
log4j.appender.httpaccesslog.layout.ConversionPattern=%m%n

 

 

or just

log4j.appender.filelog=com.atlassian.jira.logging.JiraHomeAppender
log4j.appender.filelog.File=atlassian-jira.log

 

to 

log4j.appender.filelog=org.apache.log4j.RollingFileAppender

log4j.appender.filelog.File=/home/jira/logs/atlassian-jira.log

 

also will this work for the catalina.out

Kaushal Patel October 26, 2018

@Nic Brough -Adaptavist- any chance you can help with the above ?

Suggest an answer

Log in or Sign up to answer