1
answer

Regex string substitution and capture groups

I'm trying to do something like this, but I'm getting a literal "$1" substituted instead of the value of the capture group.

if $data =~ s/(\[[^\]]+\])/"$1"/g log_info($1);

$data ends up containing a "$1" while the log_info statement correctly logs the value of captured group $1.

Is there a way to use s/// and capture groups in the substitution? I also tried \1 and \\1.

AskedMarch 7, 2019 - 11:41pm
1
answer

Batch uninstaller for NXlog CE version 2.9.1347

Hello,

My organization would like to upgrade our version of NXlog CE from 2.9.1347 to 2.10.21250. We have NXlog installed on hundreds of servers, so performing this process manually is not viable.

We have tried ad nauseum to script this process, but we keep running into the same issues.

AskedMarch 5, 2019 - 11:02pm
1
answer

JSON Formatting questions

I don't believe this is currently possible, but hopefully someone can correct me if it's already implemented.

AskedMarch 4, 2019 - 3:38pm
1
answer

Not in installed apps and finding out version

Hello :)

I have a friend that is asking why he cant find nxlog on his pc under installed applications, When I run the .msi file I can find it easily. Did his previous security officer install it a different way? (On Windows)

Also how can I see what version of nxlog is currently running? (On Windows)

Thanks

AskedMarch 4, 2019 - 3:23pm
1
answer

parsedate on strings like "2017-Mar-23 06:38:30.143"

parsedate is returning undefined for the string directly from the documentation: "2017-Mar-23 06:38:30.143"

If I change the "Mar" to "03", making "2017-03-23 06:38:30.143", it works, returning "2017-02-23 06:38:20"

Any insights as to why the sample string from the documentation isn't working appreciated!

AskedMarch 3, 2019 - 7:47pm

Pages