Comments (2)
Figured it out!
This issue helped me solve it: #1092
Not entirely sure, but maybe the documentation needs to be clarified?
[PARSER]
Name kube-tag
Format regex
Regex ^(?<namespace_name>[^_]+)\.(?<pod_name>[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)\.(?<container_name>.+)
[INPUT]
Name tail
Tag kube.<namespace_name>.<pod_name>.<container_name>
Path /var/log/containers/*.log
Tag_Regex (?<pod_name>[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*)_(?<namespace_name>[^_]+)_(?<container_name>.+)-[a-z0-9]{64}\.log$
Parser cri
DB /var/log/containers/fluentbit_kube.db
Mem_Buf_Limit 10MB
Skip_Long_Lines Off
Refresh_Interval 10
[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
Kube_Tag_Prefix kube.
Regex_Parser kube-tag
Merge_Log On
Merge_Log_Trim On
Keep_Log Off
K8S-Logging.Parser On
K8S-Logging.Exclude Off
Annotations Off
Labels On
[OUTPUT]
name stdout
match kube.ns1.*
Format json
from fluent-bit.
Please submit a PR to update the docs if you can, it's a good way to easily contribute to OSS: https://github.com/fluent/fluent-bit-docs/blob/master/pipeline/inputs/tail.md
from fluent-bit.
Related Issues (20)
- 3.0.5: output:splunk: Error http_status=401 Token is required HOT 8
- Prometheus metrics "fluentbit_output_upstream_busy_connections" shows negative value during connection timed out HOT 3
- `Logstash_Prefix_Key` not working (any more?) in Fluent Bit 3.x
- Support for linux on IBM Power platform (ppc64le) HOT 3
- Fluentbit multiline parsing is not working as intended HOT 3
- Unable to STS assume Role in fluentbit/S3 plugin HOT 2
- Store the logs in log-storage & GCS storage through fluentbit HOT 1
- Could the `Elasticsearch OUTPUT` Index configuration support dynamic index name (use record accessor) ? HOT 5
- Release 2.2.3 link is broken https://fluentbit.io/announcements/v2.2.3/ HOT 2
- HTTP requests should have an `User-Agent` header HOT 1
- Fluentbit AWS S3 output replaces %2F as Date
- Tracing documentation samples fail for the latest fluent bit release HOT 2
- Add remove_keys_except parameter to Loki output
- hash_value_field support (from fluentd) for fluent-bit's filter_parsers
- Properly formated User-Agent should be sent in all HTTP Requests HOT 1
- The parsed timestamp does not send into loki
- Finding a way to supress or redirect fluent-bit startup log HOT 2
- in_node_exporter_metrics: add mdadm collector
- Bulk size in output es module
- Datadog output setup proxy with user:password HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluent-bit.