GithubHelp home page GithubHelp logo

kube-logging / kube-logging.github.io Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 53.0 234.25 MB

Logging operator documentation

Home Page: https://kube-logging.dev/

License: Apache License 2.0

HTML 64.11% SCSS 3.72% JavaScript 32.17%

kube-logging.github.io's People

Contributors

ahma avatar asdwsda avatar baluchicken avatar dcasado avatar dependabot[bot] avatar digiserg avatar fekete-robert avatar gamba47 avatar jgrexa avatar kjir avatar kouk avatar kristofgyuracz avatar lukasbar avatar maxgio92 avatar maxisam avatar mweibel avatar ostavnaas avatar overorion avatar papanito avatar pehlert avatar pepov avatar pregnor avatar sagikazarmark avatar siliconbrain avatar smlx avatar tarokkk avatar velothump avatar walker-tom avatar worr avatar zrobisho avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kube-logging.github.io's Issues

bug: Tail logfiles with a webhook has inconsistent pod names / wrong snippets

https://kube-logging.dev/4.2/docs/configuration/extensions/tailer-webhook/

The following things should be fixed:

  • File tailer example has a second container which is not needed, the snippet's indentation is not right either
  • kubectl get pod test-pod -o json | jq '.spec.containers | map(.name)' output should be the actual output
  • kubectl logs test-pod test; echo $? should use the actual name and it's output should have a few more lines
  • Using the annotation for the caBundle injection as mentioned above it:

For example: you can inject the CA with a simple cert-manager cert-manager.io/inject-ca-from: logging/webhook-tls annotation on the mutatingwebhookconfiguration resource.

Like this:

---
apiVersion: admissionregistration.k8s.io/v1
kind: MutatingWebhookConfiguration
metadata:
  name: sample-webhook-cfg
  namespace: logging
  labels:
    app: sample-webhook
  annotations:
    cert-manager.io/inject-ca-from: logging/webhook-tls
webhooks:
  - name: sample-webhook.banzaicloud.com
    clientConfig:
      service:
        name: logging-webhooks
        namespace: logging
        path: "/tailer-webhook"
    rules:
      - operations: [ "CREATE" ]
        apiGroups: [""]
        apiVersions: ["v1"]
        resources: ["pods"]
        scope: "*"
    failurePolicy: Ignore
    sideEffects: None
    admissionReviewVersions: [v1]
  • We should also expand it with a section that describes using the cert-manager to issue a simple certificate.

Incorrect example configuration for Amazon Elasticsearch output

Describe the bug
The example configuration for the Amazon Elatsearch output is incorrect. It appears that it was copied from the Amazon Kinesis Stream documentation.

Steps to reproduce the issue:
Read example output configuration for Amazon Elasticsearch output plugin:
https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/aws_elasticsearch/#example-output-configurations

Expected behavior
Example configuration should be for Amazon Elaticsearch, not Amazon Kinesis Stream.

Screenshots
image

syslog-ng clusteroutput TLS not working

cluster output manifest

apiVersion: logging.banzaicloud.io/v1beta1
kind: SyslogNGClusterOutput
metadata:
 name: loki-output
 namespace: logging
spec:
  loki:
    url: https://devops249.ef.com/loki/api/v1/push
    labels:
      "app_kubernetes_io_name": "${json#kubernetes#labels#app.kubernetes.io/name}"
      "app_kubernetes_io_instance": "${json#kubernetes#labels#app.kubernetes.io/instance}"
      "app_kubernetes_io_component": "${json#kubernetes#labels#app.kubernetes.io/component}"
      "namespace_name": ${json#kubernetes#namespace_name}
      "pod_name": ${json#kubernetes#pod_name}
    timestamp: "msg"
    template: "$ISODATE $HOST $MSGHDR$MSG"
    auth:
      insecure: {}
      tls:
         peer_verify: false

get the pods

root@devops248:/tmp# k -n logging get pods
NAME                                               READY   STATUS      RESTARTS   AGE
logging-operator-ff99697f7-2hj7h                   1/1     Running     0          26h
logging-operator-ff99697f7-htpx5                   1/1     Running     0          26h
logging-operator-ff99697f7-rm5w6                   1/1     Running     0          26h
logging-operator-ff99697f7-wbnxl                   1/1     Running     0          26h
logging-operator-ff99697f7-xwjsn                   1/1     Running     0          26h
syslog-ng-logging-fluentbit-pk45j                  1/1     Running     0          3h26m
syslog-ng-logging-syslog-ng-0                      2/2     Running     0          3h26m
syslog-ng-logging-syslog-ng-configcheck-b947403f   0/1     Error       0          5s
syslog-ng-logging-syslog-ng-configcheck-f0aad5ab   0/1     Completed   0          2m1s

logs for the config pod

root@devops248:/tmp# k -n logging logs -f syslog-ng-logging-syslog-ng-configcheck-b947403f
Setting current version as config version; version='4.5'
Error parsing within destination, syntax error, unexpected KW_TLS, expecting ')' in /etc/syslog-ng/config/syslog-ng.conf:18:26-18:29:
13              };
14          };
15      };
16
17      destination "clusteroutput_logging_loki-output" {
18---->     loki(auth(insecure() tls(peer_verify(no))) labels(
18---->                          ^^^
19              "app_kubernetes_io_component" => "${json#kubernetes#labels#app.kubernetes.io/component}"
20              "app_kubernetes_io_instance" => "${json#kubernetes#labels#app.kubernetes.io/instance}"
21              "app_kubernetes_io_name" => "${json#kubernetes#labels#app.kubernetes.io/name}"
22              "namespace_name" => "${json#kubernetes#namespace_name}"
23              "pod_name" => "${json#kubernetes#pod_name}"

however the CRDS say this is an object under the loki's
link to CRD object

Enhance K8s Metadata link and enriching logs and metrics with namespace labels

enhance k8s metada link goes to repo that does not exist, is there a repo I can view to understand and configure the plugin better?
https://github.com/SumoLogic/sumologic-kubernetes-collection/tree/main/fluent-plugin-enhance-k8s-metadata

my use case is to append namespace labels pod logs collected by the logging operator at /var/log/containers
is there a method this can be accomplished now?
Here are some of the previous issues on this topic that i've viewed, doesnt seem like this feature has been added, would appreciate any help on configuring enhance k8s metadata or otherwise!
kube-logging/logging-operator#1148
kube-logging/logging-operator#704

OpenSearch ClusterOutput config docs contain apparently outdated reference to ssl_version option

The YAML example at the top of this page https://banzaicloud.com/docs/one-eye/logging-operator/configuration/plugins/outputs/opensearch/ shows a ssl_version option being configured. However, when a ClusterOutput is created as YAML using that option, the change is not saved.

Weirdly, there seems to be a description of the ssl_version option next to an unrelated option, remove_keys_on_update:

If you want to configure SSL/TLS version, you can specify ssl_version parameter. [SSLv23, TLSv1, TLSv1_1, TLSv1_2] Remove keys on update will not update the configured keys in OpenSearch when a record is being updated. This setting only has any effect if the write operation is update or upsert.

I'm guessing what happened is that the version option was removed and the docs have yet to reflect this.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.