You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where is the log file location in the integration pod?
Generally, containers write to stdout or stderr. That is the case for integration Pods, that rely on the Quarkus console log handler by default.
Then it depends on the container runtime that's setup for your cluster. With CRI-O, the log files are written in the /var/log/pods directory of the host node by default. It's /var/lib/docker/containers for the Docker container runtime. You can access this directory by accessing the node where the Pod is schedule, but it's also possible to mount the directory into a Pod.
How can I specify log file location If I want to log certain lines into a separated log file?
I have asked a question on StackOverflow(https://stackoverflow.com/questions/70042082/where-is-the-logs-in-camel-k-integration-pod) about camel k logging and paste it here for getting help:
I have an integration pod running with kamel:
I have log in the route
I am able to check the log lines with command:
Then I am able to access to the pod using:
I tried to check folder
/var/log
, unfortunately there's no related log files.I have 2 questions on this:
Thanks
The text was updated successfully, but these errors were encountered: