{"id":16817900,"url":"https://github.com/phpfour/logstashbundle","last_synced_at":"2025-04-11T02:25:22.838Z","repository":{"id":11001110,"uuid":"13324161","full_name":"phpfour/LogstashBundle","owner":"phpfour","description":"A bundle on top of MonologBundle which provides easy logging to logstash.","archived":false,"fork":false,"pushed_at":"2015-08-07T04:16:10.000Z","size":172,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-04T12:41:08.031Z","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/phpfour.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":"2013-10-04T12:56:53.000Z","updated_at":"2017-03-17T15:21:30.000Z","dependencies_parsed_at":"2022-08-30T04:00:56.904Z","dependency_job_id":null,"html_url":"https://github.com/phpfour/LogstashBundle","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/phpfour%2FLogstashBundle","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2FLogstashBundle/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2FLogstashBundle/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/phpfour%2FLogstashBundle/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/phpfour","download_url":"https://codeload.github.com/phpfour/LogstashBundle/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248328659,"owners_count":21085364,"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-13T10:48:40.936Z","updated_at":"2025-04-11T02:25:22.801Z","avatar_url":"https://github.com/phpfour.png","language":"PHP","readme":"## LogstashBundle\n\nA bundle on top of MonologBundle which provides logging to logstash through redis broker/input.\n\n## Installation\n\n##### Step 1: Download LogstashBundle\n\nAdd logstash bundle in your composer.json as below:\n\n```js\n\"require\": {\n    ...\n    \"emran/logstash-bundle\": \"1.0.0\"\n}\n```\n\nUpdate/install with this command:\n\n```\nphp composer.phar update \"emran/logstash-bundle\"\n```\n\n##### Step 2:  Enable the bundle\n\nRegister the bundle\n\n```php\npublic function registerBundles()\n{\n    $bundles = array(\n        ...\n        new Emran\\Bundle\\LogstashBundle\\EmranLogstashBundle(),\n);\n```\n\n##### Step 3:  Activate the main configs\n\n```\n# app/config/config.yml\nemran_logstash:\n    redis:\n        host: localhost\n        port: 6379\n        list: logstash\n        name: myApp\n```\n\n## How to use ?\n\nThe bundle adds a new handler to the already register logger service, so there shouldn't be any change in the way\nyou are logging your events:\n\n```php\npublic function indexAction()\n{\n    $this-\u003eget('logger')-\u003edebug('Loading index page.');\n    return $this-\u003erender('TestBundle:Default:index.html.twig');\n}\n\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpfour%2Flogstashbundle","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphpfour%2Flogstashbundle","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphpfour%2Flogstashbundle/lists"}