Tag Archives: log

Logrotate – how to split log hourly on ubuntu or centos 6/7

Logrotate – how to split log hourly on ubuntu or centos 6/7   make hourly logrotate Create an hourly working directory and copy the syslog you will use in the example. sudo mkdir /etc/logrotate.hourly.d sudo cp /etc/logrotate.d/syslog /etc/logrotate.hourly.d/syslog Then type the following: sudo vi etc/logrotate.hourly.d/syslog /var/log/syslog { rotate 48 hourly missingok notifempty delaycompress compress postrotate

Read More

Graylog 2.3.x How to install on Centos7 with Syslog input

Graylog 2.3.x How to install on Centos7 with Syslog input   Java 8 JDK Install yum install java-1.8.0-openjdk-headless.x86_64   MongoDB Install make file for mongodb repo vi /etc/yum.repos.d/mongodb-org-3.2.repo mongodb-org-3.2.repo [mongodb-org-3.2] name=MongoDB Repository baseurl=https://repo.mongodb.org/yum/redhat/$releasever/mongodb-org/3.2/x86_64/ gpgcheck=1 enabled=1 gpgkey=https://www.mongodb.org/static/pgp/server-3.2.asc install mongodb yum install mongodb-org #insert Service base chkconfig –add mongod systemctl daemon-reload systemctl enable mongod.service systemctl start mongod.service

Read More

Detection ADBlockPlease, Disable or add to white list on our site.