Tags » Syslog


logger コマンドの1024バイト制限

$ cmd | logger というように、コマンドの出力結果を logger コマンド経由で syslog 出力することがある。
極稀に syslog のメッセージが途切れているという事象があり、調べてみると logger コマンドは 1024 バイトまでしか出力できないようにハードコードされているとわかる。

1024 バイト制限は “RFC 3164 : The BSD syslog Protocol” に起因していて 583 more words


Linux - Invisible Programs Part 2/2 - Daemonize the Timer

In Part 1/2, we created a timer in a file named “d_prog.c”. The timer made entries into /var/log/syslog.

user@host-$ sudo vim /var/log/syslog 
Mar 15 19:23:18 HOST-PC d_prog: d_prog begin. 478 more words

Raspberry Pi as a Splunk Universal Forwarder to Store-and-Foward Logs

I am a fan of Splunk, so I run it at home.  The problem is, I don’t want it running all the time, but I always want to collect logs. 1,012 more words


Linux - Invisible Programs Part 1/2 - Construction of a Timer

Ok, lets make stuff! Today, we will begin the construction of a basic, but working, example of a Linux daemon. Daemons are programs that work in the background, invisible, helping or hurting your machine … explaining the reason why they are called daemon’s (“nature spirits”). 749 more words


Bug or feature? Dereferencing of arrays and namespaces

Now that the upgrade from 3.4 to 3.6 is advancing slowly but steadily I am starting to check the features that are new in 3.6 compared to 3.4.   289 more words


zabbix and syslog centos

Журналирование логов с коммутаторов и маршрутизаторов в заббиксе.

1. В /var/log/ создаётся файл, куда будут складываться логи с оборудования, например

touch switch.log.

Назначаются права доступа^ 43 more words


Bug or feature? Change in behaviour in CFEngine templates

Today I stumbled upon an unexpected behaviour change in CFEngine templates when upgrading from version 3.4 to 3.6. The change is not documented anywhere in the… 419 more words