You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have custome plugin which will open up tcp socket and will listen from rsyslog for logs. Received logs will be parsed by custom plugin and will be converted to json and using router.emit it will be emitted into file buffer. Custom output plugin will read this buffer by overwritten write method parse the json and according to one field it will be inserted into elasticsearch using custom API.
I dont want to use fluent logging. So i am initializing custome standard ruby logger in configure method. It is giving me below error. From logs i am not able to understand what is cusing error. I am attaching the logs below. It is continbuesly going for restart.
In input plugin also i am inititlzinf same logger in input plugin as well. There i am not facing any issue even thogh using same logger.
2023-06-18 01:48:24 +0530 [warn]: #0 define <match fluent.**> to capture fluentd logs in top level is deprecated. Use <label @FLUENT_LOG> instead
2023-06-18 01:48:24 +0530 [info]: #0 starting fluentd worker pid=10724 ppid=10575 worker=0
2023-06-18 01:48:24 +0530 [info]: #0 fluentd worker is now running worker=0
2023-06-18 01:48:24 +0530 [error]: #0 unexpected error error_class=ArgumentError error="wrong number of arguments (given 2, expected 0..1)"
2023-06-18 01:48:24 +0530 [error]: #0 /opt/td-agent/embedded/lib/ruby/2.4.0/logger.rb:533:in `warn'
2023-06-18 01:48:24 +0530 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:90:in `ensure in block in thread_create'
2023-06-18 01:48:24 +0530 [error]: #0 /opt/td-agent/embedded/lib/ruby/gems/2.4.0/gems/fluentd-1.11.5/lib/fluent/plugin_helper/thread.rb:90:in `block in thread_create'
2023-06-18 01:48:24 +0530 [error]: #0 unexpected error error_class=ArgumentError error="wrong number of arguments (given 2, expected 0..1)"
2023-06-18 01:48:24 +0530 [error]: #0 suppressed same stacktrace
2023-06-18 01:48:24 +0530 [info]: Worker 0 finished unexpectedly with status 1
2023-06-18 01:48:25 +0530 [info]: adding match pattern="*.**" type="newela"
/prodlogs/tdagent/tdagent_kelasticsearch.log
0
2023-06-18 01:48:26 +0530 [info]: adding source type="Kcsv"
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
td-agent --version
td-agent 1.11.5
We have custome plugin which will open up tcp socket and will listen from rsyslog for logs. Received logs will be parsed by custom plugin and will be converted to json and using router.emit it will be emitted into file buffer. Custom output plugin will read this buffer by overwritten write method parse the json and according to one field it will be inserted into elasticsearch using custom API.
I dont want to use fluent logging. So i am initializing custome standard ruby logger in configure method. It is giving me below error. From logs i am not able to understand what is cusing error. I am attaching the logs below. It is continbuesly going for restart.
In input plugin also i am inititlzinf same logger in input plugin as well. There i am not facing any issue even thogh using same logger.
Require community support for debug the issue....
Beta Was this translation helpful? Give feedback.
All reactions