fluent / fluent/fluent-operator

bug: 无法应用Decoders Parser

Open
#1,182 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
682
Forks
328
Avg merge
2d 23h
Merged PRs (30d)
13

Description

### Describe the issue

1、查看Parser 描述文件写法:
# kubectl -n kubesphere-logging-system explain parser --recursive
KIND: Parser
VERSION: logging.kubesphere.io/v1alpha2

DESCRIPTION:
Parser is the Schema for the parsers API

FIELDS:
apiVersion
kind
metadata
annotations
clusterName
creationTimestamp
deletionGracePeriodSeconds
deletionTimestamp
finalizers <[]string>
generateName
generation
labels
managedFields <[]Object>
apiVersion
fieldsType
fieldsV1
manager
operation
subresource
time
name
namespace
ownerReferences <[]Object>
apiVersion
blockOwnerDeletion
controller
kind
name
uid
resourceVersion
selfLink
uid
spec
decoders <[]Object>
decodeField
decodeFieldAs
json
timeFormat
timeKeep
timeKey
logfmt
ltsv
timeFormat
timeKeep
timeKey
types
regex
regex
timeFormat
timeKeep
timeKey
types
2、对照Fluentbit官网文档编辑Decoder Parser
https://docs.fluentbit.io/manual/v/1.9-pre/pipeline/parsers/decoders

apiVersion: logging.kubesphere.io/v1alpha2
kind: Parser
metadata:
labels:
logging.kubesphere.io/enabled: 'true'
name: unicode
namespace: kubesphere-logging-system
spec:
decoders:
- decodeFieldAs: "escaped_utf8 log"

Parser配置无法应用到Fluentbit中

### To Reproduce

apiVersion: logging.kubesphere.io/v1alpha2
kind: Parser
metadata:
labels:
logging.kubesphere.io/enabled: 'true'
name: unicode
namespace: kubesphere-logging-system
spec:
decoders:
- decodeFieldAs: "escaped_utf8 log"

### Expected behavior

Parser配置生效,可以应用到Fluentbit中

### Your Environment

```markdown
- Fluent Operator version: v0.14.0
- Container Runtime: 24.0.5
- Operating system: Ubuntu 22.04 LTS
- Kernel version: 5.15.0-25-generic
```

### How did you install fluent operator?

_No response_

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.