#support

Resolving Log Errors on OpenShift 4.10 Deployment

TLDR lior was experiencing log errors on OpenShift 4.10, Prashant suggested updating the log path and provided potential directories, follow-up is expected.

Powered by Struct AI

1

Jun 25, 2023 (5 months ago)
lior
Photo of md5-626989119b4514e065ffac057e8e0768
lior
09:02 AM
Hi,
deployed signoz on openshift 4.10 with the kubernetes helm chart,
can't seem to get logs, getting errors on the otel agent:
2023-06-25T08:54:32.640Z warn fileconsumer/file.go:63 no files match the configured include patterns {"kind": "receiver", "name": "filelog/k8s", "data_type": "logs", "component": "fileconsumer", "include": ["/var/log/pods//*/.log", "/var/log/pods//.log"], "exclude": []}
Jun 27, 2023 (5 months ago)
vishal-signoz
Photo of md5-f936d3e5743d23344d6c60813189716f
vishal-signoz
03:22 AM
Maybe Prashant can help here?
lior
Photo of md5-626989119b4514e065ffac057e8e0768
lior
08:08 AM
anybody?
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
08:57 AM
You will need to update /var/log/pods/**/**.log with the relevant log path.
lior
Photo of md5-626989119b4514e065ffac057e8e0768
lior
09:25 AM
what is the relevant log path?
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
10:52 AM
Here are some common paths for logs:
/var/log/pods
/var/log/containers
10:52
Prashant
10:52 AM
lior which container runtime is being used?
lior
Photo of md5-626989119b4514e065ffac057e8e0768
lior
10:56 AM
Openshift 4.10 uses crio
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
11:25 AM
> log_dir="/var/log/crio/pods" The default log directory where all logs will go unless directly specified by the kubelet. The log directory specified must be an absolute directory.
Ref: https://github.com/cri-o/cri-o/blob/main/docs/crio.conf.5.md#crio-table
Jun 28, 2023 (5 months ago)
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
04:32 PM
lior Do let us know if it helps.
lior
Photo of md5-626989119b4514e065ffac057e8e0768
lior
04:33 PM
I'll hopefully return to it in a day or two, thanks for checking up.

1

SigNoz Community

Built with ClickHouse as datastore, SigNoz is an open-source APM to help you find issues in your deployed applications & solve them quickly | Knowledge Base powered by Struct.AI

Indexed 1023 threads (61% resolved)

Join Our Community