When you set up your own server, you need to constantly monitor logs to prevent attacks, but checking them one by one is tedious, so I use a software called logwatch. When you install logwatch, it compiles and emails logs every night. This is an actual email I received. (It’s been heavily edited)
The installation procedure is as follows.
sudo yum install iptables
cat /etc/logwatch/conf/logwatch.conf
It probably says something like
# Local configuration options go here (defaults are in /usr/share/logwatch/default.conf/logwatch.conf)
so edit that file.
sudo vim /usr/share/logwatch/default.conf/logwatch.conf
Here, register your destination email address like MailTo = xxxxxxx@gmail.com. With this, you’ll start receiving emails every night.
Also, I had the day off from my part-time job today, so I was doing atcoder until just now. (http://arc008.contest.atcoder.jp/) I could easily solve A and B, but I didn’t understand C at all. For D (TakoyakiOishikunaru), the input examples worked so it seemed promising, but something was wrong. Competitive programming is hard~