Comments (12)
@Athishpranav2003 to come back to your question, I do see the @id field for logs generated by the input plugin.
from fluentd.
@DavidKnacker is the id missing even for logs generated by input plugin?
from fluentd.
@Athishpranav2003 I haven't checked it for error logs thrown by an input plugin yet.
But am I correct to assume that using @id to track errors should work for all kind of plugins? (or at least the ones that are shipped by default with fluentd?)
from fluentd.
Ideally yes but since it's not behaving in that way I was checking what's the difference in underlying code
Will check it meanwhile
Just ping me later with the case of input plugin
from fluentd.
👍
will check the behavior for the input plugin tomorrow and report back
from fluentd.
another scope of Idea: track plugin which emit error event in router side, then emit more user friendly error message.
from fluentd.
Thanks for your report.
This is Fluentd's specification.
This dump an error event
log is generated by RootAgent
(Fluentd's common logic).
The filter_parser
plugin just emits the error event to the router.
So, this log does not have its id.
fluentd/lib/fluent/root_agent.rb
Lines 344 to 354 in e763c07
Although this is the current specification, it looks like not so good.
Maybe it could be improved somehow.
from fluentd.
Although this is the current specification, it looks like not so good.
Maybe it could be improved somehow.
It would be better to include the id of the plugin that emits the error event.
It may be easy to manually include the id of filter_parser
in the error info that it emits.
fluentd/lib/fluent/plugin/filter_parser.rb
Lines 101 to 103 in e763c07
However, it is not so good because every plugin that emits error events needs to consider this issue.
As @kenhys says in #4567 (comment), it would be great if we could create a common mechanism for this.
another scope of Idea: track plugin which emit error event in router side, then emit more user friendly error message.
from fluentd.
@daipom so basically we need to avoid change in function signature but capture the caller plugin id?
from fluentd.
so basically we need to avoid change in function signature but capture the caller plugin id?
Yes.
We can't change the signature of emit_error_event()
because it is related to Event Emitter plugin helper API.
We need to keep compatibility for the plugins that use this function.
from fluentd.
Why don't we use log.error method to generate the error log than emitting it as event(It's indirect but works the same way right)?
from fluentd.
Why don't we use log.error method to generate the error log than emitting it as event(It's indirect but works the same way right)?
@daipom what about this?
from fluentd.
Related Issues (20)
- Could fluentd provide an option delete_after_read HOT 1
- Different users are not logrotae when logrotating in the deb package of fluentd HOT 1
- Issue with log rotation and getting request payload size exceeds the limit HOT 2
- Fluentd causing inflated bandwidth bills in AKS HOT 1
- Enable OpenSSF Scorecard to enhance security practices across the project HOT 3
- Ruby uplift 2.5 -> 3.3 makes Fluentd startup 60x slower HOT 7
- D:/opt/calyptia-fluentd/lib/ruby/3.2.0/rubygems.rb:1342:in `rescue in <top (required)>': U+795E to ASCII-8BIT in conversion from UTF-16LE to UTF-8 to ASCII-8BIT (Encoding::UndefinedConversionError) HOT 5
- Fluentd causing inflated bandwidth bills in AKS HOT 4
- Bind to all network interfaces for both IPv4 and IPv6 HOT 9
- Flushing the buffer fails with `BSON::Error::UnserializableClass error="Value does not define its BSON serialized type: 1721203518"`. HOT 2
- remove_key_name_field true when key_name is message causes ArgumentError error="message does not exist" HOT 5
- 500 response when scraping prometheus metrics in kubernetes with istio service mesh HOT 2
- CI fails on Ruby HEAD
- `warning: literal string will be frozen in the future` since Ruby 3.4.0
- `FrozenError: can't modify frozen String` in http_server plugin helper
- Improvement of OpenSSF Scorecard Score HOT 4
- v1.17.1 sometimes kills in_monitor_http_server_helper thread HOT 3
- Fluentd is not able to send .json extension file logs to logstash (fluent/fluentd-kubernetes-daemonset:v1.16.3-debian-opensearch-amd64-2.0)
- Fluentd uses the Kafka output plugin, and after manually deleting the topic, it gets recreated.
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 fluentd.