iT邦幫忙

0

關於ELK蒐集Laravel log 問題 (問題已自行解決)

前情提要:
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

其實自己最主要的問題,是因為不懂,所以找不到解決問題的方向,就是想來討論看看,希望能通過討論,得到一些方向

踏雪尋梅 iT邦研究生 5 級 ‧ 2020-03-12 13:30:32 檢舉
補充資料:

目前參考這篇,但完全不知道如何下手

https://github.com/juanparati/laralog
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友回答

立即登入回答