This message was deleted.
# logging
a
This message was deleted.
l
hey! a simple solution could be to use something like we (logging operator maintainers, the project behind rancher logging) use to test the operator: https://github.com/kube-logging/logging-operator/blob/master/hack/values.yaml
here we use a simple http output and a fluentbit deployment, that is excluded from log collection
p
I think i'm too newbie to understand how to use those... fluentbit will be the GUI ?
h
If you do not want GUI for log viewing and searching then you can send logs to rsyslog (if you have that service running somewhere at your organization). then you can install logging (from Apps) in your rancher cluster setup ClusterOutput like this
next if you want to send ALL of your cluster logs then create ClusterFlows and for outputs tab select your syslog clusteroutput you create in previous step if you only want to send logs from specific namespace then you can select that namespace otherwise it will send all of the cluster logs to the syslog server
l
@powerful-librarian-10572 for a minute I thought you don't need a GUI at all, just a single stream of all the required logs
p
@late-air-9846 yes sorry, i said i wouldve like something similar to the pod log of rancher ๐Ÿ˜… Basic search and scrollable
@hundreds-evening-84071 i don't have a rsyslog currently, but if that would work as a hack to use afterwards the rancher gui that would be fine
h
my team likes the rsyslog because that makes it easy to view "all" the logs in single place and also satisfies the need to send log "somewhere else" than just being on the cluster
๐Ÿ’š 1
p
I understand...
In the meantime i am failing to understanding anything about ECK ๐Ÿ˜จ
l
have you thought about loki?
โž• 1
p
Nope, i am deeply unfamiliar with any logging provider beyond rsyslog (and grep)๐Ÿซ  Is Grafana Loki simpler and easier?
l
I beleive it is simpler from a user point of view, yes. Operationally I'm not sure, but at least I would give it a try
p
Got it, it can't be harder anyway ๐Ÿ˜„ Thanks
h
Loki VERY simple to deploy - way light weight (compared to ES and such)
p
https://grafana.com/docs/loki/latest/setup/install/helm/install-scalable/?pg=oss-loki&plcmt=resources is this a good way to install loki into rancher? Or is there a simpler way? The fatc that i have to setup by yaml the storage is weird to me - as eck got itself a pvc from longhorn without any setup
h
yep - simple helm install
p
I am failing very hard then ๐Ÿซ  I tried to follow this https://ranchergovernment.com/blog/enhancing-your-rancher-monitoring-experience-with-grafana-loki - but trying to add the loki datasource yields
logger=tsdb.loki endpoint=checkHealth pluginId=loki dsName=loki dsUID=c35900f1-5875-49a6-b85e-fdc1fb44f809 uname=admin fromAlert=false t=2024-10-14T13:08:30.86360166Z level=error msg="Error querying loki" error="Get \"http:/loki-stack-2-1728910523.loki-namespace:3100/loki/api/v1/query?direction=backward&query=vector%281%29%2Bvector%281%29&time=4000000000\": http: no Host in request URL"