Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Use as a fingers_crossed nested handler #2

Open
drzraf opened this issue Dec 5, 2019 · 1 comment
Open

Use as a fingers_crossed nested handler #2

drzraf opened this issue Dec 5, 2019 · 1 comment

Comments

@drzraf
Copy link

drzraf commented Dec 5, 2019

I'm currently trying the following:

monolog:
    handlers:
        ovh:
            type: fingers_crossed
            action_level: debug
            handler: ovh_raw
            excluded_http_codes: [404, 405]
        ovh_raw:
            type: gelf
            publisher:
                id: gelf.publisher
            level: debug
 ```

In order to ignore 404 from Graylog. Does not seem to work ("Route not found" errors still flowing down Graylog). Any idea why so?
@mdevlamynck
Copy link
Contributor

Do you have the same issue if you try using an other logger type like stream or console in ovh_raw?

This bundle adds a token for ovh on each log (https://github.com/chaplean/ovh-logs-bundle/blob/master/Processor/OvhLogsProcessor.php#L37). It will add this token on the handler called ovh. Maybe that handler needs to be the gelf handler. So maybe try renaming the handler ovh to something like ovh_filter and ovh_raw to ovh.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants