News for hackers. Stuff that matters.
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @01:28PM (#13877957)
Hi everyone, I'm a co-founder / CTO of LogDNA. We were in Y Combinator's W15 batch and launched our cloud logging platform last year (https://news.ycombinator.com/item?id=11074537)

Based on user feedback, we're happy to announce our super easy Kubernetes integration. No more wrestling with fluentd configs, fiddling with Elasticsearch knobs or following 30-step guides cutting and pasting other people's configs.

  kubectl create secret generic logdna-agent-key --from-literal=logdna-agent-key=<YOUR LOGDNA API KEY>
  kubectl create -f https://raw.githubusercontent.com/logdna/logdna-agent/master/logdna-agent-ds.yaml
We're looking for some feedback on how we can improve this integration. We currently extract Kubernetes metadata: pod name, container name, container id, namespace.

Feel free to try it out. Happy to answer any questions!

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by weitzj on Wednesday March 15, 2017 @03:58PM (#13879249)
Also interesting:

I have used the docker integration of logdna beforehand, before moving to Kubernetes.

The integration was done using docker compose per docker compose environment.

The logs which contained `err` were marked red as errors in logdna and I could trigger an alarm.

The same containers in Kubernetes with the same logs seem to marked as `info` now. I am not sure, why this is and how I can get the same behavior as before. Is there a way to tell Kubernetes about stderr/stdout? Or how would I trigger logdna to treat a log as error instead of info?

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @04:30PM (#13879488)
Hmmm this may have been a bug. It should show stderr as err. Let me look into this.
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by weitzj on Wednesday March 15, 2017 @02:02PM (#13878293)
It would be nice to improve the documentation a bit, and mention that only one agent is needed per node and that this agent will collect the logs across namespaces.

As I have understood,you do not set any namespace for the secret/daemonset, which is fine with me.

But this way, I could install multiple agents (for each namespace).

So a better documentation about the best practice installation for multiple namespaces would be nice.

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @02:15PM (#13878403)
Ahh yes, thanks for catching that. I just made a note that we collect from all namespaces currently.

Yeah, we now set our agent up w/o namespaces. During our beta, we originally had it set up inside `kube-system` but 2 of our testers mentioned that the pod wouldn't install unless it was in `default`. So we moved it out of `kube-system` but we still weren't sure what caused the issue since it worked fine on our cluster. We were using Kubernetes v1.4 so it could've been an older version issue.

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by lobster_johnson on Wednesday March 15, 2017 @02:45PM (#13878643)
Actually, kube-system is the right namespace for things like this.

I don't know why it didn't work -- maybe they put the secret in the wrong namespace?

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @02:52PM (#13878698)
Yeah one of those mysteries of life. :/ One day we'll probably go back and try this on a few older versions to see if we can repro what happened. But yeah, it was right off the bat when we started our beta, 2 different people said they had to modify the yaml in order to get it to work (something we wanted to avoid altogether).
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by od0 on Wednesday March 15, 2017 @02:07PM (#13878341)
Great work with this - definitely a pain point. Getting set up and trying it out now.
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @02:21PM (#13878455)
Awesome! We're pretty responsive on Intercom as well if you run into issues post install. But definitely share your feedback if you notice areas that can be improved.
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by HorizonXP on Wednesday March 15, 2017 @01:50PM (#13878193)
Thanks for putting this out there Lee! This is huge!

How do you guys handle multi-line log entries? This is the hardest part with existing setups, and would really help us trace exceptions as they occur in real-time.

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @01:56PM (#13878235)
We currently treat each line separately and we can maintain line ordering okay.

We have thought about this before and doing something like: if a line starts with tab or a fixed number of spaces a few times in a row, treat it as 1 line with \n's and store it as such. It would help with alerting and filtering alerts. Just not 100% sure if this will screw up anything.

Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by gkop on Wednesday March 15, 2017 @08:39PM (#13881327)
I love that you appear to have been built from the ground up to be HIPAA-compliant. I have emailed your sales team :)
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by allanshin on Wednesday March 15, 2017 @01:42PM (#13878108)
kubernetes integration FTW! Thank you, thank you!!
Re:Show HN: LogDNA – Set up Kubernetes logging with 2 kubect... by leeab on Wednesday March 15, 2017 @01:57PM (#13878250)
:) Hope you'll give us a shot. And let us know what you think!