Skip to main content
abdulrahman
New Member
Sep 28, 2022 9:19 AM UTC
Question

nginx logs

Hello dears

I have many web servers running on Centos 7, I have nginx logs located in var/log/nginx , (access.log, error.log , etc,.), I want these logs to be sent to Fortisiem, how I can achieve this?

3 replies

AEK
SuperUser
SuperUser
Sep 28, 2022 8:39 PM UTC

Hi Abdul

On CentOS 7 you use rsyslog, which is supported by FortiSIEM.

Just edit your /etc/rsyslog.conf to redirect nginx logs to FSM IP, then restart your syslog service.

AEK
abdulrahman
New Member
Sep 29, 2022 7:13 AM UTC

Hello AEK

Thank you for your reply, I already configured the rsyslog.conf as *.* @ (Fortisiem IP) 514

, I think * means all logs, is there any further configuration to do?

AEK
SuperUser
SuperUser
Sep 29, 2022 3:06 PM UTC

Hi Abdul

That's right, *.*  @x.x.x.x means all facilities and all priorities are sent to x.x.x.x.

No need to add ":514" since it is the default syslog port.

Nothing to do from OS side except to restart rsyslog service.

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT