Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
210 views

(Note: I wanted to use cortex-xdr and azure-ad tags but lacked the required reputation. Let me know if this post should be moved to Security StackExchange or retagged accordingly.) I’m currently ...
Adramalech's user avatar
0 votes
0 answers
79 views

I want to create a custom event channel to which an executable running as a limited user and a kernel mode driver both are able to write to it. How can I do this? Following are the things I tried but ...
Ankit's user avatar
  • 71
0 votes
1 answer
70 views

NXlog im_wseventing Request ticket server HTTP/domain@REALM not found in keytab Currently I am working on using nxlog to collect windows event logs to my Ubuntu 22 desktop using Kerberos ...
NTSO's user avatar
  • 3
1 vote
0 answers
43 views

Would like to know how the reason and a different reason code can be added to the event log preferably using powershell? Powershell script used: Restart-Computer -ComputerName (Read-Host "...
Khaos GB's user avatar
0 votes
0 answers
68 views

I have installed wazuh and want to configure it so that the event IDs 4800, 4801 are collected. I read about hundred of articles on the web on how to add new event ids. I edited the ossec.conf file on ...
mbrain's user avatar
  • 70
0 votes
1 answer
139 views

I want to filter the Windows event log for events that aren't generated by the KCC or from two IP addresses. This works for the KCC filter: <QueryList> <Query Id="0" Path="...
user2871239's user avatar
  • 1,632
0 votes
0 answers
37 views

Few month ago I switched my program event logging from mc files to manifest. And I don't designed update process, so now I have an issue. During update process installer trying to register manifest ...
drem1lin's user avatar
  • 389
0 votes
0 answers
118 views

I have been working with Serilog for a week now trying to get it to log to the Windows Event Log unsuccessfully. I should qualify this. I can write to the log, but the message that actually gets ...
Dogulas's user avatar
  • 55
1 vote
2 answers
493 views

Using .NET 9, I have created a Windows Service following Microsoft tutorial. As per this tutorial, my code looks like: public sealed class WindowsBackgroundService ( MyService _myService, ...
M.M's user avatar
  • 143k
0 votes
0 answers
57 views

I have been trying to minimize the logs sent to SIEM by filtering them at the source. You can find the filter I used below. It is long. Instead of using a long <Select> statement with inverted ...
Zafer Balkan's user avatar
0 votes
0 answers
63 views

I wrote event log manifest file with provider and channel. Now, I have to split it to different event sources, and now I am a little bit confused how to do this. What part of manifest becomes a source ...
drem1lin's user avatar
  • 389
1 vote
1 answer
112 views

Background To write error logs to Windows Event Viewer in PowerShell script, I've found a suitable source Application Error and event ID 1000. When you call Write-EventLog -LogName "Application&...
SATO Yusuke's user avatar
  • 2,304
1 vote
1 answer
96 views

I am trying to subscribe to Event 10000 in the Microsoft-Windows-NetworkProfile/Operational log using WMI, similar to how I am subscribing to events in the "Windows Logs/Application" log. ...
mario28639496's user avatar
0 votes
1 answer
45 views

I developed manifest file for windows event log logging, and it is standard list of categories and events. It working great on Win 7+, but on Vista it shows strange window: I tried to find some ...
drem1lin's user avatar
  • 389
1 vote
1 answer
185 views

Background I want to write error messages to the Windows Event Log in a PowerShell script with Write-EventLog. I don't have administrator privilege in the runtime environment, so I can't run New-...
SATO Yusuke's user avatar
  • 2,304
1 vote
0 answers
143 views

I need to create custom event logs like its done by OpenSSH (see screenshot). I tried to add registry keys manually. Then I found the file: https://github.com/PowerShell/openssh-portable/blob/...
Vsevolod's user avatar
  • 522
0 votes
0 answers
90 views

My aim: I have been trying to continuously monitor process creation using python (without a lot of pre-requisites) but I am not able to capture short lived processes. I want this python script to run ...
ConfusedITguy's user avatar
0 votes
1 answer
159 views

I'm using c# .net core 8.0 and I need to be able to read events from a remote windows event log and filter them by log name ("Security" in my case), event id and creation datetime. The thing ...
Amir M's user avatar
  • 560
1 vote
2 answers
441 views

I am writing an XPath query string to select records from the Windows Event Log where the Event source contains a particular string. I have a version which performs an exact match where the Path ...
Nigel Tunnicliffe's user avatar
0 votes
1 answer
40 views

I am attempting to compile an instrumentation manifest in order to build a manifest-based Windows Event Log provider. I expect the compiled manifest.h file to include a ProviderGuid symbol, as the ...
Shane Bishop's user avatar
  • 5,092
0 votes
1 answer
225 views

I'm trying to log only Errors into the Windows syslog (events viewer), I tried many solutions but none of them run as expected. I still see warning messages in the Windows syslog. It's an Asp.Net Core ...
herve's user avatar
  • 657
1 vote
1 answer
216 views

I am trying to Write EventData(C Struct like) to Application Eventlog using "EventWrite". I don't see any Log written to EventLog(Application) I am using the below sprovider.mc file ...
sreeR's user avatar
  • 101
-2 votes
1 answer
207 views

I'm trying to cheat with the EventLog in a C++ application. I have no message file; I simply use RegisterEventSource() and ReportEvent() in a sequence. #include <windows.h> #include <stdio.h&...
Kalle Svensson's user avatar
0 votes
3 answers
192 views

I want to know the name of the value for properties[0] in the eventlog : powershell code $log = Get-WinEvent -FilterHashtable @{ Logname ='System' ProviderName = 'Microsoft-Windows-Power-...
seyo g's user avatar
  • 13
0 votes
1 answer
44 views

I am trying to write to the Windows' EventLog > Windows Logs > Application, I am pretty sure I've created everything that is needed, but when writing to it, it just throws an Unknown error (...
codenamezero's user avatar
  • 3,119
0 votes
1 answer
282 views

Trying to create simple events with ID's greater than 1000 to test a notification system using powershell. Write-EventLog –LogName System –Source FailoverClustering –EntryType Error –EventID 1793 –...
NanoNet's user avatar
  • 334
0 votes
0 answers
46 views

I am parsing event log records to detect various power states. One state in particular gives me a problem - unexpected power loss (id 6008). The event has 2 properties inside - DATE and TIME stored as ...
Masius's user avatar
  • 334
1 vote
1 answer
220 views

I use the bupar package to do process analysis. Suppose my data stored in a csv file looks like this (the file is already sorted properly by caseid and timestamp): STATUS;timestamp;CASEID created;16-...
PSt's user avatar
  • 93
0 votes
0 answers
61 views

I like to get the last entry from SystemEventLog with EventCode 6006. With this Query: SELECT * FROM Win32_NTLogEvent WHERE Logfile='System' AND EventCode='6006' I get all the 6006 Events in the ...
Marlowe's user avatar
  • 452
0 votes
0 answers
156 views

The following code reads and prints the events from the Windows Event Log of the local computer. import java.io.UnsupportedEncodingException; import java.util.Date; import com.sun.jna.platform.win32....
uminder's user avatar
  • 26.4k
0 votes
1 answer
78 views

I am learning Python and have very limited programming knowledge, as a learning project I have a .txt system log that I am trying to convert to JSON. I want the python program to parse through the ....
tthhhww's user avatar
0 votes
0 answers
110 views

I'm writing a C# program that looks through the Windows event logs for remote desktop login attempts, then reports the logins with a csv of the time, IP addresses, username and domain. I can make it ...
TWB503's user avatar
  • 19
0 votes
1 answer
123 views

Context: I have created a service that deals with users data. I can not modify source and order of data in upstream system (usually it is a partial snapshot of a user or a delta (e.g. user's new post)....
Robert Gonciarz's user avatar
-1 votes
1 answer
579 views

Is there a way to get the last shutdown time of Windows with VBA? I would like to follow the start and the end of the working time. The start of the working time is done, the specified excel file ...
FoFE's user avatar
  • 43
-1 votes
1 answer
86 views

I'm super confused. I wrote a script to extract the time, IP, account name, and account domain from a failed login in the Event Log. Individually, the variables write just fine to the console. But, if ...
TWB503's user avatar
  • 19
5 votes
1 answer
2k views

Helo,, How can I read a list of all successful logins on the server via Powershell? The following fields should be output in the list: TimeGenerated, UserName. I'm currently stuck on the following ...
J. Doe's user avatar
  • 273
0 votes
1 answer
1k views

I want to set the WinRM listening port to 443 Trying on Windows Server 2012 and 2016 when I run: Set-Item -Path WSMan:\localhost\listener\listener*\Port -Value 443 I get: Set-Item : WS-Management ...
Meron's user avatar
  • 463
3 votes
3 answers
432 views

I'm trying to implement a feature in a .NET Framework 4.7.2 WPF application which would allow customers to export their local application event log as part of a diagnostics package. I wrote this ...
Mike Bruno's user avatar
0 votes
2 answers
188 views

Does the extension method AddEventLog of Microsoft.Extensions.Logging.ILoggingBuilder does also work when the application runs under a Linux OS or would it cause an exception when there is no Windows ...
NCC-2909-M's user avatar
1 vote
0 answers
527 views

I've been fighting to get logs working in newer version of .Net. If I don't set the SourceName and LogName, the log will show up in the windows event viewer as ".Net runtime". If I define ...
Nuno's user avatar
  • 143
0 votes
1 answer
112 views

So I have an event log in which I would like to know the time elapsed between when a is true, and when b is false. then the timestamp difference will be calculated. I would like to know how to search ...
trex98's user avatar
  • 3
0 votes
1 answer
125 views

I'm maintaining a windows service that is written a long time ago and the first author has left the company way before I joint. I want to reduce the eventlog records by leveling up the severity from ...
Circle Hsiao's user avatar
  • 2,004
1 vote
1 answer
2k views

I build a program via the IDE CVI/LabWindows from National Instruments. This program runs fine. I actually include a dll for modbus functionality (libmodbus) that I compiled via Microsoft Visual C++ ...
ottelo15's user avatar
1 vote
1 answer
176 views

I am using PowerShell to pull the most recent event ID for a locked out user using the following code: Get-WinEvent -FilterHashTable @{LogName="Security"; ID=4740} -MaxEvents 1 Then I turn ...
user1011061's user avatar
0 votes
0 answers
3k views

We have a Windows service that checks whether an IIS site or application pool is running. The service can check IIS sites on both the local server as well as remote servers. The service is written in ...
hmlantto's user avatar
1 vote
1 answer
132 views

I have the following sql statement to query the databricks pipeline event logs and it works. I tried to rewrite it into a python code, but I failed. Could somebody provide me any advice? Many thanks!! ...
Lilybone's user avatar
0 votes
2 answers
152 views

I am trying to retrieve a specific Event by searching for a specific binary token. Here is what I have: var queryString = @"*[EventData[Binary='AAAD78D436708349A059D47F0CE766C4']]"; var ...
Bitfiddler's user avatar
  • 4,222
0 votes
1 answer
451 views

We are trying to capture changes to SQL Server database status, such as changes to database compatibility. I'm seeing that in SQL Server 2008 R2, the Event ID 5084 is logged in Windows application log ...
Hammad Mansoor's user avatar
2 votes
0 answers
622 views

I tried to log via Windows Service created in dotnet 7. I have appsettings.json { "Logging": { "LogLevel": { "Default": "Information" }, &...
Astro's user avatar
  • 43
0 votes
1 answer
904 views

I'm following along in the Windows documentation, and maybe I'm doing something wrong, but it would appear that all I have to do to iterate through all of the events is to call EvtNext() until it ...
LFMekz's user avatar
  • 763

1
2 3 4 5
26