{"id":17601359,"url":"https://github.com/alexeevdv/yii2-graylog-target","last_synced_at":"2025-04-30T09:02:16.835Z","repository":{"id":56944552,"uuid":"175180948","full_name":"alexeevdv/yii2-graylog-target","owner":"alexeevdv","description":"Yii2 graylog2 log target","archived":false,"fork":false,"pushed_at":"2020-03-21T06:16:41.000Z","size":16,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-25T06:23:19.103Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alexeevdv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-12T09:48:24.000Z","updated_at":"2024-01-12T15:25:20.000Z","dependencies_parsed_at":"2022-08-21T07:20:15.161Z","dependency_job_id":null,"html_url":"https://github.com/alexeevdv/yii2-graylog-target","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevdv%2Fyii2-graylog-target","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevdv%2Fyii2-graylog-target/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevdv%2Fyii2-graylog-target/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alexeevdv%2Fyii2-graylog-target/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alexeevdv","download_url":"https://codeload.github.com/alexeevdv/yii2-graylog-target/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242619122,"owners_count":20159001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-22T12:25:32.791Z","updated_at":"2025-03-08T22:31:08.957Z","avatar_url":"https://github.com/alexeevdv.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# yii2-graylog-target\n\n[![Build Status](https://api.travis-ci.com/alexeevdv/yii2-graylog-target.svg?branch=master)](https://travis-ci.com/alexeevdv/yii2-graylog-target) \n[![codecov](https://codecov.io/gh/alexeevdv/yii2-graylog-target/branch/master/graph/badge.svg)](https://codecov.io/gh/alexeevdv/yii2-graylog-target)\n![PHP 5.6](https://img.shields.io/badge/PHP-5.6-green.svg)\n![PHP 7.0](https://img.shields.io/badge/PHP-7.0-green.svg) \n![PHP 7.1](https://img.shields.io/badge/PHP-7.1-green.svg) \n![PHP 7.2](https://img.shields.io/badge/PHP-7.2-green.svg)\n![PHP 7.3](https://img.shields.io/badge/PHP-7.3-green.svg)\n\nYii2 graylog2 log target\n\n## Installation\n\nThe preferred way to install this extension is through [composer](https://getcomposer.org/download/).\n\nEither run\n\n```bash\n$ composer require alexeevdv/yii2-graylog-target\n```\n\nor add\n\n```\n\"alexeevdv/yii2-graylog-target\": \"^0.1\"\n```\n\nto the ```require``` section of your `composer.json` file.\n\n## Configuration\n\n```php\n\n'components' =\u003e [\n    'log' =\u003e [\n        'targets' =\u003e [\n            [\n                'class' =\u003e alexeevdv\\yii\\graylog\\Target::class,\n                'publisher' =\u003e [\n                    'class' =\u003e alexeevdv\\yii\\graylog\\Publisher::class,\n                    'categories' =\u003e ['application'],\n                    'facility' =\u003e 'my-application',\n                    'transports' =\u003e [\n                        [\n                            'class' =\u003e alexeevdv\\yii\\graylog\\transport\\UdpTransport::class,\n                            'host' =\u003e '192.168.1.1',\n                            'port' =\u003e 1234,\n                            'chunkSize' =\u003e 4321,\n                        ],\n                        [\n                            'class' =\u003e alexeevdv\\yii\\graylog\\transport\\TcpTransport::class,\n                            'host' =\u003e '192.168.1.2',\n                            'port' =\u003e 1234,\n                            'sslOptions' =\u003e [\n                                'allowSelfSigned' =\u003e true,\n                                'verifyPeer' =\u003e false,\n                            ],\n                        ]\n                    ],\n                ],\n            ],\n        ],\n    ],\n],\n```\n\n## Transports\n\n### UDP transport\n\n```php\n$transport = new alexeevdv\\yii\\graylog\\transport\\UdpTransport([\n    // Host name or IP. Default to 127.0.0.1\n    'host' =\u003e 'graylog.example.org',\n    // UDP port. Default to 12201\n    'port' =\u003e 1234,\n    // UDP chunk size. Default to 8154\n    'chunkSize' =\u003e 4321,\n]);\n```\n\n### TCP transport\n\n```php\n$transport = new alexeevdv\\yii\\graylog\\transport\\UdpTransport([\n    // Host name or IP. Default to 127.0.0.1\n    'host' =\u003e 'graylog.example.org',\n    // TCP port. Default to 12201\n    'port' =\u003e 12201,\n    // SSL options. (optional)\n    'sslOptions' =\u003e [\n        // Default to true\n        'verifyPeer' =\u003e false,\n        // Default to false\n        'allowSelfSigned' =\u003e true,\n        // Default to null\n        'caFile' =\u003e '/path/to/ca.file',\n        // Default to null\n        'ciphers' =\u003e 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256',\n    ],\n]);\n```\n\n### HTTP transport\n\n```php\n$transport = new alexeevdv\\yii\\graylog\\transport\\HttpTransport([\n    // Host name or IP. Default to 127.0.0.1\n    'host' =\u003e 'graylog.example.org',\n    // HTTP port. Default to 12202\n    'port' =\u003e 12202,\n    // Query path. Default to /gelf\n    'path' =\u003e '/my/custom/greylog',\n    // SSL options. (optional)\n    'sslOptions' =\u003e [\n        // Default to true\n        'verifyPeer' =\u003e false,\n        // Default to false\n        'allowSelfSigned' =\u003e true,\n        // Default to null\n        'caFile' =\u003e '/path/to/ca.file',\n        // Default to null\n        'ciphers' =\u003e 'TLS_AES_256_GCM_SHA384:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_128_GCM_SHA256',\n    ],\n]);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeevdv%2Fyii2-graylog-target","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falexeevdv%2Fyii2-graylog-target","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falexeevdv%2Fyii2-graylog-target/lists"}