nxlog integration coralogix

Coralogix provides seamless integration with NXLog so you can send your logs from anywhere into Coralogix.



Private Key – A unique ID which represents your company, this Id will be sent to your mail once you register to Coralogix.

Company Id – A unique number which represents your company. You can get your company id from the settings tab in the Coralogix dashboard.

Application Name – The name of your main application, for example, a company named “SuperData” would probably insert the “SuperData” string parameter or if they want to debug their test environment they might insert the “SuperData– Test”.

SubSystem Name – Your application probably has multiple subsystems, for example, Backend servers, Middleware, Frontend servers, etc. in order to help you examine the data you need, inserting the subsystem parameter is vital.


On the host machine

Here is a basic example of nxlog.conf:

<Extension json>
    Module  xm_json

<Input messages>
    Module  im_file
    File    "/var/log/messages"

<Output coralogix>
    Module  om_udp
    Port    5140

        $message      = $raw_event;
        $pri_text     = '';
        $hostname     = hostname();
        $program_name = 'nxlog';
        $tag          = 'syslog';
        $raw_event    = '{"fields":{"private_key":"YOUR_PRIVATE_KEY","company_id":"YOUR_COMPANY_ID","app_name":"APP_NAME","subsystem_name":"SUB_NAME"},"message":' + to_json() + '}';

<Route messages_to_coralogix>
    Path    messages => coralogix


Build a Docker image with your nxlog.conf:

FROM nxlog/nxlog-ce:latest
COPY nxlog.conf /etc/nxlog.conf

Before deploying your container don’t forget to mount volume with your logs.

Start solving your production issues faster

Let's talk about how Coralogix can help you better understand your logs

Managed, Scaled and Compliant ELK Stack

No credit card required

Get a personalized demo

Jump on a call with one of our experts and get a live personalized demonstration