An open API service indexing awesome lists of open source software.

https://github.com/tomatophp/laravel-logstash

Elastic Logstash integration for Laravel Apps
https://github.com/tomatophp/laravel-logstash

elasticsearch laravel log-channel logging logstash

Last synced: 12 months ago
JSON representation

Elastic Logstash integration for Laravel Apps

Awesome Lists containing this project

README

          

![Screenshot](https://raw.githubusercontent.com/tomatophp/laravel-logstash/master/arts/screenshot.jpg)

# Laravel Logstash Log Channel

[![Dependabot Updates](https://github.com/tomatophp/laravel-logstash/actions/workflows/dependabot/dependabot-updates/badge.svg)](https://github.com/tomatophp/laravel-logstash/actions/workflows/dependabot/dependabot-updates)
[![PHP Code Styling](https://github.com/tomatophp/laravel-logstash/actions/workflows/fix-php-code-styling.yml/badge.svg)](https://github.com/tomatophp/laravel-logstash/actions/workflows/fix-php-code-styling.yml)
[![Tests](https://github.com/tomatophp/laravel-logstash/actions/workflows/tests.yml/badge.svg)](https://github.com/tomatophp/laravel-logstash/actions/workflows/tests.yml)
[![Latest Stable Version](https://poser.pugx.org/tomatophp/laravel-logstash/version.svg)](https://packagist.org/packages/tomatophp/laravel-logstash)
[![License](https://poser.pugx.org/tomatophp/laravel-logstash/license.svg)](https://packagist.org/packages/tomatophp/laravel-logstash)
[![Downloads](https://poser.pugx.org/tomatophp/laravel-logstash/d/total.svg)](https://packagist.org/packages/tomatophp/laravel-logstash)

Elastic Logstash log channel for Laravel apps

## Installation

```bash
composer require tomatophp/laravel-logstash
```

on your env add your host with port as a direct http connection on your env, and change the log channel to logstash

```dotenv
LOGSTASH_HOST=https://log.tomatophp.com
LOG_CHANNEL=logstash
```

## Publish Assets

you can publish config file by use this command

```bash
php artisan vendor:publish --tag="laravel-logstash-config"
```

## Changelog

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

## Security

Please see [SECURITY](SECURITY.md) for more information about security.

## Credits

- [Fady Mondy](mailto:info@3x1.io)

## License

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

## Testing

if you like to run `PEST` testing just use this command

```bash
composer test
```

## Code Style

if you like to fix the code style just use this command

```bash
composer format
```

## PHPStan

if you like to check the code by `PHPStan` just use this command

```bash
composer analyse
```

## Other Filament Packages

Checkout our [Awesome TomatoPHP](https://github.com/tomatophp/awesome)