Push JIRA logs to syslog server

I need to push JIRA logs (tomcat logs) to remote syslog server.

2 answers

1 accepted

2 votes
Accepted answer

Hi Heshan,

Try to use syslog appender. In log4j properties you add it and then you have to insert DNS SERVER NAME.... :)

It would be great if you could provide more information regarding enabling syslog appender.

Do you have a sample code that we can use as a guideline? Thanks

You need to modify log4j.property file.

Add SYSLOG to log4j.rootCategory.


# sample properties to initialize

log4j log4j.rootCategory= WARN, console, filelog, SYSLOG, fout

Then add below appender to this file

log4j.appender.SYSLOG.syslogHost=<IP address of local syslog server>
log4j.appender.SYSLOG.layout.ConversionPattern=%t %5r %-5p %-21d{yyyyMMdd HH:mm:ss,SSS} %c{2} [%x] %m %throwable{none}

Then go to /etc/syslog-ng/syslog-ng.conf file

Un-comment below line udp(ip("") port(514));

and add below lines

destination df_remote_log { udp("<IP address of remote syslog server>" port(514)); };
filter f_mit { facility(LOCAL0); };
log {
filter(f_mit); destination(df_remote_log);

Finally restart tomcat and syslog services

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Jan 08, 2019 in Jira

How to Jira for designers

I’m a designer on the Jira team. For a long time, I’ve fielded questions from other designers about how they should be using Jira Software with their design team. I’ve also heard feedback from other ...

1,284 views 5 10
Read article

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