rsyslog implements storing logs into mysql

? Prerequisite: Prepare msql server or mariadb server; ? 1. Install the driver module that connects rsyslog to mysql server; [13:24 [email protected]~]# yum install -y rsyslog-mysql [13:24 [email protected]~]# rpm -ql rsyslog-mysql /lib64/rsyslog/ommysql.so /usr/share/doc/rsyslog-mysql-5.8.10 /usr/share/doc/rsyslog-mysql-5.8.10/createDB.sql You can see that the module provided by the rsyslog module to start mysql is also createDB.sql. Its function is to […]

Linux: Logging system rsyslog and log rotation logrotate

Directory 1. Logging system rsyslog 1.1. Importance of logs 1.2. Basics of log management 1.3. Process of processing logs 1.4. Common log files (system, process, application) 1.5.Website log management 1.6.rsyslogd configuration 1.7. Main configuration file 2. Log rotation (cutting) logrotate 2.1.logrotate configuration file 2.2. Configure log rotation 2.3.Example 1: Rotate file /var/log/yum.log 2.4.Example 2: Log […]

syslog function and rsyslog configuration (keepalived uses a separate log file)

Take CentOS7 Keepalived v1.3.5 (03/19, 2017) as an example. 1. First introduce the syslog function: The three functions openlog, syslog, and closelog are a set of system log writing interfaces. First of all, there should be programs such as syslog in the system, which can be installed with apt-get install sysklogd under ubuntu. (The sysklogd […]

Network Protocols – the syslog protocol and the rsyslog logging service

Table of Contents Article directory Table of contents syslog protocol Facility Severity action rsyslog Software Architecture rsyslogd service rsyslog.conf MODULES GLOBAL DIRECTIVES RULS property substitution template rendering filter rules Filter module queue Deployment example of remote log file server client server verify Storing Logs to MySQL Deployment Example server verify Listen to Apache logs sent […]

Linux Rsyslog implements HTML web page access through Nginx Web rsysLog

Logging is a critical component of any software or operating system. Logs typically record user actions, system events, network activity, and more, depending on their purpose. One of the most widely used logging systems on Linux systems is rsyslog. Rsyslog is a powerful, secure and high-performance log processing system that accepts data from different types […]

Linux Rsyslog implements HTML web page access Log through Apache httpd

Logging is a critical component of any software or operating system. Logs typically record user actions, system events, network activity, and more, depending on their purpose. One of the most widely used logging systems on Linux systems is rsyslog. Rsyslog is a powerful, secure and high-performance log processing system that accepts data from different types […]

loki+promtail+rsyslog+gafana log collection

【introduce】 Grafana: Equivalent to Kibana in EFK, used for UI display. Loki: Equivalent to ElasticSearch in EFK, used to store logs and process queries. Promtail: Equivalent to Filebeat/Fluentd in EFK, used to collect logs and send them to Loki. Rsyslog: Used to accept logs from various sources, collect them quickly, output them to different destinations, […]

Install Configure LogAnalyzer with Rsyslog On CentOS 7

View system messages via web Syslog messages Windows Events Status Reports Statistics Web-based http://loganalyzer-demo.adiscon.com/ Lab setup: Using Centos 7 and Ubuntu 21.04 LTS, Centos 7 acts as rsyslog server with LogAnalyzer, Ubuntu acts as rsyslog client. Rsyslog server: Operating system: CentOS 7 IP address: 192.168.108.128 Rsyslog client server: Operating system: centOS7 IP address: 192.168.108.148 Rsyslog […]