From 3d9421fc3aeb231a598545f279b87b70175d8de8 Mon Sep 17 00:00:00 2001 From: Matthias Oesterheld <33032967+moesterheld@users.noreply.github.com> Date: Fri, 20 Oct 2023 08:36:08 +0200 Subject: [PATCH] change loggers for indexer subsystem (#17012) * change loggers for indexer subsystem fixes #17011 * changelog * use `graylog2` package (cherry picked from commit 42aaebf2d0ef4b9d9b113f31615acad8fc118e17) --- changelog/unreleased/pr-17012.toml | 5 +++++ .../graylog2/rest/resources/system/logs/LoggersResource.java | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 changelog/unreleased/pr-17012.toml diff --git a/changelog/unreleased/pr-17012.toml b/changelog/unreleased/pr-17012.toml new file mode 100644 index 000000000000..38505b1a8dfd --- /dev/null +++ b/changelog/unreleased/pr-17012.toml @@ -0,0 +1,5 @@ +type = "f" +message = "Change loggers in indexer subsystem to output all messages related to indexing/searching." + +issues = ["17011"] +pulls = ["17012"] diff --git a/graylog2-server/src/main/java/org/graylog2/rest/resources/system/logs/LoggersResource.java b/graylog2-server/src/main/java/org/graylog2/rest/resources/system/logs/LoggersResource.java index e6c874b7a061..8d94ef60a3b5 100644 --- a/graylog2-server/src/main/java/org/graylog2/rest/resources/system/logs/LoggersResource.java +++ b/graylog2-server/src/main/java/org/graylog2/rest/resources/system/logs/LoggersResource.java @@ -81,7 +81,10 @@ public class LoggersResource extends RestResource { private static final Map SUBSYSTEMS = ImmutableMap.of( "graylog", new Subsystem("Graylog", ImmutableList.of("org.graylog2", "org.graylog"), "All messages from Graylog-owned systems."), - "indexer", new Subsystem("Indexer", "org.elasticsearch", "All messages related to indexing and searching."), + "indexer", new Subsystem("Indexer", + ImmutableList.of("org.graylog2.storage", "org.graylog2.indexer", + "org.graylog.shaded.elasticsearch7.org.elasticsearch", "org.graylog.shaded.opensearch2.org.opensearch"), + "All messages related to indexing and searching."), "authentication", new Subsystem("Authentication", "org.apache.shiro", "All user authentication messages."), "sockets", new Subsystem("Sockets", "netty", "All messages related to socket communication."));