Knowledge Base

This article explains how to run a custom database query on a schedule write the results to a log file and surface that data in EventSentry39s Web Reports. The setup uses a Windows System DSN to connect to a database which means it works with any ODBCsupported engine including SQL Server PostgreSQL MySQL and others. The steps below use P...

KB-ID 557
Category: Integration

Overview This article explains how to use a PowerShell oneliner to calculate the average rate at which Windows Security events are being generated on a machine. This is expressed as Events Per Second EPS. Requirements PowerShell 3.0 or later. Must be run on the Windows machine being measured. Must be run from an elevated Window...

KB-ID 545
Category: Event Log Monitoring

video 3 Under 39Home Scripts User Embedded39 click 39New39 and then label this 39expiringcerts.ps139 and in the 39Script Content39 box add: powershell sl cert: MaxDays = 30 MachineName = env:COMPUTERNAME GetChildItem Recurse where .notafter le getdate.AddDaysMaxDays AND .notafter gt getdate.A...

KB-ID 395
Category: Monitoring

A small number of EventSentry tasks can be automated with the EventSentry PowerShell module that can be downloaded from our github herehttps://github.com/eventsentry/powershellmodule. The module is under development and new versions with additional functionality will be posted here. Suggestions for new functionality are welcome. Prerequi...

KB-ID 450
Category: Configuration
Applies to: 4.2.3.56 and later

You can get an alert when a domain is about to expire in 30 days by using the WhoisXMLAPIhttps://www.whoisxmlapi.com/. Creating API key Create a user at WhoisXMLAPIhttps://www.whoisxmlapi.com/ Get your API key from menu/settings under general. Add the API Key replacing APIFROMWHOISXMLAPI with the API at the script. Add...

KB-ID 505
Category: Monitoring

Utilizing a PowerShell script that outputs files not accessed or modified in a certain number days EventSentry can then import the structured output from a temporary text files and facilitate ondemand searching as well as reports and jobs. 1. Create an embedded script 2. Schedule the script to run periodically with the Application Scheduler 3...

KB-ID 454
Category: File Monitoring
Applies to: 3.5 and later

In order to launch PowerShell scripts from EventSentry you will need to verify/change the execution policy and supply the inputformat none parameter to powershell.exe. For example: powershell inputformat none c:\scripts\eventsentry\dothis.ps1 When logging to the console from your PowerShell script make sure that you use the WriteOutput ...

KB-ID 397
Category: Scripts
Applies to: 3.5 and later

In the management console under 39Tools Embedded Scripts39 click 39New39 and give the script a descriptive name e.g. 39scriptname.ps139 and in the 39Script Content39 box add your script In the 39Interpreter field39 select 39powershell.exe inputformat none file39 from the dropdown and click 39OK39 Under 39System Health Packages39 create a ...

KB-ID 396
Category: Application Scheduler
Applies to: 3.5 and later