3
responses

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?

AskedJanuary 8, 2019 - 9:38pm

Answer (1)

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

Comments (2)

  • finkle's picture

    Outstanding! Thank you so much for the quick response.


    So I checked the reference manual you linked and there are no installation instructions included in that document. There is only one user guide and apparently it was written for both CE and EE, evidenced by the blurb at the download link :Though most of the content applies to all versions of NXLog Community Edition and NXLog Enterprise Edition, this guide was written specifically for NXLog Enterprise Edition." I'm surprised they don't mention in the instructions when CE will differ from EE.

  • Zhengshi's picture
    (NXLog)

    That is correct. What I was meaning was the steps to install are roughly the same, but the file locations are different.
    https://nxlog.co/docs/nxlog-ce/nxlog-reference-manual.html#nxlog-8 Has the CE locations under Files.

    The CE version is not packaged as a zipped tar file outside of the Source and Docker.
    Knowing this you can effectively start at step 5 from https://nxlog.co/documentation/nxlog-user-guide/deploy-rhel.html#install_rhel replacing the file locations with the ones found in the CE reference manual once you have the package on your system.

    Sorry that you had some difficulties with this. I will pass this feedback up to see if we can't clarify that in the guide some.