"Linux" "Web" Nginx configuration nginx log to remote syslog server

Source: Internet
Author: User
Tags syslog rsyslog

1. Overview:

Mainly for the bar Nginx logs are delivered directly to the remote log collection server. The syslog server in this article is the Qradar of the IBM Log Collection system, as long as the remote log server can receive the log with the ability to support syslog protocol.

2. Environment:

os:red Hat Enterprise Linux Server release 6.7 (Santiago)

Kernel:linux cftjnginx01.homecredit.cn 2.6.32-573.el6.x86_64 #1 SMP Wed Jul 1 18:23:37 EDT x86_64 x86_64 x86_64 gnu/l Inux

Nginx:nginx version:nginx/1.8.0

Qradar:unknown

3. Installation:

3.1. OS Installation (abbreviated)

3.2. Nginx installation (slightly)

3.3. Rsyslog Service: Rhel default installation

4. Configuration:

4.1. Rsyslog Configuration: Default installation

4.2. Nginx Configuration:

Can be configured in either HTTP or server segments, where Access_log and Error_log can be configured.

# syslog means using Syslog protocol # server=10.26.2.65 to indicate a remote server address, or you can specify a local # FACILITY=LOCAL7 to indicate device pipeline usage local7# Tag=nginx The label indicates when the caption is displayed in the log file # Severity=info indicates the log level Access_log syslog:server=10.26.2.65,facility=local7,tag=nginx,severity= Info

  

"Linux" "Web" Nginx configuration nginx log to remote syslog server

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.