graylog2-server icon indicating copy to clipboard operation
graylog2-server copied to clipboard

Expose Logs of OpenSearch

Open moesterheld opened this issue 2 years ago • 2 comments

Make the logs of the data node's OpenSearch available in the UI. This should also include the logs for remote reindexing in the migration wizard.

moesterheld avatar Dec 18 '23 14:12 moesterheld

Currently the datanode provides https://localhost:8999/logs/stdout and https://localhost:8999/logs/stderr by default. See https://github.com/Graylog2/graylog2-server/blob/master/data-node/src/main/java/org/graylog/datanode/rest/LogsController.java. We just need a proxy or access to the datanode REST from the graylog server to display these.

todvora avatar Dec 21 '23 09:12 todvora

Both stdout and stderr now available through the datanode proxy:

http://localhost:9000/api/datanodes/rest/logs/stdout http://localhost:9000/api/datanodes/rest/logs/stderr

todvora avatar Feb 13 '24 11:02 todvora