Can opensearch log in JSON format?

I know that ES as of version 7 or so could log in JSON format and did so by default. I see some code for JSON log formatting I think (see below), but I don’t see any mention of JSON logging in the docs. Has anyone tried figuring this out yet?

######## Server JSON ############################
appender.rolling.type = RollingFile
appender.rolling.name = rolling
appender.rolling.fileName = ${sys:opensearch.logs.base_path}${sys:file.separator}${sys:opensearch.logs.cluster_name}_server.json
appender.rolling.filePermissions = rw-r-----
appender.rolling.layout.type = OpenSearchJsonLayout
appender.rolling.layout.type_name = server

in the log4j.properties file will do the trick.

Thanks, that looks like it will do the trick. We will give that a try.