Report this

What is the reason for this report?

DO - Kubernetes send POD Logs to Elasticsearch

Posted on March 14, 2019

Hi,

Is there a way to Send POD Logs to Elasticsearch in Digitaloceans Kubernetes?

According to the Docs of Kubernetes this is feasible. https://kubernetes.io/docs/tasks/debug-application-cluster/logging-elasticsearch-kibana/

But it has to be done during setup.

KUBE_LOGGING_DESTINATION=elasticsearch

Are there Alternatives to this?

Kind regards Gradlon



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

That doesn’t actually address what he was asking for. That just stands up an ELK stack in Kubernetes. What he wants (and what I would also like, which is why I’m here) is for the Kubernetes logging to go to ElasticSearch instead of the default logging mechanism (whatever that is at DO that is similar to google’s StackDriver Logging).

Is this possible?

Greetings!

I asked on of our resident geniuses, John, for some advice here. I’m relaying what he gave me in my own words.

While you would currently be unable to do it that way with our hosted Kubernetes, this does work as a solution:

https://github.com/helm/charts/tree/master/stable/elastic-stack

Jarland

Hi there,

Quick update here in addition to what has already been mentioned, you can now forward cluster event logs from your DOKS cluster to a DigitalOcean Managed OpenSearch cluster:

https://docs.digitalocean.com/products/kubernetes/how-to/forward-logs/

- Bobby

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.