Comments (3)
Hello
As far as I know you cannot use AWS ELB for TCP load balancing. It will only do HTTP.
But just in case I'm wrong, you can debug by enabling verbose logging on logstash. The courier plugin will log all new connections and closures to the logstash log. I think it's "--verbose" when you run logstash. Failing that enable debug mode with "--debug" but it can get noisy that one.
Jason
from log-courier.
No, ELB works for TCP. Docs here. I've been running lumberjack through it.
Here's the only interesting lines given with --verbose. (the only other lines are for grok patterns).
{:timestamp=>"2014-09-03T18:33:11.446000+0000", :message=>"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.1.dev/plugin-milestones", :level=>:warn}
{:timestamp=>"2014-09-03T18:33:11.615000+0000", :message=>"Using milestone 2 output plugin 'elasticsearch_http'. 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.1.dev/plugin-milestones", :level=>:warn}
{:timestamp=>"2014-09-03T18:33:11.654000+0000", :message=>"Using milestone 1 input plugin 'courier'. 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.1.dev/plugin-milestones", :level=>:warn}
{:timestamp=>"2014-09-03T18:33:15.489000+0000", :message=>"Starting lumberjack input listener", :address=>"0.0.0.0:5554", :level=>:info}
{:timestamp=>"2014-09-03T18:33:15.670000+0000", :message=>"Starting courier input listener", :address=>"0.0.0.0:5550", :level=>:info}
Here's the output with --debug.
{:timestamp=>"2014-09-03T18:38:49.390000+0000", :message=>"Using milestone 1 input plugin 'courier'. 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.1.dev/plugin-milestones", :level=>:warn, :file=>"logstash/config/mixin.rb", :line=>"209"}
{:timestamp=>"2014-09-03T18:38:49.394000+0000", :message=>"config LogStash::Codecs::Plain/@charset = \"UTF-8\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.395000+0000", :message=>"config LogStash::Inputs::Courier/@port = 5550", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.396000+0000", :message=>"config LogStash::Inputs::Courier/@transport = \"tcp\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.397000+0000", :message=>"config LogStash::Inputs::Courier/@ssl_key = \"/etc/ssl/private/logstash-forwarder.key\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.398000+0000", :message=>"config LogStash::Inputs::Courier/@debug = false", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.399000+0000", :message=>"config LogStash::Inputs::Courier/@codec = <LogStash::Codecs::Plain charset=>\"UTF-8\">", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.400000+0000", :message=>"config LogStash::Inputs::Courier/@add_field = {}", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.401000+0000", :message=>"config LogStash::Inputs::Courier/@host = \"0.0.0.0\"", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.402000+0000", :message=>"config LogStash::Inputs::Courier/@ssl_verify = false", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:49.403000+0000", :message=>"config LogStash::Inputs::Courier/@ssl_verify_default_ca = false", :level=>:debug, :file=>"logstash/config/mixin.rb", :line=>"105"}
{:timestamp=>"2014-09-03T18:38:53.121000+0000", :message=>"Starting lumberjack input listener", :address=>"0.0.0.0:5554", :level=>:info, :file=>"logstash/inputs/lumberjack.rb", :line=>"38"}
{:timestamp=>"2014-09-03T18:38:53.323000+0000", :message=>"Starting courier input listener", :address=>"0.0.0.0:5550", :level=>:info, :file=>"logstash/inputs/courier.rb", :line=>"66"}
I don't see anything really interesting in there.
When I set the logcourier forwarder to 'localhost' I get the expected debug lines; when it's set to go through the ELB I get.. nothing from the server side.
Ugh- solved. I was missing one security group setting (the ELB to the instances from the point of view of the instance). Wow. Well, at least I have learned a lot by reading through both the lumberjack and courier server code!
from log-courier.
Ah! That explains the immediate EOF then!
I stand corrected on the ELB usage then! Never knew it could. I wonder how it works with the max connection time (unless that's specific to HTTP) - I'll have to read the docs!
Let us know if you do have any other issues though and I'll be glad to help.
Jason
from log-courier.
Related Issues (20)
- Duplicates observed when log-courier configuration file is overwritten HOT 3
- Undocumented behavior for paths matched by multiple fileglobs HOT 1
- log-courier can't seem to handle `~` for home in certain contexts. HOT 2
- error in logstash 7 HOT 4
- log-courier and logstash > 7.4.0? HOT 10
- Throughput question HOT 15
- does the includes configuration still work correctly? HOT 3
- Hold time setting not closing files properly
- syslog "progname" uses a full path rather than a basename HOT 1
- Information about payloads / different debug level ? HOT 3
- error while compiling code in the command line using MK in windows for Z wave HOT 1
- version.rb missing from the plugin package
- log-courier admin socket stuck HOT 2
- lc-admin does not default to tcp transport HOT 2
- order of files in lc-admin UI
- Logstash configuration auto reload is blocked by log-courier input HOT 2
- PPA packaging is using deprecated compatibility level 9 HOT 1
- 2.10.0 packages missing from PPA (Ubuntu)
- Receiver reload can cause panic
- TCP streaming receiver aborts if too many events received
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 log-courier.