logdna / logdna-agent

LogDNA Agent streams from log files to your LogDNA account. Works with Linux, Windows, and macOS Servers
https://logdna.com
MIT License
138 stars 55 forks source link

No logs from IBM K8s 1.17 free cluster #163

Closed devopsguytm closed 4 years ago

devopsguytm commented 4 years ago

I'm trying to set up a standard free IBM Log Analysis with LogDNA-ln from an IBM K8s 1.17 free cluster.

I used commands :

kubectl create secret generic logdna-agent-key --from-literal=logdna-agent-key=<KEY>-n env-dev
kubectl create -f https://assets.us-east.logging.cloud.ibm.com/clients/logdna-agent-ds.yaml -n env-dev

In pod logs I see :

Vlads-MacBook-Pro:~ vladsancira$ kubectl logs logdna-agent-ggh6t -n env-dev -f
2020-04-02 10:37:08 0000 [info] logdna-agent/1.6.2 started on kube-bpvssh6d0eqenoninv0g-k8s168free-default-00000055.iks.ibm (172.30.80.229)
2020-04-02 10:37:08 0000 [error] error connecting to /var/run/docker.sock: Error: connect ECONNREFUSED /var/run/docker.sock
2020-04-02 10:37:08 0000 [info] streaming /var/log: 120 file(s)
2020-04-02 10:37:19 0000 [warn] log rotated: /var/log/containers/logdna-agent-4mrwc_env-dev_logdna-agent-ae7537ccf0ca14c11b3e2013ec75132263a1c9108d516b35c6f13bad96d0d2c4.log by rename
2020-04-02 10:39:20 0000 [info] sent 72 lines queued from earlier disconnection

But on LogDNA Dashboard I see nothing....except an error :

Encountered an error while trying to fetch timeline details from the server.

matt-march commented 4 years ago

Hi @vladsancira, thanks for trying out LogDNA!

At first glance that sounds like an issue with the web UI rather than the agent specifically. Are you still seeing the same error on the dashboard?

Alternately, it could be an auth-related issue as the [error] line sounds similar to this other issue: Auth error: Error: connect ECONNREFUSED #74.

devopsguytm commented 4 years ago

I recreated the service and redeployed the agent :) Now it works