Hi Guillaume,

Using environment variables is not possible directly. Adding this feature
is on the roadmap.
As a workaround you could do the following:
Create a script that generates a conf file containing the value of the
environment variable and add it to the init script.

#!/bin/sh
echo "define MYENVVAR $MYENVVAR" > nxlog-envvar.conf

In nxlog.conf you can then include this with:
include nxlog-envvar.conf

You can get the value resolved with %MYENVVAR%

A similar solution should be possible on windows.

Regards,
Botond


On Tue, 19 Apr 2016 08:05:32 +0000
guillaume rybak <guillaume.ry...@epitech.eu> wrote:

> Hi,
> 
> First of all, I've been looking all over the internet for a good centralized 
> logging system and nxlog is the best I found so far, it is lightweight and 
> simple to configure.
> You did a remarkable job in developing this software and it's (many) plugins, 
> however I cannot find a way to use environment variables inside the 
> configuration file.
> Can you confirm it is not currently possible ?
> If not, do you plan on adding this feature ?
> 
> Thanks
> Guillaume

------------------------------------------------------------------------------
Find and fix application performance issues faster with Applications Manager
Applications Manager provides deep performance insights into multiple tiers of
your business applications. It resolves application problems quickly and
reduces your MTTR. Get your free trial!
https://ad.doubleclick.net/ddm/clk/302982198;130105516;z
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users

Reply via email to