Hi everybody,
Is it possible to configure Jira's logging properties or their log4j format into JSON? Instead of the standard server logs coming in by default, I want them to be in json.
I can't seem to find any documents that help explain how to map the values into a json format. Also, where would one configure this? In the server.xml file? logging.properties file? or the log4j.properties file?
Thanks!
I guess that's a no then? :(
I've tried creating a test appender (based on filelog) switching out the PatternLayout for <JSONLayout /> and while it creates the file, it doesn't look to be printing out anything in a JSON format, e.g:
INFO: Waiting for AO
INFO: Initialization started
INFO: loadGitManagersFromDatabase
INFO: Run migrations
INFO: Start clusterInitializer
INFO: initRoutine is executed
Scheduling automation rule scheduler job
Success automation rule scheduler job
INFO: startRoutine is executed
INFO: plugin startup completed!
Waiting for jql functions registration
CSSErrorListener full context |
CSSErrorListener ambiguity |
CSSErrorListener full context |
CSSErrorListener ambiguity |
CSSErrorListener full context |
CSSErrorListener ambiguity |
CSSErrorListener full context |
CSSErrorListener ambiguity |
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.