Hello,
Whenever I attempt to run logstash using the --configtest flag this is the message I keep getting:
The error reported is:
Couldn't find any codec plugin named 'transit'. Are you sure this is correct?
Trying to load the transit codec plugin resulted in this error: no such file to load -- logstash/lib/logstash/codecs/base
any ideas..?
It sounds like you've got require "logstash/lib/logstash/codecs/base"
in your plugin. I don't think this is right, it should probably be require "logstash/codecs/base"
(remove the leading logstash/lib
part)
Thanks!
However, now when I run logstash using:
/opt/logstash/bin/logstash agent --verbose --log /opt/logstash/log/logstash.logs --config /opt/logstash.conf --pluginpath /opt/logstash/lib/ --debug
This is the output that I receive:
Sending logstash logs to /opt/logstash/log/logstash.logs.
Using milestone 1 input plugin 'lumberjack'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin. For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
Using milestone 1 codec plugin 'transit'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin. For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
Error: Configuration problem.
Any ideas?
Try using the --debug
flag which should show you a stack trace. Without more information, I'm not sure what is going on.
I get the same Error message when I run both --configtest
and --debug
This is the new output I get when I run:
/opt/logstash/bin/logstash agent --verbose --log /opt/logstash/log/logstash.logs --config /opt/logstash.conf --pluginpath /opt/logstash/lib
Output:
Sending logstash logs to /opt/logstash/log/logstash.logs.
Using milestone 1 input plugin 'lumberjack'. This plugin should work, but would benefit from use by folks like you. Please let us know if you find bugs or have suggestions on how to improve this plugin. For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
Using milestone 2 input plugin 'file'. This plugin should be stable, but if you see strange behavior, please let us know! For more information on plugin milestones, see http://logstash.net/docs/1.4.2/plugin-milestones {:level=>:warn}
+---------------------------------------------------------+
| An unexpected error occurred. This is probably a bug. |
| You can find help with this problem in a few places: |
| |
| * chat: #logstash IRC channel on freenode irc. |
| IRC via the web: http://goo.gl/TI4Ro |
| * email: logstash-users@googlegroups.com |
| * bug system: https://logstash.jira.com/ |
| |
+---------------------------------------------------------+
The error reported is:
Couldn't find any codec plugin named 'transit'. Are you sure this is correct? Trying to load the transit codec plugin resulted in this error: no such file to load -- logstash/codecs/transit
I am following the instructions located here: Contributing to Logstash | Logstash Reference [8.11] | Elastic, the only difference is that I am implementing a codec.
So far, I have tried to place the transit.rb
file in 2 locations:
(FYI.: logstash is installed at: /opt/logstash
)
/opt/logstash/codecs
(I manually created the codecs directory there)
/opt/logstash/lib/logstash/codecs
(there is a list of codecs located here)
When I run these 2 commands, respectively (depending on where I chose to place the transit.rb based on the options above)
/opt/logstash/bin/logstash agent --verbose --log /opt/logstash/log/logstash.logs --config /opt/logstash.conf --pluginpath /opt/logstash/codecs
/opt/logstash/bin/logstash agent --verbose --log /opt/logstash/log/logstash.logs --config /opt/logstash.conf --pluginpath /opt/logstash/codecs
I get the same error...however, the 2nd option seems to work a lot better than the first.
Can you post the code for your plugin?