Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

How to add custom fields? #1097

Unanswered
shay-legit asked this question in Q&A
Discussion options

Hi there

Sorry if this is a level-100 thing but I don't see any docs for it - my bad if I missed it.

I am looking to add custom field to our logs before they are shipped.

Specifically these (this is from the raw config of non-operator fluentbit):

[FILTER]
 Name modify
 Match *
 Add applicationName ${Application_Name}
 Add subsystemName ${SubSystem_Name}
 Add computerName ${HOSTNAME}

Current ClusterFilter:

apiVersion: fluentbit.fluent.io/v1alpha2
kind: ClusterFilter
metadata:
 name: custom-filter
 labels:
 fluentbit.fluent.io/enabled: "true"
 fluentbit.fluent.io/mode: "k8s"
spec:
 match: "*"
 filters:
 - nest:
 operation: nest
 wildcard:
 - "*"
 nestUnder: text
 - <add field here?>

Any example or suggestions?

Thank you

You must be logged in to vote

Replies: 2 comments

Comment options

@wanjunlei @wenchajun Do we support this?

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /