Recording data with a scribe

None of the example pisses I've seen actually mentions the best way to take logs / log files and send them to the scribe. I could set up a logrotate script that has a post-section section that "cats" rotates the file for the scribe (but at best I get a minute delay). Another option is to keep "tail -f = | my_scribe_sender" and hope that this process is never killed. However, then you really cannot guarantee that you will not lose / duplicate data.

+3
source share
3 answers

, Epcylon, "cating", , : scribe php, , , Google . , .

+1

If you are using PHP, here is a guide to making log calls to the Scribe server: http://www.alphadevx.com/a/85-Logging-Messages-to-Scribe-from-PHP

0
source

Source: https://habr.com/ru/post/1732273/


All Articles