Ruby on Rails Thursday, November 24, 2016



On Tuesday, November 22, 2016 at 5:35:32 PM UTC, Hassan Schroeder wrote:
I'm looking for recommendations on consolidating Rails logs from
multiple servers[*] into one.

[*] AWS EC2 instances running Ubuntu 16.04 + Ruby 2.3.x/Rails 5

Bonus points for workable integration with Docker instances.

Extra bonus points if the end point is a third-party service AND it
offers a HIPAA-compliant BA environment :-)


If you're on aws, then aws cloudwatch has a logs feature these days. It can do some things like creating metrics / alarms from logs, but it's not anything as full featured as logstash / elasticsearch/ kibana. If you just want to store logs for possible future analysis, it's fine though.

Fred

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f26ac7cf-26b4-4734-a658-4274cc8da554%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails

probably not getting any Bonus points for pointing out that there are existing ami-images for setting up an Elastic-Stack(https://www.elastic.co), consisting of logstash (for sending out logfiles), elasticsearch (for collecting them centrally and making them searchable), and kibana (for visualising log-events). Integrating this into a ruby/rails-app is pretty straightforward, for rails there already exist log-adapters to properly json-format log-entries. We're also using this setup for sending out application-events we want to monitor (user logged in, purchase completed, item viewed etc.) - and then let logstash sort out where to put them. So apart from consolidating, this also comes in handy for splitting up logs into different buckets. Logstash had had its issues in the beginning, but has come a long way since Elastic has put it under its wings and now basically "just works"(tm). 

There are also existing docker-images for the whole elastic-stack, right now we just throw logstash in with our application-container and have the elasticsearch-server run in another container.

Works quite straightforward for us, reasonably easy to set-up, covers a wide range of scenarios, works for us, 

ok, now for half a bonus-point: There is also a hosted version called ElasticCloud (https://www.elastic.co/cloud/as-a-service), but it isn't exactly cheap and we haven't tested it...


Am Dienstag, 22. November 2016 18:35:32 UTC+1 schrieb Hassan Schroeder:
I'm looking for recommendations on consolidating Rails logs from
multiple servers[*] into one.

[*] AWS EC2 instances running Ubuntu 16.04 + Ruby 2.3.x/Rails 5

Bonus points for workable integration with Docker instances.

Extra bonus points if the end point is a third-party service AND it
offers a HIPAA-compliant BA environment :-)

TIA!
--
Hassan Schroeder ------------------------ hassan.s...@gmail.com
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/32faca6b-a8f9-48d6-b177-f42bec0900f8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ruby on Rails Wednesday, November 23, 2016

On Wed, Nov 23, 2016 at 7:51 AM, Joe Guerra <jguerra@jginfosys.com> wrote:
> try this?
> https://newrelic.com/ruby

Thanks, we already use NewRelic - even the free tier is super useful -
but that has nothing to do with exporting/consolidating logs.

>> I'm looking for recommendations on consolidating Rails logs from
>> multiple servers[*] into one.

--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
Consulting Availability : Silicon Valley or remote

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yBq4jTHMjnBJ1RbdRokebaBefJVy9w8LaN9ZGnG6Lk3gw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.