→ Celebrate SysAdmin Day 2024 with Lansweeper Enter our Giveaway here

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
whitenoise
Engaged Sweeper
Hi,

We had an issue on a couple of servers where they either picked up a date/time in the future or it was set incorrectly. This now means that these events show in the recent server events everyday (for the past few months now). I cleared the logs on the affected servers but they still show in Lansweeper. How can I remove these?

Thanks
2 REPLIES 2
Hemoco
Lansweeper Alumni
You can execute the script below in your Lansweeper configuration console under Lansweeper\Database Scripts to remove all event log information for the machine. Replace "1" with the "Computername" of your specific machine.

delete from tblntlogevent where Computername = 1


whitenoise wrote:
I cleared the logs on the affected servers but they still show in Lansweeper. How can I remove these?

Lansweeper will not delete any event log information unless instructed to do so. A cleanup option for event logs is available in the configuration console under Scanning Servers\Your Server\Options\Scanning & Cleanup Options, but this will not delete any "future" events.
Lansweeper wrote:
You can execute the script below in your Lansweeper configuration console under Lansweeper\Database Scripts to remove all event log information for the machine. Replace "1" with the "Computername" of your specific machine.

delete from tblntlogevent where Computername = 1


whitenoise wrote:
I cleared the logs on the affected servers but they still show in Lansweeper. How can I remove these?

Lansweeper will not delete any event log information unless instructed to do so. A cleanup option for event logs is available in the configuration console under Scanning Servers\Your Server\Options\Scanning & Cleanup Options, but this will not delete any "future" events.


Thank you for that, this fixed the issue!