qzvt
(Qzvt)
March 18, 2024, 9:00am
1
Hello,
I have an issue when I try to install Graylog with docker compose. I have try this link for this compose:
version: "3.8"
# For DataNode setup, graylog starts with a preflight UI, this is a change from just using OpenSearch/Elasticsearch.
# Please take a look at the README at the top of this repo or the regular docs for more info.
services:
mongodb:
image: "mongo:5.0"
volumes:
- "mongodb_data:/data/db"
restart: "on-failure"
# For DataNode setup, graylog starts with a preflight UI, this is a change from just using OpenSearch/Elasticsearch.
# Please take a look at the README at the top of this repo or the regular docs for more info.
datanode:
image: "${DATANODE_IMAGE:-graylog/graylog-datanode:5.2}"
hostname: "datanode"
environment:
GRAYLOG_DATANODE_NODE_ID_FILE: "/var/lib/graylog-datanode/node-id"
GRAYLOG_DATANODE_PASSWORD_SECRET: "${GRAYLOG_PASSWORD_SECRET:?Please configure GRAYLOG_PASSWORD_SECRET in the .env file}"
This file has been truncated. show original
When I run compose up, I got the error message is
ERROR StatusConsoleListener Deprecated log4j.xml setting detected <bufferSize=“500”> Using default <bufferSizeBytes=50MB> instead
What is wrong and how can I fixing it? Any idea please let me know.
Thank in advance.
gsmith
(GSmith)
March 19, 2024, 3:07am
2
Hey @qzvt
I’m taking a guess from this error. You Log4j has a Deprecated setting. Might want to take a look in you Log4j configuration file.
I think there is a fix from here.
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=276098#c0
in the package in log4j2.xml.sample and the log4j2.xml, use the line
Memory name=“graylog-internal-logs” bufferSizeBytes=“50MB”/>
instead of
Memory name=“graylog-internal-logs” bufferSize=“500”/>
starting the service with the wrong option (with the delivered sample config) results in “ERROR StatusConsoleListener Deprecated log4j.xml setting detected <bufferSize=“500”> Using default <bufferSizeBytes=50MB> instead”
system
(system)
Closed
April 2, 2024, 3:07am
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.