Code Monkey home page Code Monkey logo

wincollect's Introduction

This repository contains samples of scripts and tools that administrators can use to assist with Windows event collection. All Powershell samples and scripts are for reference or educational use. These samples are provided on an "as is" basis and are without warranties of any kind.

We encourage administrators to examine these scripts before running them or test these tools in a lab environment before making use of them in the production network.

Any issues discovered using the samples should not be directed to QRadar support, but be reported on the Github issue tracker.

WinCollect 10

Agent Install Templates

These installation templates can be used as part of the WinCollect 10 command line install to configure any of the sources during installation. This will allow you to configure say Windows Event logs as well as IIS as part of the Agent installation.

Install Powershell Scripts

Agent Installation and Update Powershell scripts

WinCollect 7

WinCollect Agent Reinstall

The ReInstallWinCollect.ps1 PowerShell utility is intended to assist administrators with upgrades to Wincollect V7.3.0 on Windows hosts. The attached utility automates the install process to copy existing installation values and reinstall agents using the WinCollect V7.3.0 EXE for administrators who have large deployments of WinCollect agents.

Get Event Log Reports

This Powershell script allows administrators to create EPS reports for local or remote Windows systems by polling the data from the Windows Event Viewer. The script advises the administrator on the best method of event collection, based on the returned EPS rate.

wincollect's People

Contributors

0o001 avatar crazysteve5575 avatar imgbotapp avatar jamiewheaton avatar jon-ibm avatar jsartoris avatar manahan avatar ralleboehm avatar vm1299 avatar willl-ibm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wincollect's Issues

Error on eventlog

Greetings,

I am attempting to run your script on to generate the said result.

OS: Windows 2012 R2
PS Version : 4

Error:
Microsoft Windows Server 2012 R2 Standard

Unable to scan localhost event logs

There is not an event log on the localhost computer that matches "WEC-Domain-Controllers-NTLM"

Caught on line number: 43

This event file does exist. We added 4 channels to the event as this is a WEC server. Does this script go through all event files found or just the main/top 3? I am running as admin and admins have full access to that event file.

Thank you.

Timing issue for Rolling logs

For really busy servers OldestEventTime & NewestEventTime call to WMI may be executed between log-roll.
If so the Event rate based on time cannot be trusted.

Unable to run report tool

When running the script I am getting the following messages after I provide Domain Credentials in the script.

PS C:\Windows\system32>>> C:\Utilities\EventLogReport\GetEventLogReport.ps1

Security Warning
Run only scripts that you trust. While scripts from the Internet can be useful, this script can potentially harm your
computer. Do you want to run C:\Utilities\EventLogReport\GetEventLogReport.ps1?
[D] Do not run [R] Run once [S] Suspend [?] Help (default is "D"): R
Starting Script

Select Computer List...

Selected: Domain ( Computer(s) Found)

Unable to Create Log Report

A parameter cannot be found that matches parameter name 'Message'.

Caught on line number: 294

The first and last event time estimate may not be accurate for Forwarded Events

This issue is for an edge case that only applies to windows event collection servers recieveing forwarded events. Due to how windows forwarding batches events with lag, e.g. the "Minimize Bandwidth" delivery can take up to 6 hours to deliver events, the very first or last event queried in a forwarded event log is not a reliable measure of the latest or oldest events overall.

https://github.com/ibm-security-intelligence/wincollect/blob/b9dddc7958e91a9a3674f2d3610f4c07e123daec/EventLogReport/GetEventLogReport.ps1#L49

A better approach is to sample the oldest and newest events. I.e. look for the oldest and newest timestamp in a sample of the first 10000 and last 10000 events to avoid latent batches with old events arriving at the Max Delivery Time. While not perfect, it's a better approximation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.