Skip to content

Conversation

@agounaris
Copy link
Contributor

Hello @Seldaek ,

I had to use monolog 2.3 to log to elasticsearch and I saw that there is no support for the engine.

This is a first implementation of it with the following sample configuration

my_handler:
  elasticsearch:
      host: 127.0.0.1
  type: elasticsearch
  level: info
  channels: payments
  tags: monolog.logger

Let me know if you like and if you would like any changes.

Please advice in case this should go to a different branch.

Cheers

@Seldaek Seldaek merged commit 8a2a6bd into symfony:master Dec 28, 2014
Seldaek added a commit that referenced this pull request Dec 28, 2014
@Seldaek
Copy link
Member

Seldaek commented Dec 28, 2014

Thanks!

I did some changes so an existing client id can be re-used to avoid multiple connections, and I moved the index/document_type settings up from the elasticsearch config. I removed the tags thing because I don't see what it was doing there to be honest, but maybe you can clarify that if it was important.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants