Upgrade to Pro — share decks privately, control downloads, hide ads and more …

'Logs as Conversations' - Troy Davis

Waza
January 11, 2012
100

'Logs as Conversations' - Troy Davis

Waza

January 11, 2012
Tweet

Transcript

  1. Processing IncidentsController#locator (for 127.0.0.1 at 2012-01-04 15:51:21) [GET] Parameters: {"address"=>"123

    home rd."} I don't read minds. Give me a hint what you care about. Rendering incidents/locator 'cuz a lot of this is just noise. just sayin. 7
  2. Processing IncidentsController#locator (for 127.0.0.1 at 2012-01-04 15:51:21) [GET] Parameters: {"address"=>"123

    home rd."} I don't read minds. Give me a hint what you care about. Rendering incidents/locator 'cuz a lot of this is just noise. just sayin. Completed in 22ms (View: 6, DB: 14) | 200 OK [http:// localhost/] 8
  3. Processing IncidentsController#locator (for 127.0.0.1 at 2012-01-04 15:51:21) [GET] Parameters: {"address"=>"123

    home rd."} I don't read minds. Give me a hint what you care about. Rendering incidents/locator 'cuz a lot of this is just noise. just sayin. Completed in 22ms (View: 6, DB: 14) | 200 OK [http:// localhost/] PS tell matz hello 9
  4. 10

  5. 11

  6. 15

  7. Paprika 127.0.0.1 GET /members?s=1 200 OK MembersController#index HTML 133.6 (DB

    1.3, View 18.3) {“s”=>”1”} {:user_id=>1} 25
  8. meaning is not that hard heroku logs | awk '{print

    $1}' | sort | uniq -c \ | awk '{print $1}' | xargs spark 27
  9. meaning is not that hard heroku logs | awk '{print

    $1}' | sort | uniq -c \ | awk '{print $1}' | xargs spark horrifying! awesome! 28
  10. 30

  11. hierarchy of instrumentation • it might be happening • yep,

    it happened • it happened with a specific return code/response • it happened X times (count) • it happened at X velocity (gauge) • ... broken down by more attributes (customer, user, instance) • thresholds 31
  12. What can I do today? • Add 5 puts() to

    an app. Anywhere. • Install TwP/logging or log4r • Add 5 debug outputs and flip one on • Install log_weasel • Install my 1-line logger, cabin, or rip Adam Wiggins’ log() • heroku drains:add <log dest like Papertrail> 33