• Name: assignment_turned_in EPiGEN Crystal (official) | create 자몽 (korean)


+Work logs

  • fresh installation — Updated on 2018/02/25 01:13

+Que to do

  • Change Boot microSD memory due to physical defects

Configure System log (syslog) Server

Raspbian (debian) server can be used as a machine recording log from external devices such as router.
Install syslog-ng and related mods as well.

  sudo apt-get install syslog-ng 

After finishing installation, edit /etc/syslog-ng/syslog-ng.conf.

  source s_net { udp(ip( port(514)); };  
  destination d_router { file(/var/log/router.log”); }; 
  log { source(s_net); destination(d_router); }; 

source s_net defines the source where records are from will be bind to all interfaces.
destination set your arbitrary name like d_router and set the path of log file.
log tells what source to use and what destination to take. If you have 'filter' option to utilize for more refined log results.
Create log file.

  sudo touch /var/log/router.log 

And restart syslog-ng service

  sudo systemctl stop syslog-ng.service 
  sudo systemctl start syslog-ng.service 

For sensitive reason, you would better to stop & start service instead of restart.
Check size of log file is getting bigger and contents of log file.

For archiving and compressing log files, edit /etc/logrotate.d/syslog.ng

        rotate 4
                invoke-rc.d syslog-ng reload > /dev/null

  • rpi_epigen
  • Last modified: 2019/03/30 21:23
  • by Júne Park