is it possible to point logs to remote location in JIRA

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

This widget could not be displayed.

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

Is there any guide for edit this file?

This widget could not be displayed.

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.

This widget could not be displayed.

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.

This widget could not be displayed.

Is it possible to push logs to syslog server?

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:

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 06, 2018 in Jira Service Desk

A is for Activate: Share your top Jira Service Desk onboarding tips for new users!

Hi, everyone! Molly here from the Jira Service Desk Product Marketing Team :).  In the spirit of this month's  august-challenge, we're sourcing stories of Jira Service Desk activation fro...

536 views 23 15
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