What if, in the alternative, we were able to "include" an executable file?
That would keep you from needing to write specific use cases for just
Windows. Of course, it would also put the burden of actually writing the
ini=>conf translator on the user. I imagine something like this:
include_exec "fetch_from_ini.exe"
It would work just like "include", but it would popen the file instead of
fopening it. An enterprising user might even write something like this
(certainly wrong -- not even looking up right regexes :P):
include_exec "cat nxlog.ini | sed -e 's/^\#/;/' -e
's/^\[([a-zA-Z]*)::([^\]]*)\]/<\1 \2>' -e 's/exec[0-9]+/exec/' -e 's/=/ /'"
However, Justin, in the mean time, you might be able to accomplish
something similar with a startup script that translates the ini to conf.
I'm super-rusty on my GPO stuff, but I think you can have all the boxes run
a set of scripts after they update their settings. If you can add a script
that just seds the ini into conf right after a settings update, you might
be able to get the centralized management you desire.
That said, you should check out the log4ensics stuff. It does the dynamic
management and quite a bit more.
On Wed, Nov 27, 2013 at 8:57 AM, Botond Botyanszki <b...@nxlog.org> wrote:
> Hi,
>
> Considering only the config format it wouldn't be very hard to implement
> an alternative parser.
> On the other hand there are other cases when this will fall short.
> Windows group policy is just for windows, how about the rest? In a
> more complex setup you will have several files which contribute to the
> whole configuration, e.g. nxlog.conf snippets via include, ssl
> certificates and keys, pattern.xml for patterns, etc.
>
> <ad>Our nx-log4ensics offering properly takes care of the above in
> addition to being able to monitor the agents.</ad>
>
> There are also various open source tools to handle configuration
> management at a large scale such as chef, puppet etc.
> I know each of these has it's advantages and disadvantages.
>
> Regards,
> Botond
>
>
> On Tue, 26 Nov 2013 17:01:24 +0000
> "Mitzimberg, Justin" <justin.mitzimb...@portofportland.com> wrote:
>
> > It would seem that managing a few hundred computers nxlog conf files
> would get difficult. The problem doesn't scale well, especially on Windows.
> I propose allowing nxlog to use the INI format on Windows machines. This
> would allow centralized management via active directory group policy
> preferences.
> >
> > 90% of the configuration declarations would work OOB, for example:
> >
> > <Processor buffer_udp>
> > Module pm_buffer
> > ## 1Mb buffer
> > MaxSize 512
> > Type Mem
> > ## Warn at 512k
> > WarnLimit 256
> > </Processor>
> >
> > Would look like:
> >
> > [Processor::buffer_udp]
> > Module=pm_buffer
> > ;## 1Mb buffer
> > MaxSize=512
> > Type=Mem
> > ;## Warn at 512k
> > WarnLimit=256
> >
> > This ugly to look at but it can be fully managed by group policy
> preferences.
> >
> > The only difficulties I see would be with EXEC blocks. Typically INI
> files don't have multi-line entries and group policy preferences doesn't
> write them however I think it can be worked around, primarily because EXEC
> blocks aren't supposed to be multi-line, hence all the '\' escaping.
> >
> > With the rather uncreative use of multiple EXEC statements (e.g. EXEC1,
> EXEC2, EXEC3) I think feature parity can be achieved. Again, it would look
> ugly, but it would be manageable.
>
>
> ------------------------------------------------------------------------------
> Rapidly troubleshoot problems before they affect your business. Most IT
> organizations don't have a clear picture of how application performance
> affects their revenue. With AppDynamics, you get 100% visibility into your
> Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics
> Pro!
> http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
> _______________________________________________
> nxlog-ce-users mailing list
> nxlog-ce-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT
organizations don't have a clear picture of how application performance
affects their revenue. With AppDynamics, you get 100% visibility into your
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
nxlog-ce-users mailing list
nxlog-ce-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nxlog-ce-users