Page 1 of 1
NSCLIENT++ log
Posted: Mon Mar 21, 2016 11:05 pm
by raamardhani7
Hi Team,
We have installed NSCLIENT++ on remote windows servers and now the log file size is increasing drastically, can someone help me how can I reduce it. is there any settings that I need to update?
Re: NSCLIENT++ log
Posted: Tue Mar 22, 2016 9:46 am
by hsmith
Can you look at the log and see what kind of messages are filling it?
Re: NSCLIENT++ log
Posted: Tue Mar 22, 2016 9:46 am
by tgriep
If you are running NSClient 0.4.x ot newer, edit the nsclient.ini file and add the following.
Code: Select all
[/settings/log/file]
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled
max size = 2048000
Save the ini file and restart the NSClient service. This will truncate the file for you.
Re: NSCLIENT++ log
Posted: Mon Apr 04, 2016 9:35 pm
by raamardhani7
tgriep wrote:If you are running NSClient 0.4.x ot newer, edit the nsclient.ini file and add the following.
Code: Select all
[/settings/log/file]
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled
max size = 2048000
Save the ini file and restart the NSClient service. This will truncate the file for you.
Hi Tom,
This worked for me, please close this thread. thanks.