diff --git a/recipes/color-codes/index.md b/recipes/color-codes/index.md index 574b89b..decba11 100644 --- a/recipes/color-codes/index.md +++ b/recipes/color-codes/index.md @@ -26,7 +26,7 @@ incoming message like this: # Get rid of color codes mutate { - gsub => ["@message", "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", ""] + gsub => ["message", "\x1B\[([0-9]{1,2}(;[0-9]{1,2})?)?[m|K]", ""] } will result in the Ruby logs becoming this: @@ -34,4 +34,4 @@ will result in the Ruby logs becoming this: D, [2013-01-17T14:59:52.415396 #10324] DEBUG -- : Product Load (0.8ms) SELECT `product`.* FROM `products` WHERE `products`.`id` = 14 LIMIT 1 D, [2013-01-17T14:59:52.436057 #10324] DEBUG -- : User Load (1.0ms) SELECT `users`.* FROM `users` WHERE `users`.`id` = '123' LIMIT 1 -These logs are then more easily grokked as the logs are now in a predictable format. \ No newline at end of file +These logs are then more easily grokked as the logs are now in a predictable format.