https://github.com/nagilum/eventy
Console Windows event log viewer
https://github.com/nagilum/eventy
csharp eventlog eventlogs windows windows-event-logs windows-eventlog
Last synced: 20 days ago
JSON representation
Console Windows event log viewer
- Host: GitHub
- URL: https://github.com/nagilum/eventy
- Owner: nagilum
- License: mit
- Created: 2024-12-06T23:41:17.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-11T09:23:22.000Z (5 months ago)
- Last Synced: 2025-04-30T08:13:15.257Z (20 days ago)
- Topics: csharp, eventlog, eventlogs, windows, windows-event-logs, windows-eventlog
- Language: C#
- Homepage:
- Size: 32.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Eventy
Command line Windows event log viewer
## How to Build
```bash
git clone https://github.com/nagilum/eventy
cd eventy
dotnet build
```## Requirements
Eventy is written in C# and requires .NET 8 which can be downloaded over at
## Usage
```bash
eventy [log-name] [record-id] [options]
```
## Options* `-m|--max ` - Set max number of log entries to list. Defaults to 10.
* `-r|--reverse` - Whether to read events from oldest to newest. Defaults to newest to oldest.
* `-f|--from ` - List log entries from (including) given date/time.
* `-t|--to ` - List log entries to (including) given date/time.
* `-l|--level ` - Only list log entries matching given log level name. Can be repeated.
* `-s|--search ` - Search in any field for the given text. Can be repeated.
* `-a|--all` - Set whether all search terms must be found or just one for a match.
* `-x|--export ` - Set path to export result as JSON to.
## ExamplesList the about/help screen.
```bash
eventy --help
```List all log names.
```bash
eventy
```List log entries under the Application log name.
```bash
eventy Application
```List 100 log entries under Application, list from oldest to newest
```bash
eventy Application -m 100 -r
```View a single log entry under the Application log name.
```bash
eventy Application 123456
```Search for, and display log entry with record ID 123456.
```bash
eventy 123456
```Search for all log entries under the Application name that are after (and including) December 1st 2024, and match log levels info/error/critical, and contains search terms foo and/or bar.
```bash
eventy application -m -1 -f 2024-12-01 -l info -l error -l crit -s foo -s bar
```