前情提要:
Google了一整天了,目前讓
Elasticsearchs→logstash→nginx access log [OK]
Elasticsearchs→logstash→Kafka→SmartFoxServer log [OK]
Elasticsearchs→logstash→???→Laravel storage log []
環境提要
目前我這邊的架構是
Laravel和logstash是分開不同機器的,Google了一下也沒有什參考,應該如何去撈Laravel storage log資料
從Laravel下手去找存取log路徑的相關設定
#vi config/app.php
/*
|--------------------------------------------------------------------------
| Logging Configuration
|--------------------------------------------------------------------------
|
| Here you may configure the log settings for your application. Out of
| the box, Laravel uses the Monolog PHP logging library. This gives
| you a variety of powerful log handlers / formatters to utilize.
|
| Available Settings: "single", "daily", "syslog", "errorlog"
|
*/
'log' => env('APP_LOG', 'single'),
'log_level' => env('APP_LOG_LEVEL', 'debug'),
Laravel 版本 : Laravel Framework 5.5.48
其實自己最主要的問題,是因為不懂,所以找不到解決問題的方向,就是想來討論看看,希望能通過討論,得到一些方向