Giter Site home page Giter Site logo

Comments (3)

air3ijai avatar air3ijai commented on June 10, 2024

Works fine on Kubernetes 1.29.1

Client Version: v1.29.1
Kustomize Version: v5.0.4-0.20230601165947-6ce0bf390ce3
Server Version: v1.29.1
[2024/03/25 12:01:03] [ info] [input:kubernetes_events:kubernetes_events.0] API server: https://kubernetes.default.svc:443
[2024/03/25 12:01:03] [ info] [input:kubernetes_events:kubernetes_events.0] thread instance initialized
[2024/03/25 12:01:03] [ info] [filter:kubernetes:kubernetes.0] https=1 host=kubernetes.default.svc port=443
[2024/03/25 12:01:03] [ info] [filter:kubernetes:kubernetes.0]  token updated
[2024/03/25 12:01:03] [ info] [filter:kubernetes:kubernetes.0] local POD info OK
[2024/03/25 12:01:03] [ info] [filter:kubernetes:kubernetes.0] testing connectivity with API server...
[2024/03/25 12:01:03] [ info] [filter:kubernetes:kubernetes.0] connectivity OK
[2024/03/25 12:01:03] [ info] [output:es:es.0] worker #0 started
[2024/03/25 12:01:03] [ info] [output:es:es.0] worker #1 started
[2024/03/25 12:01:03] [ info] [http_server] listen iface=0.0.0.0 tcp_port=2020
[2024/03/25 12:01:03] [ info] [sp] stream processor started
details

fluent-bit.tf

# Fluent Bit
resource "helm_release" "fluent-bit" {
  name       = "fluent-bit"
  repository = "https://fluent.github.io/helm-charts"
  chart      = "fluent-bit"
  version    = "0.44.0"
  namespace  = logs
  timeout    = 300
  values     = [file("${path.module}/values/fluent-bit.yaml")]
}

fluent-bit.yaml

# Chart - https://github.com/fluent/helm-charts/tree/main/charts/fluent-bit

# Main
kind: Deployment
replicaCount: 1

image:
  repository: cr.fluentbit.io/fluent/fluent-bit
  tag: 3.0.0-debug

testFramework:
  enabled: false

# Permissions
rbac:
  create: true
  nodeAccess: true
  eventsAccess: true

# Configuration
config:
  service: |
    [SERVICE]
        flush         1
        daemon        Off
        LogLevel      info
        Config_Watch  On
        Parsers_File  parsers.conf
        HTTP_Server   On
        HTTP_Listen   0.0.0.0
        HTTP_Port     2020

  inputs: |
    [INPUT]
        Name      kubernetes_events
        Tag       kube_events
        Kube_url  https://kubernetes.default.svc

  outputs: |
    [OUTPUT]
        Name                es
        Match               kube_events
        Host                elastic
        Port                9200
        Compress            gzip
        Type                _doc
        Suppress_Type_Name  On
        Logstash_Format     On
        Logstash_Prefix     kube-events
        tls                 On
        tls.verify          Off

    [OUTPUT]
        name    stdout
        match   kube_events
        Format  json

Can it be related to your setup?

from fluent-bit.

patrick-stephens avatar patrick-stephens commented on June 10, 2024

I do not see any debug level logs in your original output either @ashishkumar256 which I'd expect with the log level set that way.

How are you deploying all this? The OSS helm chart?
What's the full pod spec and make sure the cluster role is being properly configured for the SA?
Are you sure you have the right TLS and K8S API server address? Can you confirm it works with the -debug image?

from fluent-bit.

ashishkumar256 avatar ashishkumar256 commented on June 10, 2024

Thanks @patrick-stephens, above shared configurations seems to be working. I was using my own written helm charts that were having all required configurations & permissions. I'll compare it, get it fixed.

from fluent-bit.

Related Issues (20)

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.