kubernetes-sigs / aws-load-balancer-controller

A Kubernetes controller for Elastic Load Balancers
https://kubernetes-sigs.github.io/aws-load-balancer-controller/
Apache License 2.0
3.93k stars 1.46k forks source link

Time format aws-load-balancer-controller #2193

Closed TraianSandu closed 2 years ago

TraianSandu commented 3 years ago

Hello!

We recently updated from old AWS ALB Ingress controller v1.1.9 to AWS Load Balancer Controller v.2.2.2. The upgrade went fine, but we noticed the time format inside logs changed : New alb-ingress version:

alb-ingress-controller-6449c486fc-hthwl alb-ingress-controller {"level":"info","ts":1628859653.6314578,"logger":"controllers.ingress","msg":"successfully deployed model","ingressGroup":"xxxx"}

Old alb-ingress version:

alb-ingress-controller-7c7b66bc4f-ll867 alb-ingress-controller I0813 12:29:08.517906 1 controller.go:236] kubebuilder/controller "level"=1 "msg"="Successfully Reconciled" "controller"="alb-ingress-controller" "request"={"Namespace":"xxxx","Name":"xxxx"} Is there a way to change the way time is displayed inside ALB logs?

Thank you!

kishorj commented 3 years ago

@TraianSandu, v2 uses new controller runtime and we changed to use structured logging. Do you have any hard dependencies on the old logging format? If it gets consumed by another application, how difficult would it be to migrate to the new format?

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

k8s-triage-robot commented 2 years ago

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

You can:

Please send feedback to sig-contributor-experience at kubernetes/community.

/close

k8s-ci-robot commented 2 years ago

@k8s-triage-robot: Closing this issue.

In response to [this](https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/2193#issuecomment-1019371691): >The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. > >This bot triages issues and PRs according to the following rules: >- After 90d of inactivity, `lifecycle/stale` is applied >- After 30d of inactivity since `lifecycle/stale` was applied, `lifecycle/rotten` is applied >- After 30d of inactivity since `lifecycle/rotten` was applied, the issue is closed > >You can: >- Reopen this issue or PR with `/reopen` >- Mark this issue or PR as fresh with `/remove-lifecycle rotten` >- Offer to help out with [Issue Triage][1] > >Please send feedback to sig-contributor-experience at [kubernetes/community](https://github.com/kubernetes/community). > >/close > >[1]: https://www.kubernetes.dev/docs/guide/issue-triage/ Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.
Prasad1189 commented 3 months ago

/reopen

I get timeformat in epoch standard for alb pod logs, I wanted to have it in ISO 8601 standard

{"level":"info","ts":1719844438.041701,"msg":"version","GitVersion":"v2.4.1","GitCommit":"c4471defda10f8184173192b9f9df4e411ee5dac","BuildDate":"2022-03-16T16:10:01+0000"} {"level":"info","ts":1719844609.6857922,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"}

k8s-ci-robot commented 3 months ago

@Prasad1189: You can't reopen an issue/PR unless you authored it or you are a collaborator.

In response to [this](https://github.com/kubernetes-sigs/aws-load-balancer-controller/issues/2193#issuecomment-2200356165): >/reopen > >I get timeformat in epoch standard for alb pod logs, I wanted to have it in ISO 8601 standard > >{"level":"info","ts":1719844438.041701,"msg":"version","GitVersion":"v2.4.1","GitCommit":"c4471defda10f8184173192b9f9df4e411ee5dac","BuildDate":"2022-03-16T16:10:01+0000"} >{"level":"info","ts":1719844609.6857922,"logger":"controller-runtime.manager","msg":"starting metrics server","path":"/metrics"} Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.