help request: Loki instance external to cluster returning 404
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- helm, kubernetes
- Lĩnh vực
- devops, infrastructure, observability-sre
Hướng nghiên cứu
Bắt đầu với charts/fluent-operator/templates/fluentbit-output-loki.yaml và so sánh nó với secret fluent-bit-config được tạo từ custom-values.yml đã cung cấp. Kiểm tra cách các cài đặt đầu ra của Loki được kết xuất, đặc biệt là uri, sau đó xác minh cấu hình được tạo với endpoint Loki bên ngoài và xác nhận rằng các lần đẩy log không còn trả về 404.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the issue
Hi,
I am trying to forward logs to a Loki instance outside of the Kubernetes cluster. I get the below 404 error in the fluent-bit container logs.
[error] [output:loki:loki.0] logging-dev.example.com:443, HTTP status=404
404 page not found
A default Loki install returns a 404 at logging-dev.example.com
I have used curl to access the Loki API from the fluent-bit debug container successfully.
I noticed the uri parameter doesn't exist when i export the fluent-bit-config secret and it isn't defined in fluentbit-output-loki.yaml . Could this be part of the issue?
How did you install fluent operator?
helm install -f custom-values.yml fluent-operator --create-namespace -n fluent-operator charts/fluent-operator/
custom-values.yml
containerRuntime: containerd
operator:
initcontainer:
repository: "docker"
tag: "27.2.1"
fluentbit:
crdsEnable: true
enable: true
image:
repository: "ghcr.io/fluent/fluent-operator/fluent-bit"
tag: "3.1.7-debug"
tls:
verify: false
input:
tail:
enable: true
refreshIntervalSeconds: 10
memBufLimit: 100MB
bufferMaxSize: ""
path: "/var/log/containers/*.log"
skipLongLines: true
readFromHead: false
storageType: memory
pauseOnChunksOverlimit: "off"
systemd:
enable: true
systemdFilter:
enable: true
filters: []
path: "/var/log/journal"
includeKubelet: true
stripUnderscores: "off"
storageType: memory
pauseOnChunksOverlimit: "off"
output:
loki:
enable: true
host: logging-dev.example.com
port: 443
uri: /loki/api/v1/push
httpUser: user
httpPassword: pass
Additional context
Output of fluent-bit-config secret:
[Service]
Http_Server true
Parsers_File /fluent-bit/etc/parsers.conf
Parsers_File /fluent-bit/config/parsers_multiline.conf
[Input]
Name systemd
Path /var/log/journal
DB /fluent-bit/tail/systemd.db
DB.Sync Normal
Tag service.*
Systemd_Filter _SYSTEMD_UNIT=containerd.service
Systemd_Filter _SYSTEMD_UNIT=kubelet.service
Strip_Underscores off
storage.type memory
[Input]
Name tail
Path /var/log/containers/*.log
Read_from_Head false
Refresh_Interval 10
Skip_Long_Lines true
DB /fluent-bit/tail/pos.db
DB.Sync Normal
Mem_Buf_Limit 100MB
Parser cri
Tag kube.*
storage.type memory
[Filter]
Name lua
Match kube.*
script /fluent-bit/config/containerd.lua
call containerd
time_as_table true
[Filter]
Name kubernetes
Match kube.*
Kube_URL https://kubernetes.default.svc:443
Kube_CA_File /var/run/secrets/kubernetes.io/serviceaccount/ca.crt
Kube_Token_File /var/run/secrets/kubernetes.io/serviceaccount/token
Labels false
Annotations false
[Filter]
Name nest
Match kube.*
Operation lift
Nested_under kubernetes
Add_prefix kubernetes_
[Filter]
Name modify
Match kube.*
Remove stream
Remove kubernetes_pod_id
Remove kubernetes_host
Remove kubernetes_container_hash
[Filter]
Name nest
Match kube.*
Operation nest
Wildcard kubernetes_*
Nest_under kubernetes
Remove_prefix kubernetes_
[Filter]
Name lua
Match service.*
script /fluent-bit/config/systemd.lua
call add_time
time_as_table true
[Output]
Name loki
Match_Regex (?:kube|service)\.(.*)
host logging-dev.example.com
port 443
http_user user
http_passwd pass
- Ngôn ngữ chính
- Go
- Star
- 689
- Fork
- 333
- Merge trung bình
- 2 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 41
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluent/fluent-operator
-
feat: support storage.total_limit_size for the fluent-bit forward outputCó thể đã có người làm @cvas22 đã nhận 1 ngày trước. Đang mở
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 30/100
fluent/fluent-operator#2126 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug: fluent-bit image still ships vulnerable libbrotli1 (CVE-2026-111497)Có thể đã có người làm @joshuabaird đã nhận 9 ngày trước. Đang mởfluent-bit security
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
fluent/fluent-operator#2082 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
bug: fluent operator is consuming lot of cpu cores (~27 of the 32 available cores on a Node)Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
fluent/fluent-operator#1990 · 6 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement fluent-bit good first issue
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
fluent/fluent-operator#1854 · 2 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Remove tag consideration from Fluentd ClusterFilter / Filter orderCó thể đã có người làm @cvas22 đã nhận 1 ngày trước. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
fluent/fluent-operator#1832 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của fluent/fluent-operator
Issue tương tự
-
area/docs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
meshery/meshery#23375 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ApplicationSet: BitBucket Cloud SCM provider returns corrupted error (%!w(<nil>)) when a branch has no commit hashCó thể đã có người làm @AP24110011695 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
go good first issue help wanted up-for-grabs
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
andrewsiah/agentswarm-data-tasks#308 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 87/100
multica-ai/multica#10511 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
Maintainer thường phản hồi trong vòng 1 ngày