An open API service indexing awesome lists of open source software.

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

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.

## Examples

List 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
```