Skip to content
sumeshiPublic

About

A simple CSV/JSON log viewer for incident response.

Topics

Resources

Stars

29 stars

Watchers

0 watching

Forks

Latest commit

 

History

526 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Trivium

"For the trivial bits of log analysis."

MIT License

trivium-logo

Introduction

Trivium is a desktop application for exploring and investigating logs in CSV and JSON formats.

Designed for incident response, it brings together searching, filtering, flags, annotations, timeline analysis, IOC management, and other tools for working with log data.

Let's spend as little time as possible on the trivial stuff.

Trivium log viewer

Getting Started

  1. Download Trivium for your platform.
  2. Open or drop a CSV, JSON, JSONL, or NDJSON file into the window, then review the import settings.
  3. Use the search box to narrow down rows, or open Filter → Rules to build more complex conditions.
  4. Mark rows as Safe, Suspicious, or Critical, and add notes or tags as you investigate.
  5. Export the rows you need to CSV. Your investigation is saved automatically, so you can reopen it later from Projects.

Features

Log Viewer

View CSV, JSON, JSONL, and NDJSON logs in a table, including nested JSON records. Click a cell to inspect the full record without scrolling through all its columns.

JSON imports support up to 4,096 flattened columns. Files exceeding this limit are rejected.

Open multiple files in tabs, reorder and resize columns, hide columns you don't need, and pin important columns in place.

You can also drag and drop files into the window to review the import settings before opening them.

Search & Filter

Search for keywords, restrict searches to selected columns, or build more complex conditions using AND, OR, and NOT. Use the back and forward buttons to revisit previous filter rules.

Save filter rules, column layouts, and sort order as presets for files with matching columns.

Filter rules matching EventID 4624

Search Syntax

Use the search box to narrow down results with case-insensitive text matching. It does not support parentheses or regular expressions directly. Choose Patterns ▾ for regular expression patterns, or use Filter → Rules for grouped AND/OR conditions and numeric or datetime comparisons.

Example Description
powershell Find rows containing the specified text
error timeout Find rows containing both terms (AND)
error|warn Find rows containing either term (OR)
-test Exclude rows containing test (NOT)
EventID:4624 Find rows containing 4624 in the EventID column
"powershell -enc" Find rows containing the quoted phrase
-"powershell -enc" Exclude rows containing the quoted phrase
@tag:review Find rows tagged with review
@tag:* Find rows with any tag

Search Patterns

Use Patterns ▾ beside the search box to select built-in or saved regular expressions, or create your own. Text queries, selected patterns, and filter rules are combined with AND. The column selector applies to both text queries and patterns. Applied pattern definitions are saved with the investigation, so later edits do not silently change existing filters.

Built-in patterns cover IP addresses, CIDRs, URLs, email addresses, hashes, paths, Windows identifiers, defanged IOCs, and encoded or structured values. Hash patterns identify hexadecimal candidates of a given length; they do not determine the hashing algorithm. Structural checks do not verify signatures, ownership, or network reachability.

IPv4-like and IPv6-like patterns match complete address, CIDR, or endpoint tokens. For complete URLs, use the URL pattern; IP-like patterns do not extract an address from the middle of a URL that contains a path. Supported network patterns recognize defanged spellings and preserve the original text in extracted results. The Base64 pattern identifies candidates, so unrelated identifiers and hashes may also match its syntax.

Built-in pattern definitions live in definitions/formats/. Adding a valid JSON file registers it in the next build. Custom pattern JSON files can also be imported through the pattern picker.

Search pattern picker with built-in patterns

Extract

Open Filter → Extract, choose whether to scan all rows or the current results, select the source columns, and then pick a pattern. Trivium opens the extracted values in a temporary CSV tab with Value, Count (occurrences), and Rows (source rows containing the value). Three occurrences in a single row count as Count: 3 / Rows: 1. Hidden source columns can also be included.

Extract panel with source rows, columns, and patterns

Search, sort, and export extracted values using the same controls as any other CSV. Temporary result tabs do not appear in Recent and are deleted when closed, so export the results if you want to keep them. If exact aggregation reaches its memory limit, narrow the source rows or columns and try again.

Extracted URLs in a temporary CSV tab

Flags & Annotations

Assign one of three flags to rows as you investigate:

  • Safe — Rows you have determined to be harmless
  • Suspicious — Rows that may need further investigation
  • Critical — Rows you have identified as significant or problematic

You can also add notes, tags, and bookmarks to individual rows. Use Annotate → Bulk annotate to apply flags, notes, or tags to selected rows, the current results, or all rows. You can undo the most recent bulk operation.

Right-click a cell or use its record details to create an IOC rule from the exact value. Edit rules in Annotate → IOC rules; Save rules keeps their definitions, while Apply annotates matching rows across the project.

Bulk annotation of flags and notes

Timeline & Analysis

For logs with a datetime column, the timeline shows when events occurred, including event counts broken down by Safe, Suspicious, Critical, and unflagged rows.

Zoom in on periods of high activity, or select a time range to narrow down the table. Value counts, rare values, time gaps, and grouping tools provide other ways to explore the data.

Timeline analysis of log events

Save & Export

Trivium automatically saves each investigation as a local project, including its filters and annotations. Closing a tab does not delete the project; reopen it from Projects to continue your investigation.

Export all rows, the current results, or selected rows to CSV, optionally including flags, notes, tags, and bookmarks.

The Save dialog asks for confirmation before replacing an existing file. Automation requests must set allowOverwrite: true to overwrite a file.

Appearance

Themes

Choose from a variety of color themes to suit your preferences.

Use ⋮ → Appearance → Edit colors to enter hexadecimal colors, preview changes, and save a custom theme. You can also import and export themes as JSON.

Built-in theme definitions live in definitions/themes/. Adding a valid JSON file registers it in the next build.

Light and Dark themes

Toki, Sakura, Kohaku, and Yukari themes

Sora, Nagi, Hisui, and Sumire themes

Yozora, Shion, and Kasumi themes

Wallpaper

Choose a local PNG, JPEG, or WebP image as the table wallpaper. It covers the table body, including fixed columns, and scales to fill the available area.

Appearance settings with a custom table wallpaper

And yes, that's my adorable dog in the screenshot.

Automation

The standalone trivium-cli executable provides an interface for scripts and LLM-assisted investigations. See the Python example to get started.

The example uses only the Python standard library. Run it from the repository root to import a log into a workspace and print matching rows:

python examples/automate.py --cli /path/to/trivium-cli --workspace ./investigation --source /path/to/events.csv --search powershell

Installation

Prebuilt binaries are available for Windows (x64) and Linux (x64):

  • Windows: Portable .exe in a ZIP archive
  • Linux: .deb package or AppImage in a ZIP archive

Download the latest version for your platform from GitHub Releases.

The Windows version requires Microsoft Edge WebView2 Runtime. Install it first if it is not already available.

Feedback

Bug reports and feature requests are welcome in GitHub Issues.

License

Trivium is released under the MIT License.

Third-party Licenses

Trivium includes third-party open-source software distributed under their respective licenses.

Copyright notices and license terms for third-party components are provided in THIRD_PARTY_LICENSES.txt, included with each binary distribution.

Acknowledgments

Trivium was inspired by Eric Zimmerman's Timeline Explorer. Many thanks to him for his excellent work.

About

A simple CSV/JSON log viewer for incident response.

Topics

Resources

Stars

29 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages