This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
команды_чтения_содержимого_файлов [2024/05/11 10:50] val [tail] |
команды_чтения_содержимого_файлов [2024/05/11 15:48] (current) val [tail] |
||
---|---|---|---|
Line 18: | Line 18: | ||
===== tail ===== | ===== tail ===== | ||
- | [[http://ru.wikipedia.org/wiki/Tail]] | + | * [[https://ru.wikipedia.org/wiki/Tail]] |
+ | * Сервис SNORT [[Сервис SNORT#Копирование alert_unified2 в syslog]] | ||
<code> | <code> | ||
Line 26: | Line 27: | ||
$ sudo tail -fn0 /var/log/auth.log | stdbuf -o0 grep abcd | while read L; do echo $L | mail -s abcd userX@isp.un; done | $ sudo tail -fn0 /var/log/auth.log | stdbuf -o0 grep abcd | while read L; do echo $L | mail -s abcd userX@isp.un; done | ||
- | |||
- | # stdbuf -i0 -o0 u2spewfoo <(tail -c +1 -f /var/log/snort/snort.alert) | logger -t snort -p auth.info | ||
</code> | </code> | ||