CentOS 7 installation problems

Tags:

#1 finkle

Fresh install of CentOS 7. Downloaded nxlog-ce-2.10.2150-1_rhel7.x86_64.rpm Ran yum install on file, it installed all the dependencies and finished successfully, no errors. Next step in the guide says to edit /opt/nxlog/etc/nxlog.conf -this file doesn't exist. the only nxlog.conf I could find is in /etc/.

After much googling I figured I'd move forward, next step is to verify conf file "/etc/nxlog.conf -v" - here's the output:

[root@LS-PHL-NXL001 opt]# su root /etc/nxlog.conf
/etc/nxlog.conf: line 9: User: command not found
/etc/nxlog.conf: line 10: Group: command not found
/etc/nxlog.conf: line 12: LogFile: command not found
/etc/nxlog.conf: line 13: LogLevel: command not found
/etc/nxlog.conf: line 18: syntax error near unexpected token `newline'
/etc/nxlog.conf: line 18: `<Extension _syslog>'

I'm not sure what to do next. What did I do wrong and how do I fix it?

#2 Zhengshi Nxlog ✓
#1 finkle
Fresh install of CentOS 7. Downloaded nxlog-ce-2.10.2150-1_rhel7.x86_64.rpm Ran yum install on file, it installed all the dependencies and finished successfully, no errors. Next step in the guide says to edit /opt/nxlog/etc/nxlog.conf -this file doesn't exist. the only nxlog.conf I could find is in /etc/. After much googling I figured I'd move forward, next step is to verify conf file "/etc/nxlog.conf -v" - here's the output: [root@LS-PHL-NXL001 opt]# su root /etc/nxlog.conf /etc/nxlog.conf: line 9: User: command not found /etc/nxlog.conf: line 10: Group: command not found /etc/nxlog.conf: line 12: LogFile: command not found /etc/nxlog.conf: line 13: LogLevel: command not found /etc/nxlog.conf: line 18: syntax error near unexpected token `newline' /etc/nxlog.conf: line 18: `<Extension _syslog>' I'm not sure what to do next. What did I do wrong and how do I fix it?

Hello,

It looks like you are following the NXLog EE guide instead of the CE. The file locations are different between the two releases.

CE Reference Manual:
https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html

The configuration for CE, nxlog.conf, does in fact reside in '/etc' instead of '/opt/nxlog' like in the EE product.

You will need to edit this file with sudo vi /etc/nxlog.conf or similar. You can then run nxlog -v to verify the config. NXLog CE binary is located in /bin by default, so it should be in your path.
If everything checks out you can restart NXLog CE with systemctl restart nxlog.

That should get you where you want to be! :)
-Jesse