Comments (5)
re: this, another logging service, Loggly, offers an export of our logs to S3. This would solve our issue above nicely as our logs can go from VM => New Relic => Long-term storage (Healthcare, and FinTech companies require long-term log storage) in S3 / Azure Blob Storage / MinIO etc.
from helm-charts.
We are using containerd as a runtime, which uses the CRI-O log format by default. Fluent Bit has a CRIO parser, but there's no way to configure it via the Helm Chart.
The simplest solution would be to allow to provide an existingConfigMap
to at least prevent replacing any custom config each time the chart is upgraded.
from helm-charts.
Following up, at some point at least support for CRI-O logging format was added for anyone else in this situation. Just add to your values.yaml:
fluentBit:
criEnabled: true
To switch the default parser
from docker
to cri
which is defined already in the config.
If you are using the nri-bundle, remember it's under the newrelic-logging sub-chart key:
newrelic-logging:
fluentBit:
criEnabled: true
It might still be nice to be able to provide just a custom ConfigMap for included files, but at least this addresses my direct issue and maybe others.
from helm-charts.
I'd also like to be able to set an extra output for long term storage such as S3, allowing to use an existingConfigMap
as mentioned by @longwa or something along the lines of #224 should work.
from helm-charts.
Hi folks,
It is currently possible to add extra inputs, filters or outputs, as now the full Fluent Bit configuration is editable via values.yml: https://github.com/newrelic/helm-charts/blob/master/charts/newrelic-logging/values.yaml#L49-L137
So, you could just use the following for your use cases:
fluentBit:
config:
filters: |
[FILTER]
Name kubernetes
Match kube.*
# We need the full DNS suffix as Windows only supports resolving names with this suffix
# See: https://kubernetes.io/docs/setup/production-environment/windows/intro-windows-in-kubernetes/#dns-limitations
Kube_URL https://kubernetes.default.svc.cluster.local:443
Buffer_Size ${K8S_BUFFER_SIZE}
K8S-Logging.Exclude ${K8S_LOGGING_EXCLUDE}
[FILTER]
Name record_modifier
Match *
Record cluster_name ${CLUSTER_NAME}
[FILTER]
[... your extra filter definition here...]
outputs: |
[OUTPUT]
Name newrelic
Match *
licenseKey ${LICENSE_KEY}
endpoint ${ENDPOINT}
lowDataMode ${LOW_DATA_MODE}
Retry_Limit ${RETRY_LIMIT}
[OUTPUT]
[...your extra OUTPUT definition here...]
Bear in mind that you currently need to include the existing inputs/filters/outputs as well as you own. When we merge this other PR #609, we'll be able to specify just the extra ones instead of rewriting them all.
from helm-charts.
Related Issues (20)
- [nri-bundle] noisy logs from `newrelic-bundle-nrk8s-kubelet-*` HOT 3
- [nri-bundle-5.0.25][newrelic-logging] log parser causing noisy warning in logs with stderr F ... HOT 3
- [nri-bundle:5.0.26] Logs not parsing as CRI but parsing as Docker HOT 3
- [newrelic-pixie] newrelic-pixie init container not running on arm64 HOT 9
- Action Required: Fix Renovate Configuration HOT 1
- Include info about newrelic-logging updates in nri-bundle chart release notes HOT 3
- [ri-bundle] how to input newrelic license key to value.yaml HOT 3
- [newrelic-logging] hostPath on OpenShift 4.13 HOT 2
- Support templated [cluster] value HOT 1
- [nri-bundle] <nri-mongodb3 integration is not working> HOT 2
- [nri-bundle:5.0.69] Update Docs: "fluentBit.k8sLoggingExclude" needs to be 'true' and not 'On' HOT 1
- [newrelic] Unable to install charts HOT 2
- Support `customSecretName` for `nri-statsd` HOT 1
- Modify Synthetics Job Manager Containers to Support Non-Root Execution HOT 3
- [newrelic-logging] Adding more than one podLabel results in invalid yaml errors HOT 1
- Remove resources cpu limits default (newrelic-logging) HOT 1
- Add latestest version of newrelic-logging-1.22.0 to the nri-bundle HOT 2
- [newrelic-logging] kubelet upstream connection error HOT 1
- [newrelic-logging] Metrics host magic in `_helpers.tpl` relies on plain value secret to choose EU over US HOT 2
- [newrelic-logging] BREAKING Bug in env values order 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 helm-charts.