Alibabacloud.com offers a wide variety of articles about syslog ng configuration guide, easily find your syslog ng configuration guide information here online.
A recent Sendcloud project requires the use of the Syslog-ng collection log.
The principle is multiple production machine deployment of different modules, including Nodejs, Java and so on, each production machine according to a certain rules to generate a log.
Generally our production machine redhat default SYSLOGD logging, you can use SYSLOGD to send logs through the network to the designated log collectio
I. Overview
Syslog-ng is installed on both servers, one server and one client;
Server: 192.168.209.19
Client: 192.168.209.18
Ii. Installation
Run the following command to install Yum:
Yum-y install syslog-ng
After completion, restart the syslog-
Rhel5 and centos 5.5 x86_64 are all tested.
In the production environment, there is a log server dedicated to recording the log information of other servers is a good idea, but with the Red Hat built-in syslog, the configuration is simple, however, there is no way to separate logs. By default, logs are all heap in the/var/log/message file, which is used to create a log server. The following describes how t
Environment:Log Collection server: syslog-ng_v3.3.7Tomcat client: Syslog + TomcatInterference:1. Shut down the firewall and selinux for ease of debugging.#service iptables Stop//stop firewall #chkconfig iptables off//boot does not start #service iptables status//view firewall statusThe firewall has stopped running.650) this.width=650; "src=" http://s4.51cto.com/wyfs02/M01/7F/27/wKioL1cVjtDhtxNSAAAU1tTy_lQ91
) $InputFilePersistStateInterval 1# Active read, you can set up multiple sets of log reads, set this parameter at the end of each group. To take effect. $InputRunFileMonitor # When submitting logs to a different server, specify the server Ip:port here separately, #如都提交在同一服务器只需在rsyslog. conf specify one time to #local5.*@ @192.168.1.251:514##tomcat Localhost.log Path, modified according to the actual situation: $InputFileName /web/webfront/logs/localhost.log $InputFileTag catalina-log$inputfilefa
Syslog-ng is installed to manage server logs in a unified manner. The installation method is found online. Some problems need to be solved now;
1. The log server can synchronize the log files on a daily basis, but the log files you want cannot be synchronized to the server because you need to customize the log files. Now, I have posted the configuration documents
configuration.Install
Installation is simple. To make it as easy as possible, I will install it from the standard repository. Open a terminal window and run the following command:
sudo apt install syslog-ng
You must run the above command on both the collector and the client machine. After the installation is complete, you will start to configure.Configure collectors
Now, we start to configure the log co
)
Below the Mysql5.1 version will be prompted as follows, if you do not intend to upgrade to logzilla3.0, there is no relationship, you can skip this step.
mysql> SELECT @ @event_scheduler;
ERROR 1193 (HY000): Unknown system variable ' Event_scheduler '
Activate Event_scheduler
Reference
mysql> SET GLOBAL event_scheduler = 1;
Query OK, 0 rows Affected (0.00 sec)
mysql> SELECT @ @event_scheduler;
+-------------------+
| @ @event_scheduler |
+-------------------+
| On |
+------------------
-server-0.9.5 graylog2
Cp/usr/local/graylog2/graylog2.conf.example/etc/graylog2.conf
4. Configure Garylog2-serverClick (here) to collapse or open
Vim/etc/graylog2.conf
——————————————————————
Syslog_listen_port = 515 #将默认的514端口修改为其他未使用端口, because the 514 port is the default port of Syslog-ng, it is necessary to use Syslog-
Tag: Host and priority definition establish record collection kernel www.Syslog is the default log daemon for Linux systems, and the default syslog configuration file is the/etc/syslog.conf file. The syslog daemon is configurable, which allows people to specify exactly a place of storage for each type of system information. Compared to
3.6. Filters
Filters perform log routing within syslog-NG: a message passes the filter if the filter expression is true for the specified message. if a log statement between des filters, the messages are sent to the destinations only if they pass all filters of the Log Path. for example, a filter can select only the messages originating from a participant host. complex filters can be created using filter f
will not be removed.
This path still does not work, because after the MSG is split, the UDP transmission cannot ensure the order and integrity of the message, and the message is not completely sent to syslog in the order you split it. Therefore, the message cannot be restored. It is hard to ensure that the sequence ID is added.
2. I try my best to find a solution that supports more than 1024 message lengths. At the beginning, my test environment wa
There are times when you need to use a bastion machine, but know that the user has used those commands.The name of the Rsyslog property that begins with $ is a variable obtained from the local system, and does not take a variable from the messageFirst, configure the system variables to record the SSH command, and generate files, location/var/log/ssh.log.#vi/etc/profile.d/ssh.sh//Create a file ssh.sh script to store variablesExport History_file=/var/log/ssh.logexport prompt_command= ' {date ' +%y
space limit (use as much as possible)
#$ActionQueueSaveOnShutdown on # save messages to disk on shutdown
#$ActionQueueType LinkedList # run asynchronously
#$ActionResumeRetryCount -1 # infinite retries if host is down
# remote host is: name/ip:port, e.g. 192.168.0.1:514, port optional
#*.* @@remote-host:514
# ### end of the forwarding rule ###
#日志 If non-local storage, you need to specify the remote collection log server IP: Port
*.* :ommysql:192.168.1.251:514 # indicates that all types of log
Http://areyouok.iteye.com/blog/287980
IntroductionDifferent Linux distributions use different syslog programs to record system logs.Debain 4.0/ubuntu8.04 (desktop version) uses sysklogd by default, and the configuration file is/etc/syslog. conf.By default, fedora9 uses rsyslogd. The configuration file is/etc/rsyslog. c
Turn from: http://blog.c1gstudio.com/archives/1765
Logstash + Elasticsearch + kibana+redis+syslog-ng
Elasticsearch is an open source, distributed, restful search engine built on Lucene. Designed for cloud computing, to achieve real-time search, stable, reliable, fast, easy to install and use. Supports the use of JSON for data indexing over HTTP.
Logstash is a platform for application log, event transmission
view the contents of these files, as you can quickly display their contents on the screen with the Zcat command. One disadvantage of the syslog server is that it does not filter out messages from bad sources. Therefore, when your server is in an insecure network, it is a wise move to use TCP wrappers software or firewalls to limit acceptable sources. This will help limit the effectiveness of the denial of service attack, which is designed to fill y
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.