title: Symfony 4 enable logging with Monolog's Redis handler
body: <p>I have a working ELK stack connected to Redis. </p>
  
  <p>I also have a working stateless Symfony 4 application and I want to send all the production logs to my Redis. </p>
  
  <p>I know Monolog has a Redis handler, but I don't know how I'm supposed to tweak the config/prod/monolog.yaml file to accomplish this of if there’s another approach.</p>
  
  <p>This is how it looks right now:</p>
  
  <pre><code>monolog:
  handlers:
      main:
          type: fingers_crossed
          action_level: error
          handler: nested
          excluded_http_codes: [404]
      nested:
          type: stream
          path: "php://stderr"
          level: debug
      console:
          type: console
          process_psr_3_messages: false
          channels: ["!event", "!doctrine"]
      deprecation:
          type: stream
          path: "php://stderr"
      deprecation_filter:
          type: filter
          handler: deprecation
          max_level: info
          channels: ["php"]
  </code></pre>