is it possible to point logs to remote location in JIRA

Heshan Manamperi
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.
July 4, 2013

Is it possible to point JIRA logs to remote location ?

Is it possible to replicate logs to remote location while keeping original location. So in other words, same JIRA logs should be locate in two locations (Local Server & Remote syslog server).

4 answers

1 accepted

1 vote
Answer accepted
JamieA
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.
July 4, 2013

It's log4j, so you could just modify your log4j.properties to use a SocketHubAppender instead of a FileAppender, then use chainsaw or something from anywhere.

Heshan Manamperi
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.
July 23, 2013

Is there any guide for edit this file?

1 vote
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.
July 4, 2013

Yes and no.

You can tell Tomcat/Jira to place the logs anywhere you want to on the local server. In several places, I've mounted remote or shared directories on the servers and the applications quite happily write the logs to them.

Replication is a different matter - there's nothing in the applications to do this. But there's nothing stopping you from using a SAN for the logs, or doing a regular rsync, or anything else. Logs are plain text files which the application simply appends to constantly, so you can replicate with anything that can handle that.

The only word of caution I've got (on both remote mounts and replication) is that you must consider speed and availability. The apps will need to continue writing constantly and potentially a lot, so you don't want that slowing the app down. If your shares disappear, then the apps may choke on a missing log directory.

0 votes
Heshan Manamperi
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.
July 4, 2013

Is it possible to push logs to syslog server?

Bryan Karsh
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.
January 29, 2014

Looking at Jamie's comment above, it seems like you could use some sort of appender -- guessing you could use SyslogAppender since we're talking about log4j, no?

I actually need to do this eventually myself -- will let you know how it goes.

Looks like this page has a lot of info that would probably apply with some tweaks:

http://loggly.wpengine.com/docs/java-log4j/


0 votes
Zul NS _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 4, 2013

Perhaps you can use logrotate and use copy to copy the logs in another location. If you interested in rotating the logs, feel free to see this KB article.

Suggest an answer

Log in or Sign up to answer