Skip to content

Consistent storage for messages logs regardless of tracing enabled or not  #677

Open
@leochr

Description

@leochr

The location of the messages.log changes depending on whether Day-2 operation trace is enabled or not. By default it's written to /logs, but it changes to /serviceability/<namespace>/<pod_name> when trace operation is enabled. It's not possible to configure Liberty server to use one location for messages.log and another location for trace files. It's all controlled by logDirectory value in server.xml.

Use the same location to store messages.log. One suggestion is to symlink the default location /logs to the serviceability location at container startup via the Liberty Operator (if serviceability is enabled)

Additional discussion in this internal thread: https://ibm-cloud.slack.com/archives/C020VHDP0M8/p1738179825766089

Activity

self-assigned this
on Feb 13, 2025
kabicin

kabicin commented on Mar 26, 2025

@kabicin
Member

There are some container changes required to get this to work making /logs link to the serviceability directory at runtime. On operator side, the SERVICEABILITY_NAMESPACE environment variable can be set which will enable the soft link at runtime for the container.

Container changes

Operator changes

Test changes

changed the title [-]Use the same location for messages.log regardless of tracing enabled or not[/-] [+]Consistent storage for messages logs regardless of tracing enabled or not [/+] on Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @leochr@kabicin

      Issue actions

        Consistent storage for messages logs regardless of tracing enabled or not · Issue #677 · OpenLiberty/open-liberty-operator