Skip to content
This repository was archived by the owner on Jan 28, 2025. It is now read-only.

| Public | A quick and dirty log file parser and export to Seq, if logging to a friendlies format is not available

License

Notifications You must be signed in to change notification settings

OctopusDeploy/SeqFlatFileImport

Repository files navigation

Flat log file to Seq importer

A tool for parsing flat log files and importing them into Seq.

Features:

  • Auto-detects file type
  • Parses the log entries down for a somewhat structured logging experience (ie. log level, time, thread) including certain common/useful messages so that it uses a common message template.
  • Supports:
    • Octopus Server Log
    • Web Log
    • IIS Log
    • Octopus Deployment log exported from the web UI
  • It can easily be extended to other log formats or parsing extra log lines

Example

SeqFlatFileImport.exe OctopusServer.txt OctopusServer.0.txt --batch MyDebuggingTask

SeqFlatFileImport.exe c:\logs --batch MyDebuggingTask

Getting Started

  1. Install and run nuke or run the Default target from your IDE (eg. Rider with the NUKE plugin)
  2. Running directly:
    1. See examples above
  3. Running in Docker:
    1. A docker image with the tag seq-flat-file-import is created from the Nuke build
    2. You will need to run a Seq instance in a separate container
    3. Example of importing all log files in your current working directory:
      1. Windows: docker run --rm -v ${PWD}:/logs seq-flat-file-import --server=http://host.docker.internal:5341 ./logs
      2. Linux/Mac: docker run --rm -v $(pwd):/logs seq-flat-file-import --server=http://host.docker.internal:5341 ./logs

.\scripts\reset-seq.cmd can be used to reset your local Seq instance, however this does not work with Seq instances in a container.

About

| Public | A quick and dirty log file parser and export to Seq, if logging to a friendlies format is not available

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published